Re: iterative algorithm for calculating the moving average



In article <xkhce.1151947$8l.1071914@pd7tw1no>, "me" <me@xxxxxx>
wrote:

> Any ideas? Does anyone have any algorithms or references on the above
> subject?

Why not try the obvious solution, from the running total value
subtract off the old "first" element, and add on the new "last"
element? This might involve some accumulation of roundoff errors
for very long strings of values, so you might want to reset
everything every Nth step for some suitable value of N. This
involves two adds and a multiplication for each time step,
regardless of the number of elements in the running average.

$.02 -Ron Shepard
.



Relevant Pages

  • Re: Optimal distribution of points within complex polygons.
    ... > I am looking for references and algorithms that would help me to ... > distribute in an "optimal" way points within a complex polygon. ... Prev by Date: ...
    (comp.graphics.algorithms)
  • Re: Irrational numbers
    ... >> impression that he knows very well of the algorithms ... So he must have materials and references ... > Point being he listed the names of the algorithms. ... If Percival didn't with his posts impressed me ...
    (sci.crypt)
  • Reference multiple cells in if statement
    ... Source 1 is the standard to measure the other ... column BC needs to look at the data in E and compare the values of V and AP, ... it references only the 2 columns. ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Misbehaving text box
    ... formula in the field or a formula that references a user-defined ... Just need to show us the code (the money - whatever). ... Rich ... Prev by Date: ...
    (comp.databases.ms-access)
  • Re: Irrational numbers
    ... So he must have materials and references ... >>help to do implementations. ... > I hate M-K when he's in this mode. ... He only gave the names of two algorithms, ...
    (sci.crypt)