powered by
Computes the pairwise distance matrix between two sets of points
pairwise.dist(a, b, squared = TRUE)
Euclidean distance matrix (NxM). An attribute "squared" set to the value of param squared is provided.
squared
matrices (NxD) and (MxD), respectively, where each row represents a D-dimensional point.
return containing squared Euclidean distance
pairwise.dist(matrix(1:9, ncol = 3), matrix(9:1, ncol = 3))
Run the code above in your browser using DataLab