pub struct Spline { /* private fields */ }Expand description
General interpolation object.
Implementations
sourceimpl Spline
impl Spline
pub fn new(t: InterpType, size: usize) -> Option<Spline>
pub fn init(&mut self, xa: &[f64], ya: &[f64]) -> Value
pub fn name(&self) -> String
pub fn min_size(&self) -> u32
pub fn eval(&self, x: f64, acc: &mut InterpAccel) -> f64
pub fn eval_deriv(&self, x: f64, acc: &mut InterpAccel) -> f64
sourcepub fn eval_deriv_e(&self, x: f64, acc: &mut InterpAccel) -> (Value, f64)
pub fn eval_deriv_e(&self, x: f64, acc: &mut InterpAccel) -> (Value, f64)
Returns (Value, d).
pub fn eval_deriv2(&self, x: f64, acc: &mut InterpAccel) -> f64
sourcepub fn eval_deriv2_e(&self, x: f64, acc: &mut InterpAccel) -> (Value, f64)
pub fn eval_deriv2_e(&self, x: f64, acc: &mut InterpAccel) -> (Value, f64)
Returns (Value, d2).
pub fn eval_integ(&self, a: f64, b: f64, acc: &mut InterpAccel) -> f64
sourcepub fn eval_integ_e(
&self,
a: f64,
b: f64,
acc: &mut InterpAccel
) -> (Value, f64)
pub fn eval_integ_e(
&self,
a: f64,
b: f64,
acc: &mut InterpAccel
) -> (Value, f64)
Returns (Value, d2).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Spline
impl !Send for Spline
impl !Sync for Spline
impl Unpin for Spline
impl UnwindSafe for Spline
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more