SMOOTH

Parameters

OrderNameTypeDesc
1apoint listA list of points that have history
2bConstThe number of samples to smooth

Returns

Returns a point list where the values have been smoothed (a rolling average has been applied) to help highlight the base trends below noisy data.

Description

This function is used to perform a rolling average on a set of points that have history (ie. from a call to GETHISTORY).

Note that this function takes a number of samples rather than an amount of time. This may cause unintended artifacts if your data has erratic timing.

The constant parameter chooses how many samples are used in smoothing. For instance, a value of '7' will average the value at each point with the three samples from the immediate past, and three from the immediate future.

See Also