pub struct Spline<T> { /* private fields */ }Expand description
A result of interpolation between a set of points
Implementations§
Source§impl<T> Spline<T>
impl<T> Spline<T>
Sourcepub fn new(
points: Vec<(f64, T)>,
boundary_condition: BoundaryCondition<T>,
) -> Self
pub fn new( points: Vec<(f64, T)>, boundary_condition: BoundaryCondition<T>, ) -> Self
Creates a new interpolated function fit to a set of given points with the given boundary conditions
pub fn eval_derivative(&self, x: f64) -> T
pub fn min_x(&self) -> f64
pub fn max_x(&self) -> f64
pub fn derivative_start(&self) -> T
pub fn derivative_end(&self) -> T
pub fn polynomials(&self) -> impl Iterator<Item = (f64, f64, CubicPoly<T>)> + '_
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Spline<T>where
T: Freeze,
impl<T> RefUnwindSafe for Spline<T>where
T: RefUnwindSafe,
impl<T> Send for Spline<T>where
T: Send,
impl<T> Sync for Spline<T>where
T: Sync,
impl<T> Unpin for Spline<T>where
T: Unpin,
impl<T> UnwindSafe for Spline<T>where
T: UnwindSafe,
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