Other packages > Find by keyword >

zigg  

Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator
View on CRAN: Click here


Download and install zigg package within the R console
Install from CRAN:
install.packages("zigg")

Install from Github:
library("remotes")
install_github("cran/zigg")

Install by package version:
library("remotes")
install_version("zigg", "0.0.2")



Attach the package and use:
library("zigg")
Maintained by
Dirk Eddelbuettel
[Scholar Profile | Author Map]
First Published: 2025-01-31
Latest Update: 2025-01-31
Description:
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.
How to cite:
Dirk Eddelbuettel (2025). zigg: Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator. R package version 0.0.2, https://cran.r-project.org/web/packages/zigg. Accessed 02 May. 2025.
Previous versions and publish date:
0.0.1 (2025-01-31 12:20)
Other packages that cited zigg R package
View zigg citation profile
Other R packages that zigg depends, imports, suggests or enhances
Complete documentation for zigg
Functions, R codes and Examples using the zigg R package
Full zigg package functions and examples
Downloads during the last 30 days
04/0204/0304/0404/0504/0604/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/2804/2904/30Downloads for zigg2003004005006007008009001000TrendBars

Today's Hot Picks in Authors and Packages

disprofas  
Non-Parametric Dissolution Profile Analysis
Similarity of dissolution profiles is assessed using the similarity factor f2 according to the EMA ...
Download / Learn more Package Citations See dependency  
nlsem  
Fitting Structural Equation Mixture Models
Estimation of structural equation models with nonlinear effects and underlying nonnormal distributi ...
Download / Learn more Package Citations See dependency  
quotedargs  
A Way of Writing Functions that Quote their Arguments
A facility for writing functions that quote their arguments, may sometimes evaluate them in the env ...
Download / Learn more Package Citations See dependency  
frailtypack  
Shared, Joint (Generalized) Frailty Models; Surrogate Endpoints
The following several classes of frailty models using a penalized likelihood estimation on the hazar ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
contFracR  
Continued Fraction Generators and Evaluators
Converts numbers to continued fractions and back again. A solver for Pell's Equation is provided. T ...
Download / Learn more Package Citations See dependency  

24,142

R Packages

207,311

Dependencies

65,176

Author Associations

24,143

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA