# Trait std_dev::regression::LogisticEstimator

source · ```
pub trait LogisticEstimator {
// Required method
fn model_logistic(
&self,
predictors: &[f64],
outcomes: &[f64]
) -> LogisticCoefficients;
// Provided method
fn boxed_logistic(self) -> Box<dyn LogisticEstimator>
where Self: Sized + 'static { ... }
}
```

Available on

**crate feature**only.`regression`

## Expand description

Implemented by all estimators yielding an logistic regression.

## Required Methods§

source#### fn model_logistic(
&self,
predictors: &[f64],
outcomes: &[f64]
) -> LogisticCoefficients

#### fn model_logistic( &self, predictors: &[f64], outcomes: &[f64] ) -> LogisticCoefficients

Model the `LogisticCoefficients`

from `predictors`

and `outcomes`

.

##### Panics

The two slices must have the same length.

## Provided Methods§

source#### fn boxed_logistic(self) -> Box<dyn LogisticEstimator>where
Self: Sized + 'static,

#### fn boxed_logistic(self) -> Box<dyn LogisticEstimator>where Self: Sized + 'static,

Put this estimator in a box. This is useful for conditionally choosing different estimators.