# NOT RUN {
# For example, the following will calculate the 5 furthest neighbors of
# eachpoint in "input" and store the distances in "distances" and the
# neighbors in "neighbors":
# }
# NOT RUN {
output <- kfn(k=5, reference=input)
distances <- output$distances
neighbors <- output$neighbors
# }
# NOT RUN {
# The output files are organized such that row i and column j in the
# neighbors output matrix corresponds to the index of the point in the
# reference set which is the j'th furthest neighbor from the point in the
# query set with index i. Row i and column j in the distances output file
# corresponds to the distance between those two points.
# }
Run the code above in your browser using DataLab