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 all close 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  (5)

Generalizations & Extensions  (4)

Applications  (2)

Properties & Relations  (7)

Introduced in 2007
(6.0)