public abstract class AbstractMovingStat extends Object
Constructor and Description |
---|
AbstractMovingStat() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addMovingStatForPeriod(org.jfree.data.xy.XYSeries result,
double x)
Add the moving statistic to the resulting XYSeries
|
org.jfree.data.xy.XYSeries |
calculateMovingStat(org.jfree.data.xy.XYDataset source,
int series,
String name,
double period,
double skip)
Creates a new
XYSeries containing the moving statistic of one
series in the source dataset. |
protected abstract void |
calculateMovingStatInPeriod(double xx,
double yy)
Calculate the current moving statistic with a new point
|
abstract void |
resetMovingStat()
Reset the movinf statistic just before calculating a new one
|
public org.jfree.data.xy.XYSeries calculateMovingStat(org.jfree.data.xy.XYDataset source, int series, String name, double period, double skip)
XYSeries
containing the moving statistic of one
series in the source
dataset.source
- the source dataset.series
- the series index (zero based).name
- the name for the new series.period
- the period.skip
- the length of the initial skip period.public abstract void resetMovingStat()
protected abstract void calculateMovingStatInPeriod(double xx, double yy)
xx
- x value of the pointyy
- Y value of the pointprotected abstract void addMovingStatForPeriod(org.jfree.data.xy.XYSeries result, double x)
result
- Resulting XYSeriesx
- X value where to add the moving statisticCopyright © 2016–2017 CLIF project. All rights reserved.