pub struct CubicPeriodic;
Expand description
Cubic Periodic Interpolation type.
Cubic Spline with periodic boundary conditions. The resulting curve is piecewise cubic on each interval, with matching first and second derivatives at the supplied data-points. The derivatives at the first and last points are also matched. Note that the last point in the data must have the same y-value as the first point, otherwise the resulting periodic interpolation will have a discontinuity at the boundary.
§Reference
Numerical Algorithms with C - Gisela Engeln-Mullges, Frank Uhlig - 1996 - Algorithm 10.2, pg 255
Trait Implementations§
Source§impl<T> InterpType<T> for CubicPeriodic
impl<T> InterpType<T> for CubicPeriodic
Source§fn build(
&self,
xa: &[T],
ya: &[T],
) -> Result<CubicPeriodicInterp<T>, InterpolationError>
fn build( &self, xa: &[T], ya: &[T], ) -> Result<CubicPeriodicInterp<T>, InterpolationError>
Constructs a Cubic Periodic Interpolator.
§Example
let xa = [0.0, 1.0, 2.0];
let ya = [0.0, 2.0, 4.0];
let interp = CubicPeriodic.build(&xa, &ya)?;
Source§type Interpolator = CubicPeriodicInterp<T>
type Interpolator = CubicPeriodicInterp<T>
The returned Interpolator, containing the calculated coefficients and providing the
evaluation methods.
Auto Trait Implementations§
impl Freeze for CubicPeriodic
impl RefUnwindSafe for CubicPeriodic
impl Send for CubicPeriodic
impl Sync for CubicPeriodic
impl Unpin for CubicPeriodic
impl UnwindSafe for CubicPeriodic
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