pub trait Interp1DStrategy<Sd, Sx, D>where
    Sd: Data,
    Sd::Elem: Num + Debug,
    Sx: Data<Elem = Sd::Elem>,
    D: Dimension,
    Self: Sized,{
    // Required method
    fn interp_into(
        &self,
        interpolator: &Interp1D<Sd, Sx, D, Self>,
        target: ArrayViewMut<'_, Sd::Elem, D::Smaller>,
        x: Sx::Elem
    ) -> Result<(), InterpolateError>;
}

Required Methods§

source

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

Interpolate the at position x into the target array. This is used internally by Interp1D.

When called by Interp1D the following properties are guaranteed:

  • The shape of the target array matches the shape of the data array (provided to the builder) with the first axis removed.
  • x can be any valid Sx::Elem

Implementors§

source§

impl<Sd, Sx, D> Interp1DStrategy<Sd, Sx, D> for Linearwhere Sd: Data, Sd::Elem: Num + PartialOrd + NumCast + Copy + Debug + Sub, Sx: Data<Elem = Sd::Elem>, D: Dimension + RemoveAxis,