Description Usage Arguments Value Examples
Calculate the distance between two vector of the same length using the chosen distance function.
1 | distanceBetween(x, y, distance = "euc")
|
x |
first vector |
y |
second vector |
distance |
distance function used to calculate the distance between the vectors |
A positive number that is the distance between the two vectors
1 2 | # Uses the default distance function: Euclidean distance
distanceBetween(c(1, 2, 3), c(3, 2, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.