summaryrefslogtreecommitdiff
path: root/gnu/packages/cran.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-08-18 12:18:02 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-08-18 12:29:37 +0200
commit51c2fef1e22bdeb11db334da77e7ca507db29973 (patch)
tree3a33dabb3d7207851a5fc53633557222ab7cda61 /gnu/packages/cran.scm
parent106014094a968048bf42ff5f4a590dbce516c42a (diff)
gnu: Add r-nabor.
* gnu/packages/cran.scm (r-nabor): New variable.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r--gnu/packages/cran.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ae98c7adcc..7d9385aa6b 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -23059,3 +23059,31 @@ clusters. The method is sufficiently flexible so that a wide range of
Gaussian and non-Gaussian structures can be clustered with automatic selection
of K.")
(license license:agpl3+)))
+
+(define-public r-nabor
+ (package
+ (name "r-nabor")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "nabor" version))
+ (sha256
+ (base32
+ "1nj39cdfwrmhgsi3cq8imxv3n6xzc1v6dzdb2cf2hybjk368v4s7"))))
+ (properties `((upstream-name . "nabor")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-bh" ,r-bh)
+ ("r-rcpp" ,r-rcpp)
+ ("r-rcppeigen" ,r-rcppeigen)))
+ (home-page "https://cran.r-project.org/web/packages/nabor/")
+ (synopsis "Wrapper for K nearest neighbour library for low dimensions")
+ (description
+ "This package provides an R wrapper for libnabo, an exact or approximate
+k nearest neighbour library which is optimised for low dimensional
+spaces (e.g. 3D). @code{nabor} includes a @code{knn} function that is
+designed as a drop-in replacement for the RANN function @code{nn2}. In
+addition, objects which include the k-d tree search structure can be returned
+to speed up repeated queries of the same set of target points.")
+ (license license:bsd-3)))