Loading

reducer.median


reducer
Since v1.0.11
Available on all platforms
See also

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.

Signature

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