generate.paths:
Generate all nearest neighbours distances for one point in a sample
Description
Help function which generates the nearest neighbhour distances for a single point in a sample, assuming rank data on a torus with the maximum distance.
Usage
generate.paths(index, rx, ry, N)
Arguments
index
for which point to calculate the nearest neighbhour distances
rx
ranked data (1st dimension)
ry
ranked data (2nd dimension)
N
Number of points in sample
Value
a vector of length (N-1) containing the sorted distances to the nearest neighbour of point index in the sample