Loading

mapper.var.welford

mapper

This mapper function returns the variance of all the values found in 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.var except this version implements Welford's method which is 10% slower but is much less subject to numerical instability.

If the number of values in the sliding window is greater than one, Bessel’s correction is applied. The mapper.var.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.var.welford is available since version 2.9.0.

See also

Signatures

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 ] true mapper.var.welford 5 5 0 ] MAP