Calculates euclidean distance every pairs of points in two matrices.
Source:R/coo-utilities.R
edm.Rd
edm
returns the euclidean distances between points \(1 -> n\) of
two 2-col matrices of the same dimension. This function is used internally
but may be of interest for other analyses.
Details
If one wishes to align two (or more shapes) Procrustes surimposition may provide a better solution.
See also
ed, edm_nearest, dist.
Examples
x <- matrix(1:10, nc=2)
edm(x, x)
#> [1] 0 0 0 0 0
edm(x, x+1)
#> [1] 1.414214 1.414214 1.414214 1.414214 1.414214