pub struct Steffen;
Expand description
Steffen Interpolation type.
Steffen’s method guarantees the monotonicity of the interpolating function between the given data points. Therefore, minima and maxima can only occur exactly at the data points, and there can never be spurious oscillations between data points. The interpolated function is piecewise cubic in each interval. The resulting curve and its first derivative are guaranteed to be continuous, but the second derivative may be discontinuous.
Trait Implementations§
Source§impl<T> InterpType<T> for Steffenwhere
T: Num,
impl<T> InterpType<T> for Steffenwhere
T: Num,
Source§fn build(
&self,
xa: &[T],
ya: &[T],
) -> Result<SteffenInterp<T>, InterpolationError>
fn build( &self, xa: &[T], ya: &[T], ) -> Result<SteffenInterp<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 = Steffen.build(&xa, &ya)?;
Source§type Interpolator = SteffenInterp<T>
type Interpolator = SteffenInterp<T>
The returned Interpolator, containing the calculated coefficients and providing the
evaluation methods.
Auto Trait Implementations§
impl Freeze for Steffen
impl RefUnwindSafe for Steffen
impl Send for Steffen
impl Sync for Steffen
impl Unpin for Steffen
impl UnwindSafe for Steffen
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