ETAS 4 Calculated Signals
The Accumulate_Prefix reduction behavior accumulates the input samples with
the given reduction function. The result is a signal with all the intermediate res-
ults, i.e. result[i] = reduce(signal[1], …, signal[i]).
Note: result = Accumulate_Rolling(signal, -Infinity) except
that the memory usage is constant.
Accumulate_Reset
Calculates the reduction of a given signal from the last reset to the current
sample.
Syntax:
l
result = Accumulate_Reset_<reduction_function>
(input, reset)
Arguments:
l T result: the reduction over signal since the last reset
l T input: the signal to be reduced
l bool reset: reduction is restarted when true
Note: T can be any type supported by the given reduction function.
The Accumulate_Reset reduction behavior accumulates the input samples with
the given reduction function. The reduction is restarted when the reset input is
true. The result is a signal with all the intermediate results, i.e. result[i] =
reduce(signal[k], …, signal[i]) where k is the index of the last time
reset was true or 1 if it never was true.
Example: Accumulate_Reset_Maximum
Signal Reset Result
1 false 1
5 false 5
3 false 5
2 true 2
Accumulate_Samples
Calculates a rolling reduction over a given number of samples.
Syntax:
l
result = Accumulate_Samples_<reduction_function>
(input, count)
Arguments:
l T result: the reduction over the last count samples
l T input: the signal to reduce
l const int count: the number of samples to reduce
Note: T can be any type supported by the given reduction function.
MDA V8.5 - User Guide 71