dist2Dmatrix {RcppCensSpatial} | R Documentation |
Distance matrix computation
Description
It computes the Euclidean distance matrix for a set of coordinates.
Usage
dist2Dmatrix(coords)
Arguments
coords |
2D spatial coordinates of dimensions |
Value
An distance matrix.
Author(s)
Katherine L. Valeriano, Alejandro Ordoñez, Christian E. Galarza, and Larissa A. Matos.
Examples
n = 100
set.seed(1000)
x = round(runif(n,0,10), 5) # X coordinate
y = round(runif(n,0,10), 5) # Y coordinate
Mdist = dist2Dmatrix(cbind(x, y))
[Package RcppCensSpatial version 0.3.0 Index]