pairwise.dist | R Documentation |
Computes the pairwise distance matrix between two sets of points
pairwise.dist(a, b, squared = TRUE)
a , b |
matrices (NxD) and (MxD), respectively, where each row represents a D-dimensional point. |
squared |
return containing squared Euclidean distance |
Euclidean distance matrix (NxM). An attribute "squared" set to the
value of param squared
is provided.
pairwise.dist(matrix(1:9, ncol = 3), matrix(9:1, ncol = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.