org.encog.app.quant.indicators
Class Indicator
- java.lang.Object
-
- org.encog.app.analyst.csv.basic.BaseCachedColumn
-
- org.encog.app.quant.indicators.Indicator
-
- Direct Known Subclasses:
- BestClose, BestReturn, MovingAverage
public abstract class Indicator extends BaseCachedColumn
An indicator, used by Encog.
-
-
Constructor Summary
Constructors Constructor and Description Indicator(java.lang.String name, boolean input, boolean output)Construct the indicator.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidcalculate(java.util.Map<java.lang.String,BaseCachedColumn> data, int length)Calculate this indicator.intgetBeginningIndex()intgetEndingIndex()abstract intgetPeriods()voidrequire(java.util.Map<java.lang.String,BaseCachedColumn> theData, java.lang.String item)Require a specific type of underlying data.voidsetBeginningIndex(int theBeginningIndex)voidsetEndingIndex(int theEndingIndex)
-
-
-
Constructor Detail
-
Indicator
public Indicator(java.lang.String name, boolean input, boolean output)Construct the indicator.- Parameters:
name- The indicator name.input- Is this indicator used to predict?output- Is this indicator what we are trying to predict.
-
-
Method Detail
-
calculate
public abstract void calculate(java.util.Map<java.lang.String,BaseCachedColumn> data, int length)
Calculate this indicator.- Parameters:
data- The data available to this indicator.length- The length of data to use.
-
getBeginningIndex
public final int getBeginningIndex()
- Returns:
- the beginningIndex
-
getEndingIndex
public final int getEndingIndex()
- Returns:
- the endingIndex
-
getPeriods
public abstract int getPeriods()
- Returns:
- The number of periods this indicator is for.
-
require
public final void require(java.util.Map<java.lang.String,BaseCachedColumn> theData, java.lang.String item)
Require a specific type of underlying data.- Parameters:
theData- The data available.item- The type of data we are looking for.
-
setBeginningIndex
public final void setBeginningIndex(int theBeginningIndex)
- Parameters:
theBeginningIndex- the beginningIndex to set
-
setEndingIndex
public final void setEndingIndex(int theEndingIndex)
- Parameters:
theEndingIndex- the endingIndex to set.
-
-
DMelt 3.0 © DataMelt by jWork.ORG