Skip to main content

linear_interp

Function linear_interp 

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

Linear interpolation at point t using binary search.

Clamps to boundary values outside the domain of x.