Class SimpleMovingAverage
- java.lang.Object
-
- org.wso2.carbon.diagnostics.trafficanalyzer.SimpleMovingAverage
-
public class SimpleMovingAverage extends Object
This class is responsible for calculating the Simple Moving Average of a given data set.
-
-
Constructor Summary
Constructors Constructor Description SimpleMovingAverage(int windowSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataToList(int newData)doublegetCurrentThreshold()List<Integer>getTempList()voidsetMa(double ma)doubleupdate(int newDataPoint)
-