wassDist {OTclust} | R Documentation |
Wasserstein distance between two partitions.
Description
This function calculates Wasserstein distance between two partitions.
Usage
wassDist(x, y)
Arguments
x , y |
– vectors of cluster labels |
Value
a distance between 0 and 1.
Examples
x=c(1,2,3)
y=c(3,2,1)
wassDist(x,y)
[Package OTclust version 1.0.6 Index]