Skip to main content

linear_interp

Function linear_interp 

Source
pub fn linear_interp(xs: &[f64], ys: &[f64], x: f64) -> f64
Expand description

Piecewise linear interpolation of (xs, ys) at x, flat beyond the ends. xs must be sorted strictly increasing.