pub fn linear_interp(x: &[f64], y: &[f64], t: f64) -> f64
Linear interpolation at point t using binary search.
t
Clamps to boundary values outside the domain of x.
x