Struct ndarray_interp::interp1d::Linear
source · pub struct Linear {
pub extrapolate: bool,
}
Expand description
Linear Interpolation Strategy
Fields§
§extrapolate: bool
Trait Implementations§
source§impl<Sd, Sx, D> Strategy<Sd, Sx, D> for Linearwhere
Sd: Data,
Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub,
Sx: Data<Elem = Sd::Elem>,
D: Dimension + RemoveAxis,
impl<Sd, Sx, D> Strategy<Sd, Sx, D> for Linearwhere Sd: Data, Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub, Sx: Data<Elem = Sd::Elem>, D: Dimension + RemoveAxis,
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> StrategyBuilder<Sd, Sx, D> for Linearwhere
Sd: Data,
Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub,
Sx: Data<Elem = Sd::Elem>,
D: Dimension + RemoveAxis,
impl<Sd, Sx, D> StrategyBuilder<Sd, Sx, D> for Linearwhere Sd: Data, Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub, Sx: Data<Elem = Sd::Elem>, D: Dimension + RemoveAxis,
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>where
Sx2: Data<Elem = Sd::Elem>,
fn build<Sx2>( self, _x: &ArrayBase<Sx2, Ix1>, _data: &ArrayBase<Sd, D> ) -> Result<Self::FinishedStrat, BuilderError>where Sx2: Data<Elem = Sd::Elem>,
initialize the strategy by validating data and
possibly calculating coefficients
This method is called by
Interp1DBuilder::build
Read moreAuto Trait Implementations§
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