Struct Interp2DBuilder

Source
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, Bilinear>
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 + Send, 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 Bilinear 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> Freeze for Interp2DBuilder<Sd, Sx, Sy, D, Strat>
where <Sd as RawData>::Elem: Sized, Strat: Freeze, Sx: Freeze, Sy: Freeze, Sd: Freeze, D: Freeze,

§

impl<Sd, Sx, Sy, D, Strat> RefUnwindSafe for Interp2DBuilder<Sd, Sx, Sy, D, Strat>

§

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

§

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

§

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

§

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

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.