Calculate the distance between two vector of the same length using the chosen distance function.
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.828427