Loading

mapper.sd.welford

mapper

This mapper function returns the standard deviation of each sliding window. The location and elevation returned are those associated with the most recent value in the sliding window.

This is similar to mapper.sd except this version implements Welford's method which is 10% slower but is much less subject to numerical instability.

The standard deviation is the square root of the variance as computed by mapper.var.

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

mapper.sd.welford is available since version 2.9.0.

See also

Signatures

Examples

[ [ NEWGTS "GTS1" RENAME 10 45.0 4.0 25100 5.0 ADDVALUE 20 50.0 -5.0 25200 120.0 ADDVALUE NEWGTS "GTS2" RENAME 10 52.0 -6.0 25300 8.0 ADDVALUE 20 54.0 -7.0 25400 42.0 ADDVALUE ] true mapper.sd.welford 5 5 0 ] MAP