Crates.io | kendalls |
lib.rs | kendalls |
version | 0.2.2 |
source | src |
created_at | 2018-08-28 18:47:20.825831 |
updated_at | 2024-07-08 19:34:42.358273 |
description | Kendall's tau rank correlation |
homepage | https://github.com/zolkko/kendalls |
repository | https://github.com/zolkko/kendalls |
max_upload_size | |
id | 81864 |
size | 17,136 |
Kendall's rank correlation coefficient
Add this to your Cargo.toml:
[dependencies]
kendalls = "0.2.2"
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(())
}