orderCoordinatesMMD {BayesNSGP} | R Documentation |
orderCoordinatesMMD
orders an array of (x,y) spatial coordinates
according to the "maximum minimum distance" (MMD), as described in Guinness,
2018. (Points are selected to maximize their minimum distance to already-
selected points).
orderCoordinatesMMD(coords, exact = FALSE)
coords |
N x 2 array of N 2-dimensional (x,y) spatial coordinates. |
exact |
Logical; |
A list of distances matrices, with the following components:
orderedCoords |
N x 2 matrix; contains the ordered spatial coordinates
as |
orderedIndicesNoNA |
N-vector; contains the ordered indices with any NA values removed. |
coords <- cbind(runif(100), runif(100))
orderCoordinatesMMD(coords)