Skip to main content

spearman

Function spearman 

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

Spearman rank correlation: Pearson on the (tie-averaged) ranks. None if the lengths differ or n < 2. Convenience wrapper over rank_into + pearson; it allocates two n-length rank buffers (use rank_into directly for a zero-allocation path).