ETAS MDA V8.6 User Manual page 75

Table of Contents

Advertisement

ETAS
result = Accumulate_Rolling_<reduction function>
l
(input, range)
Arguments:
T result: the reduction function applied to the given range
l
T input: the signal to be reduced
l
double range: a sequence of ranges
l
Note: T can be any type supported by the given reduction function.
Accumulate_Rolling(input, windowStart)
The Accumulate_Rolling behavior applies the reduction function to a moving
window. The windowStart signal specifies a window (see "Ranges" on the pre-
vious page). For each range, the samples in that range from the input signal
are reduced according to the reduction function and produce an output
sample which has the same timestamp as the end of the range.
Examples:
Rolling average over the last 2 seconds:
l
Accumulate_Rolling_Average(input, Master()-2)
Rolling average over the last 10 samples:
l
Accumulate_Rolling_Average(input, State_Delay(Master
(), 0, 10))
Notes:
The memory usage of accumulate rolling behavior grows with the num-
l
ber of samples in the window. It is possible to use windowStart = 0, how-
ever each new sample will increase the memory. Depending on the
input signal, this may lead to using significant amounts of memory.
For correct functionality, the start times of the ranges must be mono-
l
tonously increasing.
Window_Signal
Calculates a window with a given "size".
Syntax:
Window_Signal_<reduction function>(input, limit)
l
Arguments:
double result: ranges of input that have the given size of limit
l
T input: the input signal that is reduced to determine the size of a win-
l
dow
T limit: desired "size" of the calculated ranges
l
Note: T can be any type supported by the given reduction function.
MDA V8.6 – User Guide
4 Calculated Signals
75

Advertisement

Table of Contents
loading

Table of Contents