org.encog.app.quant.indicators
Class MovingAverage
- java.lang.Object
-
- org.encog.app.analyst.csv.basic.BaseCachedColumn
-
- org.encog.app.quant.indicators.Indicator
-
- org.encog.app.quant.indicators.MovingAverage
-
public class MovingAverage extends Indicator
A simple moving average.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringNAMEThe name of this indicator.
-
Constructor Summary
Constructors Constructor and Description MovingAverage(int thePeriods, boolean output)Construct this object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcalculate(java.util.Map<java.lang.String,BaseCachedColumn> data, int length)Calculate this indicator.intgetPeriods()-
Methods inherited from class org.encog.app.quant.indicators.Indicator
getBeginningIndex, getEndingIndex, require, setBeginningIndex, setEndingIndex
-
-
-
-
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.
-
getPeriods
public final int getPeriods()
- Specified by:
getPeriodsin classIndicator- Returns:
- The number of periods in this indicator.
-
-
DMelt 3.0 © DataMelt by jWork.ORG