pub fn linear_regression<T>(
x: &[T],
y: &[T],
proportional: bool,
) -> Result<(f64, f64), StatsrustError>where
T: ToPrimitive + Copy,Expand description
Calculates linear regression parameters
pub fn linear_regression<T>(
x: &[T],
y: &[T],
proportional: bool,
) -> Result<(f64, f64), StatsrustError>where
T: ToPrimitive + Copy,Calculates linear regression parameters