| java.lang.Object org.jfree.data.time.MovingAverage
MovingAverage | public class MovingAverage (Code) | | A utility class for calculating moving averages of time series data.
|
Method Summary | |
public static TimeSeriesCollection | createMovingAverage(TimeSeriesCollection source, String suffix, int periodCount, int skip) Creates a new
TimeSeriesCollection containing a moving average
series for each series in the source collection.
Parameters: source - the source collection. Parameters: suffix - the suffix added to each source series name to create thecorresponding moving average series name. Parameters: periodCount - the number of periods in the moving average calculation. Parameters: skip - the number of initial periods to skip. | public static TimeSeries | createMovingAverage(TimeSeries source, String name, int periodCount, int skip) Creates a new
TimeSeries containing moving average values for
the given series. | public static XYDataset | createMovingAverage(XYDataset source, String suffix, long period, long skip) Creates a new
XYDataset containing the moving averages of each
series in the source dataset.
Parameters: source - the source dataset. Parameters: suffix - the string to append to source series names to create target series names. Parameters: period - the averaging period. Parameters: skip - the length of the initial skip period. | public static XYDataset | createMovingAverage(XYDataset source, String suffix, double period, double skip) Creates a new
XYDataset containing the moving averages of each
series in the source dataset.
Parameters: source - the source dataset. Parameters: suffix - the string to append to source series names to create target series names. Parameters: period - the averaging period. Parameters: skip - the length of the initial skip period. | public static XYSeries | createMovingAverage(XYDataset source, int series, String name, double period, double skip) Creates a new
XYSeries containing the moving averages of one
series in the source dataset.
Parameters: source - the source dataset. Parameters: series - the series index (zero based). Parameters: name - the name for the new series. Parameters: period - the averaging period. Parameters: skip - the length of the initial skip period. | public static TimeSeries | createPointMovingAverage(TimeSeries source, String name, int pointCount) Creates a new
TimeSeries containing moving average values for
the given series, calculated by number of points (irrespective of the
'age' of those points). |
createMovingAverage | public static TimeSeriesCollection createMovingAverage(TimeSeriesCollection source, String suffix, int periodCount, int skip)(Code) | | Creates a new
TimeSeriesCollection containing a moving average
series for each series in the source collection.
Parameters: source - the source collection. Parameters: suffix - the suffix added to each source series name to create thecorresponding moving average series name. Parameters: periodCount - the number of periods in the moving average calculation. Parameters: skip - the number of initial periods to skip. A collection of moving average time series. |
createMovingAverage | public static TimeSeries createMovingAverage(TimeSeries source, String name, int periodCount, int skip)(Code) | | Creates a new
TimeSeries containing moving average values for
the given series. If the series is empty (contains zero items), the
result is an empty series.
Parameters: source - the source series. Parameters: name - the name of the new series. Parameters: periodCount - the number of periods used in the average calculation. Parameters: skip - the number of initial periods to skip. The moving average series. |
createMovingAverage | public static XYDataset createMovingAverage(XYDataset source, String suffix, long period, long skip)(Code) | | Creates a new
XYDataset containing the moving averages of each
series in the source dataset.
Parameters: source - the source dataset. Parameters: suffix - the string to append to source series names to create target series names. Parameters: period - the averaging period. Parameters: skip - the length of the initial skip period. The dataset. |
createMovingAverage | public static XYDataset createMovingAverage(XYDataset source, String suffix, double period, double skip)(Code) | | Creates a new
XYDataset containing the moving averages of each
series in the source dataset.
Parameters: source - the source dataset. Parameters: suffix - the string to append to source series names to create target series names. Parameters: period - the averaging period. Parameters: skip - the length of the initial skip period. The dataset. |
createMovingAverage | public static XYSeries createMovingAverage(XYDataset source, int series, String name, double period, double skip)(Code) | | Creates a new
XYSeries containing the moving averages of one
series in the source dataset.
Parameters: source - the source dataset. Parameters: series - the series index (zero based). Parameters: name - the name for the new series. Parameters: period - the averaging period. Parameters: skip - the length of the initial skip period. The dataset. |
createPointMovingAverage | public static TimeSeries createPointMovingAverage(TimeSeries source, String name, int pointCount)(Code) | | Creates a new
TimeSeries containing moving average values for
the given series, calculated by number of points (irrespective of the
'age' of those points). If the series is empty (contains zero items),
the result is an empty series.
Developed by Benoit Xhenseval (www.ObjectLab.co.uk).
Parameters: source - the source series. Parameters: name - the name of the new series. Parameters: pointCount - the number of POINTS used in the average calculation (not periods!) The moving average series. |
|
|