pub struct Cubic;
Expand description
Cubic Interpolation type.
Cubic Interpolation with natural boundary conditions. The resulting curve is piecewise cubic on each interval, with matching first and second derivatives at the supplied data-points. The second derivative is chosen to be zero at the first and last point.
§Reference
Numerical Algorithms with C - Gisela Engeln-Mullges, Frank Uhlig - 1996 - Algorithm 10.1, pg 254
Trait Implementations§
Source§impl<T> InterpType<T> for Cubic
impl<T> InterpType<T> for Cubic
Source§fn build(
&self,
xa: &[T],
ya: &[T],
) -> Result<CubicInterp<T>, InterpolationError>
fn build( &self, xa: &[T], ya: &[T], ) -> Result<CubicInterp<T>, InterpolationError>
Constructs a Cubic Interpolator.
§Example
let xa = [0.0, 1.0, 2.0];
let ya = [0.0, 2.0, 4.0];
let interp = Cubic.build(&xa, &ya)?;
Source§type Interpolator = CubicInterp<T>
type Interpolator = CubicInterp<T>
The returned Interpolator, containing the calculated coefficients and providing the
evaluation methods.
Auto Trait Implementations§
impl Freeze for Cubic
impl RefUnwindSafe for Cubic
impl Send for Cubic
impl Sync for Cubic
impl Unpin for Cubic
impl UnwindSafe for Cubic
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