Module interp1d

Module interp1d 

Source
Expand description

One-dimensional linear interpolation.

§Examples

use interp::interp1d::Interp1D;

let xs = vec![0.0, 1.0, 2.0];
let zs = vec![0.0f64, 1.0, 0.0];

let interp = Interp1D::new(xs, zs);

assert!((interp.eval_no_extrapolation(1.0).unwrap() - 1.0).abs() < 1e-6);

Structs§

Interp1D
C: Coordinate type.Z: Value type.