## Floating average |

MATHDR32 -> Driver-specific functions -> Formulas -> Float formula -> Statistics -> Floating average |

Show all Hide all |

The moving average is re-calculated and displayed after each change. The first output of the value occurs when all changes are present.

Press the button OK to open a dialog in which you can enter the number of values to be considered for the calculation:

Formula

X_{i} = Measured
value of the source variable

t_{i} = Time of the
X_{i} measured value

T = Time interval of the averaging (query after confirming the definition of the formula)

N = Number of the received measured values within the interval T

k = current time

Info |

The calculation is intended for filtering out small fast oscillations. The algorithm expects that the source values arrive regularly in approximately equal steps (smallest step between two events is 500 ms), so that the calculation can be performed in event-triggered mode (fixed scan rate). That means: the calculation is not really suitable for spontaneous drivers. |