Package fr.dyade.aaa.common
Class ExponentialMovingAverage
- java.lang.Object
-
- fr.dyade.aaa.common.ExponentialMovingAverage
-
public final class ExponentialMovingAverage extends Object
Exponential moving average (EMA) is a rule of thumb technique for smoothing time series data using the exponential window function (see https://fr.wikipedia.org/wiki/Moyenne_mobile)
-
-
Constructor Summary
Constructors Constructor Description ExponentialMovingAverage(int periods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(double value)doublegetAverage()intgetIntAverage()longgetLongAverage()
-