powered by
Neighbour(query, ref, k, build = "kdtree", cores = 0, checks = 1)
## Find the nearest neighbour using a KD Tree query <- matrix(rnorm(10), ncol = 2) reference <- matrix(rnorm(10), ncol = 2) Neighbour(query, reference, 3, "kdtree", 0, 1)
Run the code above in your browser using DataLab