Out of a list of locations given by their Cartesian coordinates, selects pairs of locations with a distance as a criterion.
A d x 2 matrix containing the Cartesian coordinates of d points in the plane.
Pairs of locations with distance not larger than
The number of pairs that will be selected, taking distance as a criterion, with closer pairs being selected. It will return more pairs if there are several equidistant locations.
A matrix with
q rows and 2 columns, where
q denotes the number of pairs selected. Each row contains the indices of the corresponding pair of selected locations in the input argument
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.