Loading

reducer.mad

reducer

Pushes onto the stack an AGGREGATOR which computes the Median Absolute Deviation for each ticks. Null values are removed before computing the MAD for each ticks.

The returned location is the median of all the locations and the returned elevation is the median of all the elevations.

reducer.mad is available since version 1.2.0.

See also

Signatures

Examples

[ [ NEWGTS "GTS1" RENAME 10 NaN NaN NaN -100.0 ADDVALUE //clearly an outlier 20 NaN NaN NaN 5.0 ADDVALUE NEWGTS "GTS2" RENAME 10 NaN NaN NaN 4.0 ADDVALUE 20 NaN NaN NaN 3.0 ADDVALUE NEWGTS "GTS3" RENAME 10 NaN NaN NaN 3.0 ADDVALUE 20 NaN NaN NaN 180.0 ADDVALUE //clearly an outlier NEWGTS "GTS4" RENAME 10 NaN NaN NaN 6.0 ADDVALUE 30 NaN NaN NaN 1.0 ADDVALUE //not aligned //tick 10: -100.0 3.0 3.0 6.0 //tick 20: 5.0 3.0 180.0 //tick 30: 1.0 ] [] reducer.mad ] REDUCE