@Deprecated 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)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
insert(double x)
Deprecated.
|
void |
reset(double value)
Deprecated.
|
String |
toString()
Deprecated.
|
double |
value()
Deprecated.
|
public Ewma(long halfLife,
TimeUnit unit,
double initialValue)