pub fn vec_normalize_f64(v: &[f64]) -> Vec<f64>
Normalise a f64 vector so that its values sum to 1.0.
f64
Returns the vector unchanged if the sum is zero.