ChartDirector 7.1 (.NET Edition)

ArrayMath.expAvg


Usage

[C#]public ArrayMath expAvg(double smoothingFactor);
[VB]Public Function expAvg(smoothingFactor As Double) As ArrayMath

Description

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

The exponential average is computed by :

avg(n) = value(n) * smoothingFactor + avg(n - 1) * (1 - smoothingFactor)

where avg(n) is the exponential average of the nth element, and value(n) is the value of the nth element.

For the first element (n = 0), its exponential average is assumed to be equal to its original value.

Arguments

ArgumentDefaultDescription
smoothingFactor(Mandatory)The smoothing factor used for computing exponential average. It should be between 0 - 1.

Return Value

The current ArrayMath object.