Trait ndarray_interp::interp1d::Interp1DStrategy  
source · 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§
sourcefn interp_into(
    &self,
    interpolator: &Interp1D<Sd, Sx, D, Self>,
    target: ArrayViewMut<'_, Sd::Elem, D::Smaller>,
    x: Sx::Elem
) -> Result<(), InterpolateError>
 
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