Class ByEma
java.lang.Object
com.illumon.numerics.movingaverages.ByEma
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ByEmaSimple
public abstract class ByEma extends Object implements Serializable
A DB aware EMA which can compute "by" emas without grouping and then ungrouping.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ByEma.BadDataBehavior
static class
ByEma.Key
-
Constructor Summary
Constructors Modifier Constructor Description protected
ByEma(ByEma.BadDataBehavior nullBehavior, ByEma.BadDataBehavior nanBehavior)
-
Method Summary
Modifier and Type Method Description protected abstract AbstractMa
createEma(ByEma.Key key)
double
update(double value)
double
update(double value, Object... by)
double
update(long timestampNanos, double value, Object... by)
double
update(DBDateTime timestamp, double value)
double
update(DBDateTime timestamp, double value, Object... by)