distSpearman | R Documentation |
The Spearman distance is the square of Euclidean distance between two rank vector.
distSpearman(x, y)
x, y |
two ranks of size m. |
an integer, the Spearman distance between x and y.
Julien Jacques
Other distance:
distCayley()
,
distHamming()
,
distKendall()
x <- 1:5 y <- c(2, 3, 1, 4, 5) distSpearman(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.