Skip to main content

value_at

Function value_at 

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

The value at at, linearly interpolated between the samples bracketing it.

x must be sorted ascending. Outside the sampled span the nearest end sample is answered; an empty run answers zero.