Package: zigg 0.0.2
zigg: Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator
The 'Ziggurat' pseudo-random number generator (or PRNG), introduced by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>) and further improved by Leong et al (2005, <doi:10.18637/jss.v012.i07>), offers a lightweight and very fast PRNG for the normal, exponential, and uniform distributions. It is provided here in a small zero-dependency package. It can be used from R as well as from 'C/C++' code in other packages as is demonstrated by four included sample packages using four distinct methods to use the PRNG presented here in client package. The implementation is influenced by our package 'RcppZiggurat' which offers a comparison among multiple alternative implementations but presented here in a lighter-weight implementation that is easier to use by other packages. The PRNGs provided are generally faster than the ones in base R: on our machine, the relative gains for normal, exponential and uniform are on the order of 7.4, 5.2 and 4.7 times faster than base R. However, these generators are of potentially lesser quality and shorter period so if in doubt use of the base R functions remains the general recommendation.
Authors:
zigg_0.0.2.tar.gz
zigg_0.0.2.zip(r-4.5)zigg_0.0.2.zip(r-4.4)zigg_0.0.2.zip(r-4.3)
zigg_0.0.2.tgz(r-4.5-x86_64)zigg_0.0.2.tgz(r-4.5-arm64)zigg_0.0.2.tgz(r-4.4-x86_64)zigg_0.0.2.tgz(r-4.4-arm64)zigg_0.0.2.tgz(r-4.3-x86_64)zigg_0.0.2.tgz(r-4.3-arm64)
zigg_0.0.2.tar.gz(r-4.5-noble)zigg_0.0.2.tar.gz(r-4.4-noble)
zigg_0.0.2.tgz(r-4.4-emscripten)zigg_0.0.2.tgz(r-4.3-emscripten)
zigg.pdf |zigg.html✨
zigg/json (API)
NEWS
# Install 'zigg' in R: |
install.packages('zigg', repos = c('https://eddelbuettel.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/eddelbuettel/zigg/issues
Last updated 12 days agofrom:9780a1a23f. Checks:11 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Feb 08 2025 |
R-4.5-win-x86_64 | OK | Feb 19 2025 |
R-4.5-mac-x86_64 | OK | Feb 08 2025 |
R-4.5-mac-aarch64 | OK | Feb 08 2025 |
R-4.5-linux-x86_64 | OK | Feb 08 2025 |
R-4.4-win-x86_64 | OK | Feb 08 2025 |
R-4.4-mac-x86_64 | OK | Feb 08 2025 |
R-4.4-mac-aarch64 | OK | Feb 08 2025 |
R-4.3-win-x86_64 | OK | Feb 08 2025 |
R-4.3-mac-x86_64 | OK | Feb 08 2025 |
R-4.3-mac-aarch64 | OK | Feb 08 2025 |
Exports:zrexpzrnormzrunifzsetseed
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator | zigg-package zigg |
Ziggurat Pseudo Random Number Generators | zrexp zrnorm zrunif zsetseed |