Loading

mapper.rate

mapper

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

The mapper.rate function can only be applied to values of type LONG or DOUBLE, when applied to STRING or BOOLEAN it does not return any value. If the sliding window contains less than 2 values, the rate of change will be 0.0.

The rate of change is expressed in units per second.

mapper.rate is available since version 1.0.11.

See also

Signature

Examples

[ [ NEWGTS 10 NaN NaN NaN 3.0 ADDVALUE 20 NaN NaN NaN 10.0 ADDVALUE 30 NaN NaN NaN 16.0 ADDVALUE 40 NaN NaN NaN 40.0 ADDVALUE ] mapper.rate 1 0 0 ] MAP