RAnEn::generateSearchStations calculates the nearest coordinates for all input coordinates.

generateSearchStations(sx_xs, sx_ys, num_neighbors, sx_distance = NULL)

Arguments

sx_xs

X coordinates

sx_ys

Y coordinates

num_neighbors

The number of neighbors to find

distance

The distance threshold when finding nearest neighbors

Value

A matrix for nearest search station index. Each row is a set of search station index