SEAL Functions
Contents
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: