pub fn median_absolute_deviation( x: &[f64], scale: f64, ) -> Result<f64, ErrorsJSL>
The median absolute deviation median(|x − median(x)|), scaled by scale (1.4826 makes it a consistent estimator of σ for normal data).
median(|x − median(x)|)
scale