Generate data from a non-functional dependence

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.

1 | ```
generate.paths(index, rx, ry, N)
``` |

`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 |

a vector of length (N-1) containing the sorted distances to the nearest neighbour of point index in the sample

Sebastian Dümcke duemcke@mpipz.mpg.de

1 2 3 4 5 | ```
x=rank(runif(10))
y=rank(runif(10))
knnIndep:::generate.paths(5,x,y,10)
#for all points in the sample
sapply(1:10,knnIndep:::generate.paths,x,y,10)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.