dist2 {SpatialTools} | R Documentation |
Calculate Euclidean distance matrix between coordinates of two matrices
Description
dist2
takes the matrices of coordinates
coords1
and coords2
and returns the
inter-Euclidean distances between coordinates.
Usage
dist2(coords1, coords2)
Arguments
coords1 |
An |
coords2 |
An |
Value
An matrix of Euclidean distances.
Author(s)
Joshua French
See Also
dist, dist1
Examples
x1 <- matrix(rnorm(30), ncol = 3)
x2 <- matrix(rnorm(60), ncol = 3)
dist2(x1, x2)
[Package SpatialTools version 1.0.5 Index]