RAnEn::generateSearchStations calculates the nearest coordinates for all input coordinates.
generateSearchStations(sx_xs, sx_ys, num_neighbors, sx_distance = NULL)
X coordinates
Y coordinates
The number of neighbors to find
The distance threshold when finding nearest neighbors
A matrix for nearest search station index. Each row is a set of search station index