pub struct Akima;
Expand description
Akima Interpolation type.
Non-rounded Akima spline with natural boundary conditions. This method uses the non-rounded corner algorithm of Wodicka.
Trait Implementations§
Source§impl<T> InterpType<T> for Akimawhere
T: Num,
impl<T> InterpType<T> for Akimawhere
T: Num,
Source§fn build(
&self,
xa: &[T],
ya: &[T],
) -> Result<AkimaInterp<T>, InterpolationError>
fn build( &self, xa: &[T], ya: &[T], ) -> Result<AkimaInterp<T>, InterpolationError>
Constructs an Akima Interpolator.
§Example
let xa = [0.0, 1.0, 2.0, 3.0, 4.0];
let ya = [0.0, 2.0, 4.0, 6.0, 8.0];
let interp = Akima.build(&xa, &ya)?;
Source§type Interpolation = AkimaInterp<T>
type Interpolation = AkimaInterp<T>
The returned Interpolator, containing the calculated coefficients and providing the
evaluation methods.
Auto Trait Implementations§
impl Freeze for Akima
impl RefUnwindSafe for Akima
impl Send for Akima
impl Sync for Akima
impl Unpin for Akima
impl UnwindSafe for Akima
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