Re: iterative algorithm for calculating the moving average




For a uniform or exponential weight window, P. Young's 1984 book on
Recursive Estimation and Time Series Analysis gives updating formulas.
But frankly if it were me I'd probably go with Ron Shepard's
suggestion.

Glen

.