public class Ewma extends Object
e.g. with a half-life of 10 unit, if you insert 100 at t=0 and 200 at t=10 the ewma will be equal to (200 - 100)/2 = 150 (half of the distance between the new and the old value)
| Constructor and Description |
|---|
Ewma(long halfLife,
TimeUnit unit,
double initialValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
insert(double x) |
void |
reset(double value) |
String |
toString() |
double |
value() |