pub struct SteffenInterp<T>where
T: Num,{ /* private fields */ }
Expand description
Steffen Interpolator.
Provides all the evaluation methods.
Should be constructed through the Steffen
type.
Trait Implementations§
Source§impl<T> Interpolation<T> for SteffenInterp<T>where
T: Num,
impl<T> Interpolation<T> for SteffenInterp<T>where
T: Num,
Source§fn eval(
&self,
xa: &[T],
ya: &[T],
x: T,
acc: &mut Accelerator,
) -> Result<T, DomainError>
fn eval( &self, xa: &[T], ya: &[T], x: T, acc: &mut Accelerator, ) -> Result<T, DomainError>
Returns the interpolated value
y
for a given point x
, using the data arrays xa
and ya
and
the Accelerator
acc
. Read moreSource§fn eval_deriv(
&self,
xa: &[T],
ya: &[T],
x: T,
acc: &mut Accelerator,
) -> Result<T, DomainError>
fn eval_deriv( &self, xa: &[T], ya: &[T], x: T, acc: &mut Accelerator, ) -> Result<T, DomainError>
Returns the derivative
dy/dx
of an interpolated function for a given point x
, using the
data arrays xa
and ya
and the Accelerator
acc
. Read moreSource§fn eval_deriv2(
&self,
xa: &[T],
ya: &[T],
x: T,
acc: &mut Accelerator,
) -> Result<T, DomainError>
fn eval_deriv2( &self, xa: &[T], ya: &[T], x: T, acc: &mut Accelerator, ) -> Result<T, DomainError>
Returns the second derivative
d²y/dx²
of an interpolated function for a given point x
, using the
data arrays xa
and ya
and the Accelerator
acc
. Read moreSource§fn eval_integ(
&self,
xa: &[T],
ya: &[T],
a: T,
b: T,
acc: &mut Accelerator,
) -> Result<T, DomainError>
fn eval_integ( &self, xa: &[T], ya: &[T], a: T, b: T, acc: &mut Accelerator, ) -> Result<T, DomainError>
Returns the numerical integral of an interpolated function over the range [
a
,b
], using the
data arrays xa
and ya
and the Accelerator
acc
. Read moreAuto Trait Implementations§
impl<T> Freeze for SteffenInterp<T>
impl<T> RefUnwindSafe for SteffenInterp<T>where
T: RefUnwindSafe,
impl<T> Send for SteffenInterp<T>where
T: Send,
impl<T> Sync for SteffenInterp<T>where
T: Sync,
impl<T> Unpin for SteffenInterp<T>where
T: Unpin,
impl<T> UnwindSafe for SteffenInterp<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