Calculate MAD outlier detection in Rust.
rs_mad_outlier.RdCalculate MAD outlier detection in Rust.
Arguments
- x
Numerical vector to test.
- threshold
Numeric. Number of MADs in either direction that is acceptable.
- direction
String. One of
c("below", "above", "twosided"). Shall the outlier direction be done for values below the threshold, above the threshold or in both directions. Weird strings default to twosided tests.