Struct rgsl::types::interpolation::Spline
source · pub struct Spline { /* private fields */ }
Expand description
General interpolation object.
Implementations§
source§impl Spline
impl Spline
pub fn new(t: InterpType, size: usize) -> Option<Spline>
pub fn init(&mut self, xa: &[f64], ya: &[f64]) -> Result<(), 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) -> Result<f64, Value>
pub fn eval_deriv_e(&self, x: f64, acc: &mut InterpAccel) -> Result<f64, Value>
Returns d
.
pub fn eval_deriv2(&self, x: f64, acc: &mut InterpAccel) -> f64
sourcepub fn eval_deriv2_e(&self, x: f64, acc: &mut InterpAccel) -> Result<f64, Value>
pub fn eval_deriv2_e(&self, x: f64, acc: &mut InterpAccel) -> Result<f64, Value>
Returns 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
) -> Result<f64, Value>
pub fn eval_integ_e( &self, a: f64, b: f64, acc: &mut InterpAccel ) -> Result<f64, Value>
Returns 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§
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