eD {tiger} | R Documentation |
Calculate the euclidean distance for multiple vectors
eD(x, y)
x |
matrix with first set of vectors. |
y |
matrix with second set of vectors. |
x and y need the following structure to compare multiple vectors at once:
rows contain the k vectors
columns the n coordinates in the n-space
str(x) == matrix [1:k, 1:n]
vector with the euclidean distance for each pair
Dominik Reusser
eD(1:3, 2:4)