Loading

VALUEHISTOGRAM


gts
Since v1.0.0
Available on all platforms
See also

Produces the value histogram of a Geo Time Series™ or (since 2.2.0) of a GTS Encoder.

The histogram is a map with an entry for each value (used as the map key), with an associated value equal to the number of occurrences of the value in the series.

If the input is a bucketized Geo Time Series™, the NULL key will have an associated value which is the number of buckets without values (assuming no datapoints were added at timestamps other than those of buckets).

When the input is a GTS Encoder, keys may be BigDecimal, LONG, DOUBLE, BOOLEAN or STRING, binary values are not used as keys, their STRING representation (in ISO-8859-1) is used.

Signature

Examples

[ NEWGTS 200 NaN NaN NaN 'Warp 10' ADDVALUE 100 NaN NaN NaN 'Warp 10' ADDVALUE 300 NaN NaN NaN 'foo' ADDVALUE 400 NaN NaN NaN 'bar' ADDVALUE 500 NaN NaN NaN 'Warp 10' ADDVALUE NEWGTS 100 NaN NaN NaN 42 ADDVALUE 200 NaN NaN NaN 42 ADDVALUE 300 NaN NaN NaN 10 ADDVALUE 400 NaN NaN NaN 10 ADDVALUE 500 NaN NaN NaN 30 ADDVALUE ] VALUEHISTOGRAM