pub struct Akima<S: Scalar> { /* private fields */ }Expand description
Akima interpolant.
Uses Akima’s method for computing slopes, which is robust to outliers in the data. Requires at least 5 data points.
Implementations§
Trait Implementations§
Source§impl<S: Scalar> Interpolant<S> for Akima<S>
impl<S: Scalar> Interpolant<S> for Akima<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 Akima<S>
impl<S> RefUnwindSafe for Akima<S>where
S: RefUnwindSafe,
impl<S> Send for Akima<S>
impl<S> Sync for Akima<S>
impl<S> Unpin for Akima<S>where
S: Unpin,
impl<S> UnsafeUnpin for Akima<S>
impl<S> UnwindSafe for Akima<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