Function linear_regression

Source
fn linear_regression(x: &[f64], y: &[f64]) -> Result<EstimatedRate, Error>