what is this averaging form called: Avg = (Avg + new )/2

indigoredster

New member
Joined
Feb 4, 2016
Messages
2
I've used this in simple microprocessor code for basic smoothing of incoming
sampled data, but can someone tell more about this
method. It seems to be a variation of the cumulative average(?)


Avg = ( Avg+ newDatum ) / 2


Thanks, -Lee
 
It IS the cumulative average.


ea7178798c3a025421d2a9207c11adc4.png



I see now. it would be for n=1
Thank you!
 
I've used this in simple microprocessor code for basic smoothing of incoming
sampled data, but can someone tell more about this
method. It seems to be a variation of the cumulative average(?)


Avg = ( Avg+ newDatum ) / 2


Thanks, -Lee


I think that's a cumulative average. One method is just to compute the mean for each position by summing over all previous values and dividing by their number.
 
Top