TMovingAverageFunction.Weighted

TMovingAverageFunction.Weighted
TMovingAverageFunction

property Weighted: Boolean;

Unit
StatChar

Description
Default Value: False

The Weighted property controls if the moving average points will be calculated using or not the corresponding X point values.

When False, (the default), the average is calculated as the simple sum of Y values divided by the number of points.

When True, each Y value is first multiplied by it's X value and the total sum is divided by the sum of all X point values.