Finds the k nearest neighbours using Manhattan distances for every point in a given dataset in O(N log N) time using Arya and Mount's ANN library (v1.1.3). There is support for approximate as well as exact searches, fixed radius searches and bd as well as kd trees.
For further details on the underlying ANN library, see http://www.cs.umd.edu/~mount/ANN.
This package is essentially identical to the RANN package -- the only difference is that the latter uses Euclidean distances.
The recommendation is to install the released version from CRAN by doing:
install.packages("RANN1")
You can, however, download the tar ball, and run R CMD INSTALL
on it, or use the devtools package to install the development version:
# install.packages("devtools")
library(devtools)
install_github("jefferis/RANN1")
Note: Windows users need Rtools and devtools to install this way.
Please feel free to:
see inst/COPYRIGHT and DESCRIPTION files for copyright and license information.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.