pub fn std_dev(data: &[f64]) -> f64
Computes the sample standard deviation of a slice of values.
Returns 0.0 if the slice has fewer than 2 elements.
0.0