Loading

mapper.round

mapper

This mapper function rounds the single value in a sliding window to the closests LONG.

The mapper.round function can be applied to data of type LONG or DOUBLE.

When used on bucketized GTS, this mapper will fail on empty bucket. Use UNBUCKETIZE first.

If the GTS contains duplicated timestamps, this mapper will fail. Use DEDUP first.

mapper.round is available since version 1.0.11.

See also

Signatures

Examples

[ [ NEWGTS "GTS.1" RENAME 10 NaN NaN NaN 41.1 ADDVALUE 20 NaN NaN NaN -123.4 ADDVALUE NEWGTS "GTS.2" RENAME 10 NaN NaN NaN -211.9 ADDVALUE 20 NaN NaN NaN 4.6 ADDVALUE ] mapper.round 0 0 0 ] MAP