# kendalls
[](https://crates.io/crates/kendalls)
[](https://docs.rs/kendalls)
[](https://codecov.io/gh/zolkko/kendalls)
[Kendall's rank correlation coefficient](https://en.wikipedia.org/wiki/Kendall_rank_correlation_coefficient)
# Usage
Add this to your Cargo.toml:
```toml
[dependencies]
kendalls = "0.2.2"
```
and this to your crate root:
```rust
extern crate kendalls;
```
Example:
```rust
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(())
}
```