Learn R Programming

RANN

Finds the k nearest neighbours 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.

This package implements nearest neighbors for the Euclidean (L2) metric. For the Manhattan (L1) metric, install the RANN1 package.

For further details on the underlying ANN library, see https://www.cs.umd.edu/~mount/ANN.

Installation

Released versions

The recommendation is to install the released version from CRAN by doing:

install.packages("RANN")

Bleeding Edge

You can, however, use the remotes package to install the development version:

# install.packages("remotes")
remotes::install_github("jefferis/RANN")

Feedback

Please feel free to:

Copyright and License

see inst/COPYRIGHT and DESCRIPTION files for copyright and license information.

Copy Link

Version

Install

install.packages('RANN')

Monthly Downloads

45,877

Version

2.6.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Last Published

August 25th, 2024

Functions in RANN (2.6.2)

RANN-package

Wrapper for Arya and Mount's Approximate Nearest Neighbours (ANN) C++ library
nn2

Nearest Neighbour Search