Loading

bucketizer.mad


bucketizer
Since v1.2.0
Available on all platforms
See also

Pushes onto the stack a MAPPER which computes the Median Absolute Deviation of each bucket.

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

Signature

Examples

[ [ NEWGTS 10 NaN NaN NaN 3.0 ADDVALUE 12 NaN NaN NaN 3.0 ADDVALUE 30 NaN NaN NaN 3.0 ADDVALUE 32 NaN NaN NaN 3.0 ADDVALUE 35 NaN NaN NaN 4.5 ADDVALUE 38 NaN NaN NaN 0.0 ADDVALUE 39 NaN NaN NaN 8.0 ADDVALUE ] bucketizer.mad 40 //last bucket 20 //bucket span 2 //bucket count ] BUCKETIZE