pub fn compute_std(x: &[f64], x_mean: f64) -> f64
Compute the sample standard deviation of a slice given a pre-computed mean.