org.encog.app.quant.indicators
public abstract class Indicator extends BaseCachedColumn
| Constructor and Description |
|---|
Indicator(String name,
boolean input,
boolean output)
Construct the indicator.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
calculate(Map<String,BaseCachedColumn> data,
int length)
Calculate this indicator.
|
int |
getBeginningIndex() |
int |
getEndingIndex() |
abstract int |
getPeriods() |
void |
require(Map<String,BaseCachedColumn> theData,
String item)
Require a specific type of underlying data.
|
void |
setBeginningIndex(int theBeginningIndex) |
void |
setEndingIndex(int theEndingIndex) |
public Indicator(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(Map<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(Map<String,BaseCachedColumn> theData, 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.Copyright © 2014. All Rights Reserved.