Class ExponentialAverager

java.lang.Object
likelihoodDetectionModule.normalizer.ExponentialAverager

public class ExponentialAverager extends Object
This is a simple exponential (decaying) average. For each input sample, the output is: y[i] = x[i]*(1-alpha) + x[i-1]*alpha; Obviously this requires knowledge of the previous sample which makes a problem for the very first data point. To get around this, we initialize the x[-1] point to the same value as the x[0] point. After this, we simply keep a copy of the last sample.
Author:
Dave Flogeras