org.encog.app.quant.indicators.predictive
Class BestClose
java.lang.Object
org.encog.app.analyst.csv.basic.BaseCachedColumn
org.encog.app.quant.indicators.Indicator
org.encog.app.quant.indicators.predictive.BestClose
public class BestClose
- extends Indicator
Get the best close.
Field Summary |
static String |
NAME
The name of this indicator. |
Constructor Summary |
BestClose(int thePeriods,
boolean output)
Construct the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- The name of this indicator.
- See Also:
- Constant Field Values
BestClose
public BestClose(int thePeriods,
boolean output)
- Construct the object.
- Parameters:
thePeriods
- The number of periods.output
- True, if this indicator is to be predicted.
calculate
public final void calculate(Map<String,BaseCachedColumn> data,
int length)
- Calculate the indicator.
- Specified by:
calculate
in class Indicator
- Parameters:
data
- The data available to the indicator.length
- The length available to the indicator.
getPeriods
public final int getPeriods()
- Specified by:
getPeriods
in class Indicator
- Returns:
- The number of periods.
Copyright © 2014. All Rights Reserved.