Description Usage Arguments Details Value Author(s)
Compute the L2 distance between two vectors or matrices.
1 |
x1 |
(vector/matrix) The first vector/matrix. |
x2 |
(vector/matrix, the same dimension as x1) The second vector/matrix. |
This function gives the Euclidean distance between two vectors or matrices.
dist |
(numeric) Euclidean distance. |
Wenying Deng
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.