ChartDirector 6.0 (C++ Edition)
ArrayMath& expAvg(double smoothingFactor);
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.
The smoothing factor used for computing exponential average. It should be between 0 - 1.
The current ArrayMath object.
© 2017 Advanced Software Engineering Limited. All rights reserved.