MovingAverage

MovingAverage[list,r]

gives the moving average of list, computed by averaging runs of r elements.

MovingAverage[list,{w1,w2,,wr}]

gives the moving average of list, computed with weights wi.

Details

Examples

open allclose all

Basic Examples  (2)

Compute a pairwise simple moving average:

In[1]:=
Click for copyable input
Out[1]=

Compute weighted moving averages:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Generalizations & Extensions  (1)

Applications  (2)

Properties & Relations  (7)

See Also

Mean  MovingMedian  ExponentialMovingAverage  Partition  ListCorrelate  Accumulate

Tutorials

Introduced in 2007
(6.0)