Package deltix.qsrv.hf.blocks
Class EMA
- java.lang.Object
-
- deltix.util.collections.DoubleQueue
-
- deltix.qsrv.hf.blocks.EMA
-
public class EMA extends deltix.util.collections.DoubleQueue
Exponential Moving Average
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
double
getAverage()
double
getFactor()
void
offer(double value)
double
poll()
void
setFactor(double aFactor)
-
-
-
Method Detail
-
getFactor
public double getFactor()
-
setFactor
public void setFactor(double aFactor)
-
getAverage
public double getAverage()
-
offer
public void offer(double value)
- Overrides:
offer
in classdeltix.util.collections.DoubleQueue
-
clear
public void clear()
- Overrides:
clear
in classdeltix.util.collections.DoubleQueue
-
poll
public double poll()
- Overrides:
poll
in classdeltix.util.collections.DoubleQueue
-
-