std_dev::regression::theil_sen

Function slow_linear

source
pub fn slow_linear(predictors: &[f64], outcomes: &[f64]) -> LinearCoefficients
Available on crate feature regression only.
Expand description

Naive Theil-Sen implementation, which checks each line.

Time & space: O(n²)

§Panics

Panics if predictors.len() != outcomes.len().