Fast Nearest Neighbour Search (Wraps ANN Library) Using L2 Metric

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. The distance is computed using the L2 (Euclidean) metric. Please see package 'RANN.L1' for the same functionality using the L1 (Manhattan, taxicab) metric.


RANN

Release Version CRAN_Status_Badge R-CMD-check Codecov test coverage Downloads

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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RANN")

2.6.3 by Gregory Jefferis, 2 months ago


https://github.com/jefferislab/RANN, https://jefferislab.github.io/RANN/


Report a bug at https://github.com/jefferislab/RANN/issues


Browse source code at https://github.com/cran/RANN


Authors: Gregory Jefferis [aut, cre] (ORCID: , Samuel E. Kemp [aut] , Kirill Müller [ctb] , Sunil Arya [aut, cph] , David Mount [aut, cph] , University of Maryland [cph] (ANN library is copyright University of Maryland and Sunil Arya and David Mount. See file COPYRIGHT for details)


Documentation:   PDF Manual  


GPL (>= 3) license


Suggests testthat


Imported by AnomalyScore, BioGSP, CCMMR, ClustAssess, CrossExpression, CspStandSegmentation, FIRM, FOCI, FORD, GrabSVG, KMD, KPC, LOMAR, MVLs, MetricGraph, PathwaySpace, PiC, ProbitSpatial, RFAE, Rdimtools, SCORPION, SIMplyBee, SMOTEWB, SUNGEO, Seurat, SimplicialComplex, SpaTopic, SuperCell, Vicus, alphashape3d, anticlust, colourspace, conforest, didec, dsBase, gjam, hopkins, hydroloom, iCellR, imbalanceDatRel, insect, isokernel, kanjistat, kldest, langevitour, ldbod, leapgp, less, lookout, magicaxis, maotai, mastif, multiscape, nntmvn, nonprobsvy, ptools, rEDM, rarefun, rcccd, recalibratiNN, rliger, scBSP, scINSIGHT, scMetaTraj, shaman, spAbundance, spOccupancy, spanner, sr, themis, tidySEM, weird.

Depended on by BRISC, MRAM, RapidPolygonLookup, WPKDE, celestial, spNNGP.

Suggested by AMAPVox, ProFAST, SVG, SlimR, StatMatch, bioLeak, butcher, caret, coFAST, dimRed, donut, dyndimred, flownet, inferCSN, mlr3pipelines, mrddGlobal, mvtweedie, nabor, recipes, scPairs, sensitivity, sgsR, spaMM, spatialEco, tinyVAST, topolow.


See at CRAN