Loading

mapper.mean


mapper
Since v1.0.11
Available on all platforms
See also

This mapper function returns the mean of all the values found in each sliding window. The associated location is the centroid of all the encountered locations. The associated elevation is the mean of the encountered elevations.

The mapper.mean 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 10 NaN NaN NaN 2.0 ADDVALUE 20 NaN NaN NaN 8.0 ADDVALUE 30 NaN NaN NaN 11.0 ADDVALUE 40 NaN NaN NaN 20.0 ADDVALUE ] mapper.mean 2 0 0 ] MAP