Python/Numpy: Is there an efficient way to calculate moving averages with multiple windows?

前端 未结 0 973
情深已故
情深已故 2020-12-29 10:32

Part of a program I\'m writing has code that calculates the following:

data = np.array(..........)
param = np.array(range(100)+1)
result = np.array([data[-x:]         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题