pub fn linear_fit<F>(x: &[F], y: &[F]) -> (F, F)where F: Float + FromPrimitive,
Simple linear fit for two variables