Loading

mapper.abs

mapper

This mapper function returns the absolute value of single value in a sliding window.

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

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

mapper.abs is available since version 1.0.11.

See also

Signatures

Examples

[ [ NEWGTS 10 NaN NaN NaN -42.0 ADDVALUE 20 NaN NaN NaN -123.0 ADDVALUE NEWGTS 10 NaN NaN NaN -211.0 ADDVALUE 20 NaN NaN NaN -42.0 ADDVALUE ] // arguments are: GTS or [GTS], mapper, prewindow, postwindow, occurences mapper.abs 0 0 0 ] MAP