distSpearman: Spearman distance between two ranks

View source: R/rankDistance.R

distSpearmanR Documentation

Spearman distance between two ranks

Description

The Spearman distance is the square of Euclidean distance between two rank vector.

Usage

distSpearman(x, y)

Arguments

x, y

two ranks of size m.

Value

an integer, the Spearman distance between x and y.

Author(s)

Julien Jacques

See Also

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

Examples

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


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