cubic_spline

Crates.io

Interpolation methods for computation of cubic spline points within the range of a discrete set of known points.

Online documentation

Example

```rust use cubic_spline::Spline;

static TENSION: f64 = 0.5; static NUMOFSEGMENTS: u32 = 16;

let points = vec![10.0, 200.0, 256.0, 390.0, 512.0, 10.0, 778.0, 200.0];

let splinepoints = Spline::fromflattenpoints(&points, TENSION, NUMOF_SEGMENTS);

asserteq!(splinepoints.len(), 102); ```

Enjoy using!

License

This module is MIT licensed.