Is there a feasible way to calculate a running average of an incoming stream of sensor data? I get multiple samples a second and the stream can run for several hours, so accumulating the values and keeping track of the amount of samples seems not feasible. Is there a more pragmatic approach to this problem, maybe with the sacrifice of accuracy?
The best solution I came up so far is an IIR implementation as x[n] = 0.99*x[n-1] + 0.01*y but this is not really giving the average as I need it.