pub fn standardize(data: &[f64]) -> Result<Vec<f64>, String>
Min-max normalization: (xi - min) / (max - min).