public abstract class Indicator extends BaseCachedColumn
| Constructor and Description |
|---|
Indicator(java.lang.String name,
boolean input,
boolean output)
Construct the indicator.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
calculate(java.util.Map<java.lang.String,BaseCachedColumn> data,
int length)
Calculate this indicator.
|
int |
getBeginningIndex() |
int |
getEndingIndex() |
abstract int |
getPeriods() |
void |
require(java.util.Map<java.lang.String,BaseCachedColumn> theData,
java.lang.String item)
Require a specific type of underlying data.
|
void |
setBeginningIndex(int theBeginningIndex) |
void |
setEndingIndex(int theEndingIndex) |
public Indicator(java.lang.String name,
boolean input,
boolean output)
name - The indicator name.input - Is this indicator used to predict?output - Is this indicator what we are trying to predict.public abstract void calculate(java.util.Map<java.lang.String,BaseCachedColumn> data, int length)
data - The data available to this indicator.length - The length of data to use.public final int getBeginningIndex()
public final int getEndingIndex()
public abstract int getPeriods()
public final void require(java.util.Map<java.lang.String,BaseCachedColumn> theData, java.lang.String item)
theData - The data available.item - The type of data we are looking for.public final void setBeginningIndex(int theBeginningIndex)
theBeginningIndex - the beginningIndex to setpublic final void setEndingIndex(int theEndingIndex)
theEndingIndex - the endingIndex to set.