Exponential Moving Average Sampled at Varying Times
I have a continuous value for which I'd like to calculate an exponential moving average . Normally I'd just use the standard formula for this: S n = αY + (1-α)S n-1 where S n is the new average, α is the alpha, Y is the sample, and S n-1 is the previous average. Unfortunately, due to various issues I don't have a consistent sample time. I may know I can sample at the most, say, once per millisecond, but due to factors out of my control, I may not be able to take a sample for several milliseconds at a time. A likely more common case, however, is that I simple sample a bit early or late: instead