MovingAverage<T> constructor
MovingAverage<T> ({})
Instantiate the class with the given parameters
If averageType is AverageType.simple or AverageType.weighted then factor is ignored.
If averageType is AverageType.exponential then windowSize and partialStart are ignored.
Implementation
MovingAverage({
this.averageType = AverageType.simple,
this.windowSize = 1,
this.partialStart = false,
this.factor = 1.0,
required this.getValue,
required this.add,
});