EMD
A simple Rust library for computing the Earth Mover's Distance (or "Wasserstein distance" or "Kantorovich–Rubinstein distance").
This is a wrapper of Gary Doran's pyemd.
Basic usage
Include the following in Cargo.toml
:
emd = "0.1.1"
Then:
extern crate emd;
extern crate ndarray;
use *;
use *;
let x = array!;
let y = array!;
assert_eq!;
Check out the docs for more.