pub struct Linear {
    pub extrapolate: bool,
}
Expand description

Linear Interpolation Strategy

Fields§

§extrapolate: bool

Trait Implementations§

source§

impl Debug for Linear

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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,

source§

fn interp_into( &self, interpolator: &Interp1D<Sd, Sx, D, Self>, target: ArrayViewMut<'_, Sd::Elem, <D as Dimension>::Smaller>, x: Sx::Elem ) -> Result<(), InterpolateError>

Interpolate the at position x into the target array. This is used internally by Interp1D. Read more
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,

source§

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>,

initialize the strategy by validating data and possibly calculating coefficients This method is called by Interp1DBuilder::build Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.