Sum (rolling, sample-based)

Signature

Accumulate_Samples_Sum(Expression, Count)

Description

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

Result

The sum for the last Count input samples of Expression.

Arguments

 

expression

The signal for which the rolling sum is calculated.

count

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