public class MovingAverage
extends java.lang.Object
Constructor and Description |
---|
MovingAverage()
Creates a moving average over the last 5 values.
|
MovingAverage(int n)
Creates a moving average over the last N values.
|
Modifier and Type | Method and Description |
---|---|
double |
getAverage() |
<T extends java.lang.Number> |
update(T amount) |