Struct cubic_splines::Spline [−][src]
pub struct Spline<T> { /* fields omitted */ }
A result of interpolation between a set of points
Implementations
impl<T> Spline<T> where
T: Add<T, Output = T> + AddAssign<T> + Sub<T, Output = T> + SubAssign<T> + Mul<f64, Output = T> + Div<f64, Output = T> + Copy + Zero,
[src]
impl<T> Spline<T> where
T: Add<T, Output = T> + AddAssign<T> + Sub<T, Output = T> + SubAssign<T> + Mul<f64, Output = T> + Div<f64, Output = T> + Copy + Zero,
[src]pub fn new(
points: Vec<(f64, T)>,
boundary_condition: BoundaryCondition<T>
) -> Self
[src]
points: Vec<(f64, T)>,
boundary_condition: BoundaryCondition<T>
) -> Self
Creates a new interpolated function fit to a set of given points with the given boundary conditions
pub fn eval(&self, x: f64) -> T
[src]
Evaluates the interpolated function at a given point
pub fn eval_derivative(&self, x: f64) -> T
[src]
pub fn min_x(&self) -> f64
[src]
pub fn max_x(&self) -> f64
[src]
pub fn derivative_start(&self) -> T
[src]
pub fn derivative_end(&self) -> T
[src]
pub fn polynomials(&self) -> impl Iterator<Item = (f64, f64, CubicPoly<T>)> + '_
[src]
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Spline<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Spline<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Spline<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Spline<T> where
T: UnwindSafe,