Skip to main content

covariance

Function covariance 

Source
pub fn covariance(x: &[f64], y: &[f64], ddof: usize) -> Result<f64, ErrorsJSL>
Expand description

The covariance Σ(x − x̄)(y − ȳ) / (n − ddof).