pub struct Interp2DBuilder<Sd, Sx, Sy, D, Strat>where
    Sd: Data,
    Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub,
    Sx: Data<Elem = Sd::Elem>,
    Sy: Data<Elem = Sd::Elem>,
    D: Dimension,{ /* private fields */ }
Expand description

Create and configure a Interp2D interpolator.

Implementations§

source§

impl<Sd, D> Interp2DBuilder<Sd, OwnedRepr<Sd::Elem>, OwnedRepr<Sd::Elem>, D, Biliniar>where Sd: Data, Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub, D: Dimension,

source

pub fn new(data: ArrayBase<Sd, D>) -> Self

source§

impl<Sd, Sx, Sy, D, Strat> Interp2DBuilder<Sd, Sx, Sy, D, Strat>where Sd: Data, Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub, Sx: Data<Elem = Sd::Elem>, Sy: Data<Elem = Sd::Elem>, D: Dimension + RemoveAxis, D::Smaller: RemoveAxis, Strat: Interp2DStrategyBuilder<Sd, Sx, Sy, D>,

source

pub fn strategy<NewStrat: Interp2DStrategyBuilder<Sd, Sx, Sy, D>>( self, strategy: NewStrat ) -> Interp2DBuilder<Sd, Sx, Sy, D, NewStrat>

Set the interpolation strategy by provideing a Interp2DStrategyBuilder. By default Biliniar is used.

source

pub fn x<NewSx: Data<Elem = Sd::Elem>>( self, x: ArrayBase<NewSx, Ix1> ) -> Interp2DBuilder<Sd, NewSx, Sy, D, Strat>

Add an custom x axis for the data. The axis must have the same lenght as the first axis of the data.

source

pub fn y<NewSy: Data<Elem = Sd::Elem>>( self, y: ArrayBase<NewSy, Ix1> ) -> Interp2DBuilder<Sd, Sx, NewSy, D, Strat>

Add an custom y axis for the data. The axis must have the same lenght as the second axis of the data.

source

pub fn build( self ) -> Result<Interp2D<Sd, Sx, Sy, D, Strat::FinishedStrat>, BuilderError>

Validate the input and create the configured Interp2D

Trait Implementations§

source§

impl<Sd, Sx, Sy, D, Strat: Debug> Debug for Interp2DBuilder<Sd, Sx, Sy, D, Strat>where Sd: Data + Debug, Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub, Sx: Data<Elem = Sd::Elem> + Debug, Sy: Data<Elem = Sd::Elem> + Debug, D: Dimension + Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<Sd, Sx, Sy, D, Strat> RefUnwindSafe for Interp2DBuilder<Sd, Sx, Sy, D, Strat>where D: RefUnwindSafe, Sd: RefUnwindSafe, Strat: RefUnwindSafe, Sx: RefUnwindSafe, Sy: RefUnwindSafe, <Sd as RawData>::Elem: RefUnwindSafe,

§

impl<Sd, Sx, Sy, D, Strat> Send for Interp2DBuilder<Sd, Sx, Sy, D, Strat>where Sd: Send, Strat: Send, Sx: Send, Sy: Send,

§

impl<Sd, Sx, Sy, D, Strat> Sync for Interp2DBuilder<Sd, Sx, Sy, D, Strat>where Sd: Sync, Strat: Sync, Sx: Sync, Sy: Sync,

§

impl<Sd, Sx, Sy, D, Strat> Unpin for Interp2DBuilder<Sd, Sx, Sy, D, Strat>where D: Unpin, Sd: Unpin, Strat: Unpin, Sx: Unpin, Sy: Unpin,

§

impl<Sd, Sx, Sy, D, Strat> UnwindSafe for Interp2DBuilder<Sd, Sx, Sy, D, Strat>where D: UnwindSafe, Sd: UnwindSafe, Strat: UnwindSafe, Sx: UnwindSafe, Sy: UnwindSafe, <Sd as RawData>::Elem: RefUnwindSafe,

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.