Average (rolling, sample based)

Signature

Accumulate_Samples_Average(expression, count)

Description

Calculates the rolling average of an input signal for a defined number of samples.

Result

The arithmetic mean value for the last count input samples of expression.

Arguments

 

expression

The signal for which the average is calculated.

count

The number of samples for calculating the rolling average. It must be a constant value.