Average (with reset)

Signature

Accumulate_Reset_Average(expression, reset)

Description

Calculates the average from the first sample up to the current sample.

Result

The arithmetic mean over expression since the last reset up to the current sample.

Arguments

 

expression

The input signal over which the average is calculated.

reset

A reset signal. If it is true (or unequal to 0), the average value will be reset. If it is false (or equals 0), the last average value will be held.