3 unstable releases

0.2.0 Nov 7, 2020
0.1.1 Nov 7, 2020
0.1.0 Nov 2, 2020

#14 in #correlation

Apache-2.0

21KB
542 lines

ordist

Order distance package.

usage

use ordist::distances::*;
use ordist::permutation::*;
fn main() {
    let v1 = vec![1, 2, 3, 4, 5];
    let v2 = vec![3, 4, 1, 2, 5];
    println!(
        "{} == {}",
        cayley_dist(&v1, &v2).unwrap(),
        v1.len() - n_circle(&v1, &v2).unwrap()
    );
}

Dependencies

~2MB
~35K SLoC