Class MovingAverage
java.lang.Object
com.inductiveautomation.ignition.common.MovingAverage
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a moving average over the last 5 values.MovingAverage
(int n) Creates a moving average over the last N values. -
Method Summary
-
Constructor Details
-
MovingAverage
public MovingAverage()Creates a moving average over the last 5 values. -
MovingAverage
public MovingAverage(int n) Creates a moving average over the last N values.- Parameters:
n
- last N values to average.
-
-
Method Details
-
update
-
getAverage
public double getAverage()
-