Average (rolling, time based)

Signature

Accumulate_Rolling_Average(expression, window)

Description

Calculates the average over each window while applying a moving window to the signal expression.

Result

The rolling average for expression in the time range given by window.

Arguments

 

expression

The signal for which the average is calculated.

window

A window signal which defines the start time of the time range (moving window). The end time is defined by the current time. E.g. to calculate the average for the last 5 seconds use Accumulate_Rolling_Average(expression, Master()-5).