euclidean | R Documentation |
This function computes the Euclidean distance between the lower triangular parts of two given matrices.
euclidean(mat1, mat2)
mat1 |
A numeric matrix. |
mat2 |
A numeric matrix. |
A numeric value representing the Euclidean distance between the
lower triangular parts of mat1
and mat2
.
mat1 <- matrix(c(1, 2, 3, 4), 2, 2)
mat2 <- matrix(c(4, 3, 2, 1), 2, 2)
euclidean(mat1, mat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.