pub trait Interp1DStrategyBuilder<Sd, Sx, D>where
    Sd: Data,
    Sd::Elem: Num + Debug,
    Sx: Data<Elem = Sd::Elem>,
    D: Dimension,
    Self: Sized,{
    type FinishedStrat: Interp1DStrategy<Sd, Sx, D>;
    const MINIMUM_DATA_LENGHT: usize;
    // Required method
    fn build<Sx2>(
        self,
        x: &ArrayBase<Sx2, Ix1>,
        data: &ArrayBase<Sd, D>
    ) -> Result<Self::FinishedStrat, BuilderError>
       where Sx2: Data<Elem = Sd::Elem>;
}Required Associated Types§
type FinishedStrat: Interp1DStrategy<Sd, Sx, D>
Required Associated Constants§
const MINIMUM_DATA_LENGHT: usize
Required Methods§
sourcefn build<Sx2>(
    self,
    x: &ArrayBase<Sx2, Ix1>,
    data: &ArrayBase<Sd, D>
) -> Result<Self::FinishedStrat, BuilderError>where
    Sx2: Data<Elem = Sd::Elem>,
 
fn build<Sx2>( self, x: &ArrayBase<Sx2, Ix1>, data: &ArrayBase<Sd, D> ) -> Result<Self::FinishedStrat, BuilderError>where Sx2: Data<Elem = Sd::Elem>,
initialize the strategy by validating data and
possibly calculating coefficients
This method is called in Interp1DBuilder::build
When this method is called by Interp1DBuilder the
following properties are guaranteed:
- x is strictly monotonically rising
- the lenght of x equals the lenght of the data Axis 0
- the lenght is at least MINIMUM_DATA_LENGHT
- Interpolation will happen along axis 0