[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: gnu: Add r-rcppziggurat.
From: |
guix-commits |
Subject: |
01/04: gnu: Add r-rcppziggurat. |
Date: |
Fri, 14 Aug 2020 08:52:27 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 222040095727d1ebb23a7f3755c7908c52eff381
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Aug 14 14:44:02 2020 +0200
gnu: Add r-rcppziggurat.
* gnu/packages/cran.scm (r-rcppziggurat): New variable.
---
gnu/packages/cran.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 11dba4e..5b94d75 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22925,3 +22925,32 @@ Compared to other approaches @code{cpp11} strives to
be safe against long
jumps from the C API as well as C++ exceptions, conform to normal R function
semantics and supports interaction with @code{ALTREP} vectors.")
(license license:expat)))
+
+(define-public r-rcppziggurat
+ (package
+ (name "r-rcppziggurat")
+ (version "0.1.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "RcppZiggurat" version))
+ (sha256
+ (base32
+ "0zmr3nvm5j0fpwxk3x9kxpwqbr66ldfvd10zy8xlgjbslz9myvfv"))))
+ (properties `((upstream-name . "RcppZiggurat")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-rcpp" ,r-rcpp)
+ ("r-rcppgsl" ,r-rcppgsl)))
+ (native-inputs `(("r-knitr" ,r-knitr)))
+ (home-page "https://cran.r-project.org/web/packages/RcppZiggurat/")
+ (synopsis "Rcpp integration of different \"Ziggurat\" normal RNG
implementations")
+ (description
+ "The Ziggurat generator for normally distributed random numbers,
+originally proposed by Marsaglia and Tsang (2000,
+@url{https://doi.org/10.18637/jss.v005.i08}) has been improved upon a few
+times starting with Leong et al (2005,
+@url{https://doi.org/10.18637/jss.v012.i07}). This package provides an
+aggregation for comparing different implementations in order to provide a
+'faster but good enough' alternative for use with R and C++ code.")
+ (license license:gpl2+)))