pub fn std_dev_with_mean(samples: &[f64], mean: f64) -> f64
Compute sample standard deviation given a pre-computed mean.
Useful when the mean has already been calculated separately.