pub struct PiecewiseHermite<'a> { /* private fields */ }Expand description
A piecewise cubic Hermite interpolant: on each interval the cubic is fixed by the end values and the end slopes. The slope-selection rule (PCHIP, Akima, Catmull-Rom, …) lives in the constructors of the respective modules.
Outside the data range the end cubic pieces are extended.
Implementations§
Source§impl<'a> PiecewiseHermite<'a>
impl<'a> PiecewiseHermite<'a>
Trait Implementations§
Source§impl<'a> Debug for PiecewiseHermite<'a>
impl<'a> Debug for PiecewiseHermite<'a>
Source§impl<'a> InterpolationTrait<'a> for PiecewiseHermite<'a>
impl<'a> InterpolationTrait<'a> for PiecewiseHermite<'a>
Source§fn get_x_values(&self) -> VR1D<'a>
fn get_x_values(&self) -> VR1D<'a>
Setters and getters for required fields
fn set_x_values(&mut self, x: VR1D<'a>)
fn get_y_values(&self) -> VR1D<'a>
fn set_y_values(&mut self, y: VR1D<'a>)
fn get_cached_location(&self) -> Option<usize>
fn set_cached_location(&mut self, x: usize)
Source§fn raw_interpolate(&mut self, j: usize, x: f64) -> Result<f64, ErrorsJSL>
fn raw_interpolate(&mut self, j: usize, x: f64) -> Result<f64, ErrorsJSL>
This is where the interpolation gets computed based on the method
Source§fn x_range_is_ascending(&self) -> bool
fn x_range_is_ascending(&self) -> bool
Check if x range is ascending
Source§fn verify_sizes(&mut self, limit: usize) -> Result<(), ErrorsJSL>
fn verify_sizes(&mut self, limit: usize) -> Result<(), ErrorsJSL>
Thie function checks to make sure x and y are the same length and greater than 2
Auto Trait Implementations§
impl<'a> Freeze for PiecewiseHermite<'a>
impl<'a> RefUnwindSafe for PiecewiseHermite<'a>
impl<'a> Send for PiecewiseHermite<'a>
impl<'a> Sync for PiecewiseHermite<'a>
impl<'a> Unpin for PiecewiseHermite<'a>
impl<'a> UnsafeUnpin for PiecewiseHermite<'a>
impl<'a> UnwindSafe for PiecewiseHermite<'a>
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