pub fn pearson(x: &[f64], y: &[f64]) -> Result<f64, StatsError>Expand description
Pearson correlation of two equal-length samples.
ยงErrors
StatsError::LengthMismatchif the inputs differ in length.StatsError::EmptyInputif empty.StatsError::ZeroVarianceif either sample is constant (correlation undefined rather than a silentNaN).