Class EMA


  • public class EMA
    extends deltix.util.collections.DoubleQueue
    Exponential Moving Average
    • Constructor Summary

      Constructors 
      Constructor Description
      EMA​(int numPeriods)  
      EMA​(int numPeriods, double aFactor)  
    • 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)  
      • Methods inherited from class deltix.util.collections.DoubleQueue

        capacity, isEmpty, isFull, oldest, size, youngest
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EMA

        public EMA​(int numPeriods)
      • EMA

        public EMA​(int numPeriods,
                   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 class deltix.util.collections.DoubleQueue
      • clear

        public void clear()
        Overrides:
        clear in class deltix.util.collections.DoubleQueue
      • poll

        public double poll()
        Overrides:
        poll in class deltix.util.collections.DoubleQueue