kendalls

Crates.iokendalls
lib.rskendalls
version0.2.2
sourcesrc
created_at2018-08-28 18:47:20.825831
updated_at2024-07-08 19:34:42.358273
descriptionKendall's tau rank correlation
homepagehttps://github.com/zolkko/kendalls
repositoryhttps://github.com/zolkko/kendalls
max_upload_size
id81864
size17,136
Genaro Camele (Genarito)

documentation

https://docs.rs/kendalls/

README

kendalls

crates.io docs.rs codecov

Kendall's rank correlation coefficient

Usage

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(())
}
Commit count: 61

cargo fmt