public class MovingAverage extends Indicator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME
The name of this indicator.
|
| Constructor and Description |
|---|
MovingAverage(int thePeriods,
boolean output)
Construct this object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculate(java.util.Map<java.lang.String,BaseCachedColumn> data,
int length)
Calculate this indicator.
|
int |
getPeriods() |
getBeginningIndex, getEndingIndex, require, setBeginningIndex, setEndingIndexpublic static final java.lang.String NAME
public MovingAverage(int thePeriods,
boolean output)
thePeriods - The number of periods in this indicator.output - True, if this indicator is predicted.public final void calculate(java.util.Map<java.lang.String,BaseCachedColumn> data, int length)
public final int getPeriods()
getPeriods in class Indicator