8 releases
Uses old Rust 2015
0.2.1 | Feb 8, 2022 |
---|---|
0.2.0 | May 17, 2021 |
0.1.5 | Dec 23, 2020 |
0.1.2 | May 27, 2019 |
0.1.1 | Aug 29, 2018 |
#952 in Algorithms
218 downloads per month
Used in ggca
17KB
327 lines
kendalls
Kendall's rank correlation coefficient
Usage
Add this to your Cargo.toml:
[dependencies]
kendalls = "0.2.1"
and this to your crate root:
extern crate kendalls;
Example:
fn main() -> Result<(), kendalls::Error> {
let (tau_b, significance) = kendalls::tau_b(&[1, 2, 3], &[3, 4, 5])?;
assert_eq!(tau_b, 1.0);
assert_eq!(significance, 1.5666989036012806);
Ok(())
}