Trait Interp1DStrategy

Source
pub trait Interp1DStrategy<Sd, Sx, D>
where Sd: Data, Sd::Elem: Num + Debug + Send, 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Sd, Sx, D> Interp1DStrategy<Sd, Sx, D> for CubicSplineStrategy<Sd, D>
where Sd: Data, Sd::Elem: SplineNum, Sx: Data<Elem = Sd::Elem>, D: Dimension + RemoveAxis,

Source§

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