reducer.argmax
reducer
The reducer.argmax
function outputs for each tick, the tick and the concatenation separated by ‘,’ of the values of the labels for which the
value is the maximum of Geo Time Series™ which are in the same equivalence class.
It operates on LONG and DOUBLE.
There is no location and elevation returned.
This reducer takes an additional LONG parameter to choose the maximum to report (use 0 to report all), and a STRING
parameter to choose on which label it operates.
reducer.argmax is available since version 1.0.11.
See also
Signatures
Examples
[
[
NEWGTS "GTS1" RENAME
{ 'label0' '1' } RELABEL
10 NaN NaN NaN 1 ADDVALUE
20 NaN NaN NaN 5 ADDVALUE
NEWGTS "GTS2" RENAME
{ 'label0' '2' } RELABEL
10 NaN NaN NaN 4 ADDVALUE
20 NaN NaN NaN 3 ADDVALUE
NEWGTS "GTS3" RENAME
{ 'label0' '2' } RELABEL
10 NaN NaN NaN 3 ADDVALUE
20 NaN NaN NaN 8 ADDVALUE
NEWGTS "GTS4" RENAME
{ 'label0' '1' } RELABEL
10 NaN NaN NaN 3 ADDVALUE
20 NaN NaN NaN 2 ADDVALUE
30 NaN NaN NaN 1 ADDVALUE
]
[]
'label0'
0
reducer.argmax
] REDUCE