mapper.and
mapper
logic
This mapper function applies the logical operator AND on all the values found in each sliding window.
The associated location and elevation are those of the most recent tick of the interval.
The mapper.and
function can be applied to values of any type, when not applied to BOOLEAN types, the current value is considered to be false.
mapper.and is available since version 1.0.11.
See also
Signatures
Examples
[
NEWGTS 'test' RENAME
{ 'label0' '42' 'label1' 'foo' } RELABEL
100 NaN NaN NaN true ADDVALUE
200 NaN NaN NaN false ADDVALUE
300 NaN NaN NaN false ADDVALUE
400 NaN NaN NaN true ADDVALUE
500 NaN NaN NaN true ADDVALUE
600 NaN NaN NaN true ADDVALUE
700 NaN NaN NaN true ADDVALUE
800 NaN NaN NaN true ADDVALUE
]
[ SWAP mapper.and 1 1 0 ] MAP