Expand description
Interpolation and splines for Numra.
This crate provides 1D interpolation methods:
- Linear (
Linear): Piecewise linear interpolation - Cubic spline (
CubicSpline): Natural, clamped, and not-a-knot variants - PCHIP (
Pchip): Monotonicity-preserving piecewise cubic Hermite - Akima (
Akima): Robust piecewise cubic (tolerant of outliers) - Barycentric Lagrange (
BarycentricLagrange): Stable polynomial interpolation
Author: Moussa Leblouba Date: 9 February 2026 Modified: 2 May 2026
Re-exports§
pub use akima::Akima;pub use cubic_spline::CubicSpline;pub use error::InterpError;pub use hermite::Pchip;pub use linear::Linear;pub use polynomial::BarycentricLagrange;
Modules§
- akima
- Akima interpolation.
- cubic_
spline - Cubic spline interpolation.
- error
- Author: Moussa Leblouba Date: 9 February 2026 Modified: 2 May 2026
- hermite
- Piecewise Cubic Hermite Interpolating Polynomial (PCHIP).
- linear
- Piecewise linear interpolation.
- polynomial
- Polynomial interpolation via barycentric Lagrange formula.
Enums§
- Interp1d
Method - Interpolation method selector for
interp1d.
Traits§
- Interpolant
- Trait for 1D interpolants.
Functions§
- interp1d
- Convenience: create an interpolant from data using the specified method.