Function rgsl::statistics::covariance_m[][src]

pub fn covariance_m(
    data1: &[f64],
    stride1: usize,
    data2: &[f64],
    stride2: usize,
    n: usize,
    mean1: f64,
    mean2: f64
) -> f64

This function computes the covariance of the datasets data1 and data2 using the given values of the means, mean1 and mean2. This is useful if you have already computed the means of data1 and data2 and want to avoid recomputing them.