ChartDirector 6.2 (.NET Edition)

ArrayMath.movAvg


Usage

[C#] public ArrayMath movAvg(int interval);
[VB] Public Function movAvg(interval As Integer) As ArrayMath

Description

Replaces each element of the ArrayMath object by its moving average.

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

Arguments

ArgumentDefaultDescription
interval(Mandatory)The window size.

Return Value

The current ArrayMath object.