ChartDirector Ver 3.0 (Perl Edition)

ArrayMath.movPercentile


Usage

movPercentile(interval, percentile)

Description

Replace each element of the ArrayMath object by its moving percentile.

The interval parameter specifies the window size for computing moving percentile. The moving percentile is computed as the percentile value of the current element with the previous (interval - 1) elements. No moving percentile can be computed for the first (interval - 1) elements, because there is insufficient previous elements. So the first (interval - 1) elements will be replaced with NoValue.

Arguments

ArgumentDefaultDescription
interval(Mandatory)The window size.
percentile(Mandatory)The percentile to be computed. It should be between 0 - 100.

Return Value

The current ArrayMath object.