Page 1 of 1

Moving average

Posted: Fri Jan 11, 2008 2:01 pm
by developer78
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 :?

Posted: Thu Jan 17, 2008 6:18 pm
by david.gilbert
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).