reducer.rms
reducer
The reducer.rms
function computes for each tick the root mean square of the values of Geo Time Series™ which are in the same equivalence class.
It operates on DOUBLE and LONG.
The location and elevation returned are the first one encountered, which may vary depending on the order of the parameters.
If one value is null, there won't be any result for the concerned tick.
The exclude null version reducer.rms.exclude-nulls
, will exclude null values before computing the rms.
reducer.rms is available since version 1.2.18.
See also
Signatures
Examples
[
NEWGTS "GTS1" RENAME
10 42.0 42.0 42.0 1.0 ADDVALUE //for tick 10, there is lat/long/elevation
20 NaN NaN NaN 5.0 ADDVALUE //for tick 20, the first GTS has no lat/long/elevation
NEWGTS "GTS2" RENAME
10 NaN NaN NaN 4.0 ADDVALUE
20 44.0 44.0 44.0 3.0 ADDVALUE
NEWGTS "GTS3" RENAME
10 NaN NaN NaN 3.0 ADDVALUE
20 NaN NaN NaN 8.0 ADDVALUE
NEWGTS "GTS4" RENAME
10 NaN NaN NaN 3.0 ADDVALUE
30 NaN NaN NaN 2.0 ADDVALUE
] 'GTSlist' STORE
[
$GTSlist
[]
reducer.rms
] REDUCE
//for tick 10, all values are defined, reducer will return rms of 1, 4, 3, 3