Trait StrategyND

Source
pub trait StrategyND<D>: Debug + DynClone
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,
{ // Required methods fn interpolate( &self, data: &InterpDataND<D>, point: &[D::Elem], ) -> Result<D::Elem, InterpolateError>; fn allow_extrapolate(&self) -> bool; }

Required Methods§

Source

fn interpolate( &self, data: &InterpDataND<D>, point: &[D::Elem], ) -> Result<D::Elem, InterpolateError>

Source

fn allow_extrapolate(&self) -> bool

Does this type’s StrategyND::interpolate provision for extrapolation?

Trait Implementations§

Source§

impl<D> StrategyND<D> for Box<dyn StrategyND<D>>
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,

Source§

fn interpolate( &self, data: &InterpDataND<D>, point: &[D::Elem], ) -> Result<D::Elem, InterpolateError>

Source§

fn allow_extrapolate(&self) -> bool

Does this type’s StrategyND::interpolate provision for extrapolation?

Implementations on Foreign Types§

Source§

impl<D> StrategyND<D> for Box<dyn StrategyND<D>>
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,

Source§

fn interpolate( &self, data: &InterpDataND<D>, point: &[D::Elem], ) -> Result<D::Elem, InterpolateError>

Source§

fn allow_extrapolate(&self) -> bool

Implementors§

Source§

impl<D> StrategyND<D> for Linear
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,

Source§

impl<D> StrategyND<D> for Nearest
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,