wassDist: Wasserstein distance between two partitions.

Description Usage Arguments Value Examples

Description

This function calculates Wasserstein distance between two partitions.

Usage

1
wassDist(x, y)

Arguments

x, y

– vectors of cluster labels

Value

a distance between 0 and 1.

Examples

1
2
3
x=c(1,2,3)
y=c(3,2,1)
wassDist(x,y)

OTclust documentation built on May 6, 2019, 9 a.m.