powered by
The Spearman distance is the square of Euclidean distance between two rank vector.
distSpearman(x, y)
an integer, the Spearman distance between x and y.
two ranks of size m.
Julien Jacques
Other distance: distCayley(), distHamming(), distKendall()
distCayley()
distHamming()
distKendall()
x <- 1:5 y <- c(2, 3, 1, 4, 5) distSpearman(x, y)
Run the code above in your browser using DataLab