wassDist | R Documentation |
This function calculates Wasserstein distance between two partitions.
wassDist(x, y)
x, y |
– vectors of cluster labels |
a distance between 0 and 1.
x=c(1,2,3)
y=c(3,2,1)
wassDist(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.