bucketizer.and
bucketizer
logic
The bucketizer.and
function applies the logical operator AND on all the values found in the interval to bucketize.
The associated location and elevation are those of the most recent tick of the interval.
The bucketizer.and
function can be applied to values of any type, when not applied to BOOLEAN types, the current value is considered to be false.
bucketizer.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 true 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
NEWGTS 'test' RENAME
{ 'label0' '42' 'label1' 'foo' } RELABEL
100 NaN NaN NaN true ADDVALUE
200 NaN NaN NaN true ADDVALUE
300 NaN NaN NaN true 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
2000 NaN NaN NaN false ADDVALUE
]
[ SWAP bucketizer.and 2000 0 6 ] BUCKETIZE