pub struct Linear { /* private fields */ }
Expand description
Linear Interpolation Strategy
Implementations§
Trait Implementations§
Source§impl<Sd, Sx, D> Interp1DStrategy<Sd, Sx, D> for Linear
impl<Sd, Sx, D> Interp1DStrategy<Sd, Sx, D> for Linear
Source§fn interp_into(
&self,
interpolator: &Interp1D<Sd, Sx, D, Self>,
target: ArrayViewMut<'_, Sd::Elem, <D as Dimension>::Smaller>,
x: Sx::Elem,
) -> Result<(), InterpolateError>
fn interp_into( &self, interpolator: &Interp1D<Sd, Sx, D, Self>, target: ArrayViewMut<'_, Sd::Elem, <D as Dimension>::Smaller>, x: Sx::Elem, ) -> Result<(), InterpolateError>
Source§impl<Sd, Sx, D> Interp1DStrategyBuilder<Sd, Sx, D> for Linear
impl<Sd, Sx, D> Interp1DStrategyBuilder<Sd, Sx, D> for Linear
const MINIMUM_DATA_LENGHT: usize = 2usize
type FinishedStrat = Linear
Source§fn build<Sx2>(
self,
_x: &ArrayBase<Sx2, Ix1>,
_data: &ArrayBase<Sd, D>,
) -> Result<Self::FinishedStrat, BuilderError>
fn build<Sx2>( self, _x: &ArrayBase<Sx2, Ix1>, _data: &ArrayBase<Sd, D>, ) -> Result<Self::FinishedStrat, BuilderError>
initialize the strategy by validating data and
possibly calculating coefficients
This method is called in
Interp1DBuilder::build
Read moreAuto Trait Implementations§
impl Freeze for Linear
impl RefUnwindSafe for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
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