IMovingAvgFunction
Hierarchy Properties
Type Library
TeeChartx
Description
MovingAverageFunction is a descendant of MovingTeeFunction. It does an average calculation of last Period point values.
Calculation: MovingAverageFunction will calculate the simple or weighted average of every group of Period points.
Example:
We have a Series with the following Y values: 4 8 2 6 7 2 1
And we want to plot a simple Moving Average of Period: 3
That is: (4+8+2)/3 (8+2+6)/3 (2+6+7)/3 (6+7+2)/3 (7+2+1)/3
Then: 14/3 16/3 15/3 15/3 10/3
New appended points will trigger new MovingAverage points. Changing the Period property (both at design and runtime) will recalculate entirely the MovingAverage.