Loading

mapper.delta


mapper
Since v1.0.11
Available on all platforms
See also

This mapper function computes the delta between the last and first values (delta = last - first) of each sliding window. The location and elevation returned are those associated with the most recent value in the sliding window.

The mapper.delta function can only be applied to values of type LONG or DOUBLE, when applied to STRING or BOOLEAN it does not return any value.

Signature

Examples

[ [ NEWGTS "GTS1" RENAME 10 NaN NaN NaN 5.0 ADDVALUE 20 NaN NaN NaN 120.0 ADDVALUE NEWGTS "GTS2" RENAME 10 NaN NaN NaN 8.0 ADDVALUE 20 NaN NaN NaN 42.0 ADDVALUE ] mapper.delta 5 0 0 ] MAP