MovingAverage.createMovingAverage((XYDataset source,
java.lang.String suffix,
long period,
long skip));
the parameters- long period,long skip, what it actually takes?
how do i manipulate data?
plz suggest
Moving average
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
For each series in the source dataset:
- create a new series containing the same x-values, except for those in the range x0 to x0+skip which are left out (so that is the meaning of the 'skip' argument);
- for each x-value in the new series, calculate the average of the y-values from the original series in the range x to x-period (so that is the meaning of the 'period' argument).
- create a new series containing the same x-values, except for those in the range x0 to x0+skip which are left out (so that is the meaning of the 'skip' argument);
- for each x-value in the new series, calculate the average of the y-values from the original series in the range x to x-period (so that is the meaning of the 'period' argument).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program