distCayley: Cayley distance between two ranks

View source: R/rankDistance.R

distCayleyR Documentation

Cayley distance between two ranks

Description

The Cayley distance between two ranks x and y is the minimum number of transpositions required to transform the ranking x into y.

Usage

distCayley(x, y)

Arguments

x, y

two ranks of size m.

Value

the Cayley distance between x and y.

Author(s)

Julien Jacques

See Also

Other distance: distHamming(), distKendall(), distSpearman()

Examples

x <- 1:5
y <- c(2, 3, 1, 4, 5)
distCayley(x, y)


Rankcluster documentation built on Nov. 12, 2022, 9:05 a.m.