EasyManua.ls Logo

ETAS MDA V8 - Page 123

Default Icon
153 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Calculations | 123
At the moment select combinations of behavior and function are made available
as calculation operations.
The naming follows the pattern:
<Behavior>_<Function>
This means that for the rolling average the name is:
Accumulate_Rolling_Average
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 sig-
nal. It can be accessed using the Master() function.
Examples:
A range over the last 2 seconds can be created by
Master() - 2
Rolling average over the last 10 samples
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.
Reduction Behaviors
The following reduction behaviors can be used:
"Accumulate_Rolling" below
"Accumulate_Rolling(input, windowStart)" on the next page
"Window_Signal" on the next page
"Window_Signal(input, limit)" on the next page
"Accumulate_Prefix" on page125
"Accumulate_Reset" on page125
"Accumulate_Samples" on page126
Accumulate_Rolling
Calculates the reduction over a moving window.
Syntax:
result = Accumulate_Rolling_<reduction function>(input,
range)
MDA V8 | User Guide

Table of Contents

Related product manuals