pub fn calculate_range<T: Float + Copy>(data: &[T]) -> (T, T)
Calculate the range of values in a slice