Skip to main content

covariance

Function covariance 

Source
pub fn covariance(x: &[f64], y: &[f64], sample: bool) -> Option<f64>
Expand description

Covariance of two equal-length series. sample == true divides by n-1 (Bessel), else by n. None if the lengths differ or are empty.