Loading

reducer.median

reducer

The reducer.median function outputs for each tick the median, as defined by the NIST, of the values of Geo Time Series™ which are in the same equivalence class.

It operates on LONG and DOUBLE and it always returns a DOUBLE.

As the median is effectively computed using one or two points, the location/elevation of the result is:

  • not defined is there is no location/elevation
  • the value of the location/elevation if only one point has this info
  • the centroid/mean of the location/elevation if the two points have this info.
reducer.median is available since version 1.0.11.

See also

Signatures

Examples

[ [ NEWGTS "GTS1" RENAME 10 NaN NaN NaN 1 ADDVALUE 20 NaN NaN NaN 5 ADDVALUE NEWGTS "GTS2" RENAME 10 NaN NaN NaN 4 ADDVALUE 20 NaN NaN NaN 3 ADDVALUE NEWGTS "GTS3" RENAME 10 NaN NaN NaN 3 ADDVALUE 20 NaN NaN NaN 8 ADDVALUE NEWGTS "GTS4" RENAME 10 NaN NaN NaN 3 ADDVALUE 20 NaN NaN NaN 2 ADDVALUE ] [] reducer.median ] REDUCE