SEAL Functions

From DiLab
Revision as of 23:27, 1 October 2012 by Atis (talk | contribs) (New page: == Arithmetic functions == === sum === '''Argument:''' sensor value or scalar. Argument can be repeated zero to many times. Is aggregate function (i.e. can have <code>take()</code> as ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Arithmetic functions

sum

Argument: sensor value or scalar.

Argument can be repeated zero to many times.

Is aggregate function (i.e. can have take() as parameter).

Example syntax: sum(Light, 1, -12) -- calculates sum of light sensor readings with +1 and -12 (i.e. adds one and subtracts 12).

plus

Argument:

Synonym: add

Example syntax:

minus

Argument:

Synonym: subtract

Example syntax:

times

Argument:

Synonym: multiply

Example syntax:

divide

Argument:

Example syntax:

modulo

Argument:

Example syntax:

difference

Argument:

Example syntax:

abs

Argument:

Example syntax:

neg

Argument:

Example syntax:

invert

Argument:

Example syntax:

square

Argument:

Example syntax:

sqrt

Argument:

Example syntax:

power

Argument:

Example syntax:

Data aggregation functions

min

Argument:

Example syntax:

max

Argument:

Example syntax:

average

Argument:

Synonym: avg

Example syntax:

stdev

Argument:

Synonym: std

Example syntax:

variance

Argument:

Example syntax:

ewma

Argument:

Example syntax:

changed

Argument:

Example syntax:


Signal processing functions

map

Argument:

Example syntax:

sharpen

Argument:

Synonym: contrast

Example syntax:


smoothen

Argument:

Synonym: blur

Example syntax:


Filtering functions

match

Argument:

Example syntax:

filterRange

Argument:

Example syntax:

filterEqual

Argument:

Example syntax:

filterNotEqual

Argument:

Example syntax:

filterLess

Argument:

Example syntax:

filterLessOrEqual

Argument:

Example syntax:

filterMore

Argument:

Example syntax:

filterMoreOrEqual

Argument:

Example syntax:

invertFilter

Argument:

Example syntax:


Subset selection & special purpose functions

take

Argument:

Example syntax:

tuple

Argument:

Example syntax:

sync

Argument:

Example syntax: