pub fn interpolate_monotonic( algorithm: Algorithm, derivative: Derivative, x: &[f64], y: &[f64], x_eval: &[f64], ) -> Result<Vec<f64>>
This function assumes the data is sorted and free of duplicates.