edm: Calculates euclidean distance every pairs of points in two...

edmR Documentation

Calculates euclidean distance every pairs of points in two matrices.

Description

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.

Usage

edm(m1, m2)

Arguments

m1

The first matrix of coordinates.

m2

The second matrix of coordinates.

Details

If one wishes to align two (or more shapes) Procrustes surimposition may provide a better solution.

Value

Returns a vector of euclidean distances between pairwise coordinates in the two matrices.

See Also

ed, edm_nearest, dist.

Examples

x <- matrix(1:10, nc=2)
edm(x, x)
edm(x, x+1)

vbonhomme/Momocs documentation built on Nov. 13, 2023, 8:54 p.m.