powered by
This function calculates Wasserstein distance between two partitions.
wassDist(x, y)
a distance between 0 and 1.
-- vectors of cluster labels
x=c(1,2,3) y=c(3,2,1) wassDist(x,y)
Run the code above in your browser using DataLab