powered by
Compute the L2 distance between two vectors or matrices.
euc_dist(x1, x2 = NULL)
(vector/matrix) The first vector/matrix.
(vector/matrix, the same dimension as x1) The second vector/matrix.
(numeric) Euclidean distance.
This function gives the Euclidean distance between two vectors or matrices.