Define the notation
(1)
|
and let be the central difference, so
(2)
|
Spencer's 21-term moving average formula is then given by
(3)
|
which, written explicitly, gives
(4)
|
Define the notation
(1)
|
and let be the central difference, so
(2)
|
Spencer's 21-term moving average formula is then given by
(3)
|
which, written explicitly, gives
(4)
|
Weisstein, Eric W. "Spencer's Formula." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/SpencersFormula.html