Loading

mapper.add

mapper

This mapper function adds a constant to the single value in a sliding window.

If the sliding window is empty, the function does not return any value. If the sliding window contains more than a single value, an error is produced.

The associated location and elevation are those of the single value.

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

The mapper.add function must be parameterized with the constant.

The result will be of the same type as the constant.

mapper.add is available since version 1.0.0.

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 ] 2.0 mapper.add // Setting the mapper.abs with a constant value 2.0 to add 0 0 0 // Sliding window of 1 (0 pre and 0 post), no options ] MAP