pub struct Pchip<S: Scalar> { /* private fields */ }Expand description
Piecewise Cubic Hermite Interpolating Polynomial (PCHIP).
Uses the Fritsch-Carlson method to compute slopes that preserve monotonicity of the data.
Implementations§
Trait Implementations§
Source§impl<S: Scalar> Interpolant<S> for Pchip<S>
impl<S: Scalar> Interpolant<S> for Pchip<S>
Source§fn interpolate(&self, x: S) -> S
fn interpolate(&self, x: S) -> S
Evaluate the interpolant at
x.
Extrapolates using the first/last segment if x is outside the data range.Source§fn derivative(&self, x: S) -> Option<S>
fn derivative(&self, x: S) -> Option<S>
First derivative at
x, if available.Source§fn interpolate_vec(&self, xs: &[S]) -> Vec<S>
fn interpolate_vec(&self, xs: &[S]) -> Vec<S>
Evaluate at multiple points.
Auto Trait Implementations§
impl<S> Freeze for Pchip<S>
impl<S> RefUnwindSafe for Pchip<S>where
S: RefUnwindSafe,
impl<S> Send for Pchip<S>
impl<S> Sync for Pchip<S>
impl<S> Unpin for Pchip<S>where
S: Unpin,
impl<S> UnsafeUnpin for Pchip<S>
impl<S> UnwindSafe for Pchip<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more