Documentation of 'org.encog.app.quant.indicators.MovingAverage' Java class
MovingAverage
org.encog.app.quant.indicators

Class MovingAverage



  • public class MovingAverage
    extends Indicator
    A simple moving average.
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        The name of this indicator.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MovingAverage

        public MovingAverage(int thePeriods,
                             boolean output)
        Construct this object.
        Parameters:
        thePeriods - The number of periods in this indicator.
        output - True, if this indicator is predicted.
    • Method Detail

      • calculate

        public final void calculate(java.util.Map<java.lang.String,BaseCachedColumn> data,
                                    int length)
        Calculate this indicator.
        Specified by:
        calculate in class Indicator
        Parameters:
        data - The data to use.
        length - The length to calculate over.
      • getPeriods

        public final int getPeriods()
        Specified by:
        getPeriods in class Indicator
        Returns:
        The number of periods in this indicator.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.