Skip to main content
added 22 characters in body
Source Link
jfpoilpret
  • 9.1k
  • 7
  • 37
  • 54

Wikipedia has a page on moving averages. en.wikipedia.org/wiki/Moving_average: http://en.wikipedia.org/wiki/Moving_average

I'd suggest at first try an exponential moving average: average= a*sample + (1-a)*average.

average = a * sample + (1 - a) * average

Experiment with different values of a (with 0 < a <= 1).

The smaller a is, the smoother the curve, but also the longer (more iterations) it takes for an actual change in the input to be reflected in average.

Wikipedia has a page on moving averages. en.wikipedia.org/wiki/Moving_average

I'd suggest at first try an exponential moving average: average= a*sample + (1-a)*average. Experiment with different values of a (with 0 < a <= 1).

The smaller a is, the smoother the curve, but also the longer (more iterations) it takes for an actual change in the input to be reflected in average.

Wikipedia has a page on moving averages: http://en.wikipedia.org/wiki/Moving_average

I'd suggest at first try an exponential moving average:

average = a * sample + (1 - a) * average

Experiment with different values of a (with 0 < a <= 1).

The smaller a is, the smoother the curve, but also the longer (more iterations) it takes for an actual change in the input to be reflected in average.

Source Link
Scott
  • 36
  • 1

Wikipedia has a page on moving averages. en.wikipedia.org/wiki/Moving_average

I'd suggest at first try an exponential moving average: average= a*sample + (1-a)*average. Experiment with different values of a (with 0 < a <= 1).

The smaller a is, the smoother the curve, but also the longer (more iterations) it takes for an actual change in the input to be reflected in average.