A modified ziggurat algorithm for generating exponentially and normally distributed pseudorandom numbers. Issue 7 (2nd May 2016)
- Record Type:
- Journal Article
- Title:
- A modified ziggurat algorithm for generating exponentially and normally distributed pseudorandom numbers. Issue 7 (2nd May 2016)
- Main Title:
- A modified ziggurat algorithm for generating exponentially and normally distributed pseudorandom numbers
- Authors:
- McFarland, Christopher D.
- Abstract:
- Abstract : The ziggurat algorithm is a very fast rejection sampling method for generating pseudorandom numbers (PRNs) from statistical distributions. In the algorithm, rectangular sampling domains are layered on top of each other (resembling a ziggurat) to encapsulate the desired probability density function. Random values within these layers are sampled and then returned if they lie beneath the graph of the probability density function. Here, we present an implementation where ziggurat layers reside completely beneath the probability density function, thereby eliminating the need for any rejection test within the ziggurat layers. In the new algorithm, small overhanging segments of probability density remain to the right of each ziggurat layer, which can be efficiently sampled with triangularly shaped sampling domains. Median runtimes of the new algorithm for exponential and normal variates is reduced to 58% and 53%, respectively (collective range: 41–93%). An accessible C library, along with extensions into Python and MATLAB/Octave are provided.
- Is Part Of:
- Journal of statistical computation and simulation. Volume 86:Issue 7(2016)
- Journal:
- Journal of statistical computation and simulation
- Issue:
- Volume 86:Issue 7(2016)
- Issue Display:
- Volume 86, Issue 7 (2016)
- Year:
- 2016
- Volume:
- 86
- Issue:
- 7
- Issue Sort Value:
- 2016-0086-0007-0000
- Page Start:
- 1281
- Page End:
- 1294
- Publication Date:
- 2016-05-02
- Subjects:
- Mathematical statistics -- Data processing -- Periodicals
Digital computer simulation -- Periodicals
519.5028505 - Journal URLs:
- http://www.tandfonline.com/loi/gscs20 ↗
http://www.tandfonline.com/ ↗ - DOI:
- 10.1080/00949655.2015.1060234 ↗
- Languages:
- English
- ISSNs:
- 0094-9655
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 5066.820000
British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 2464.xml