https://github.com/zolkko/kendalls
Kendall's tau rank correlation
https://github.com/zolkko/kendalls
rust statistics
Last synced: 3 months ago
JSON representation
Kendall's tau rank correlation
- Host: GitHub
- URL: https://github.com/zolkko/kendalls
- Owner: zolkko
- License: mit
- Created: 2018-08-28T16:11:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-11-21T14:12:39.000Z (7 months ago)
- Last Synced: 2025-12-13T20:35:19.918Z (6 months ago)
- Topics: rust, statistics
- Language: Rust
- Size: 46.9 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 = "1.0.0"
```
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(())
}
```