pub trait TangentEstimator {
    // Required method
    fn model_tangent(
        &self,
        predictors: &[f64],
        outcomes: &[f64],
        max_frequency: f64,
    ) -> TangentCoefficients;
    // Provided method
    fn boxed_tangent(self) -> Box<dyn TangentEstimator>
       where Self: Sized + 'static { ... }
}Available on crate feature 
regression only.Expand description
Implemented by all estimators yielding a tangent function.
Required Methods§
sourcefn model_tangent(
    &self,
    predictors: &[f64],
    outcomes: &[f64],
    max_frequency: f64,
) -> TangentCoefficients
 
fn model_tangent( &self, predictors: &[f64], outcomes: &[f64], max_frequency: f64, ) -> TangentCoefficients
Model the TangentCoefficients from predictors and outcomes.
§Panics
The two slices must have the same length.
Provided Methods§
sourcefn boxed_tangent(self) -> Box<dyn TangentEstimator>where
    Self: Sized + 'static,
 
fn boxed_tangent(self) -> Box<dyn TangentEstimator>where
    Self: Sized + 'static,
Put this estimator in a box. This is useful for conditionally choosing different estimators.