Skip to main content

correlation

Function correlation 

Source
pub fn correlation(x: &[f64], y: &[f64]) -> f64
Expand description

Returns the Pearson correlation coefficient of x and y.

Returns 0.0 when either standard deviation is zero or there are fewer than 2 paired values.