makima_spline
A implementation of the modified akima interpolation + additionally features linear extrapolation
HowTo
use Spline;
your data is in some format
let x = vec!;
let y = vec!;
convert to the type used by the spline Vec<(f64, f64)>
let points = vec_to_points;
build the spline from the data-points
let spline = from_vec;
To sample do this:
let y = spline.sample;