Ranges; Reduction Behaviors - ETAS MDA V8.6 User Manual

Table of Contents

Advertisement

ETAS
At the moment select combinations of behavior and function are made avail-
able as calculation operations.
The naming follows the pattern:
<Behavior>_<Function>
This means that for the rolling average the name is:
Accumulate_Rolling_Average
4.4.3.1

Ranges

A range is a time interval with a start and an end time. Ranges are used to rep-
resent subsets of samples to calculate a reduction function. A range includes
all samples with timestamps greater than the start and less or equal the end,
i.e. it is an interval that is open on the left and closed on the right.
Ranges can be used both as output of a calculation (e.g. Window_Signal) or as
input of a calculation (Accumulate_Rolling). Ranges are not a separate data
type but are encoded as a scalar signal where:
Value = start time
Time = end time
This means that the end time is implicit and cannot be selected as a separate
signal. It can be accessed using the Master() function.
Examples:
A range over the last 2 seconds can be created by
l
Master() - 2
Rolling average over the last 10 samples
l
State_Delay(Master(), 0, 10)
Note: Due to the mapping of end time of the ranges to timestamps the end
times have to be strictly monotonously increasing.
4.4.3.2

Reduction Behaviors

The following reduction behaviors can be used:
"Accumulate_Rolling" below
l
"Accumulate_Rolling(input, windowStart)" on the next page
l
"Window_Signal" on the next page
l
"Window_Signal(input, limit)" on page 76
l
"Accumulate_Prefix" on page 76
l
"Accumulate_Reset" on page 76
l
"Accumulate_Samples" on page 77
l
Accumulate_Rolling
Calculates the reduction over a moving window.
Syntax:
MDA V8.6 – User Guide
4 Calculated Signals
74

Advertisement

Table of Contents
loading

Table of Contents