AcceptReject

Acceptance-Rejection Method for Generating Pseudo-Random Observations

CRAN Package

Provides a function that implements the acceptance-rejection method in an optimized manner to generate pseudo-random observations for discrete or continuous random variables. Proposed by von Neumann J. (1951), https://mcnp.lanl.gov/pdf_files/, the function is optimized to work in parallel on Unix-based operating systems and performs well on Windows systems. The acceptance-rejection method implemented optimizes the probability of generating observations from the desired random variable, by simply providing the probability function or probability density function, in the discrete and continuous cases, respectively. Implementation is based on references CASELLA, George at al. (2004) https://www.jstor.org/stable/4356322, NEAL, Radford M. (2003) https://www.jstor.org/stable/3448413 and Bishop, Christopher M. (2006, ISBN: 978-0387310732).


Documentation


Team


Insights

Last 30 days

This package has been downloaded 721 times in the last 30 days. More downloads than an obscure whitepaper, but not enough to bring down any servers. A solid effort! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 52 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
7 downloadsMar 3, 2025
58 downloadsMar 4, 2025
20 downloadsMar 5, 2025
87 downloadsMar 6, 2025
18 downloadsMar 7, 2025
44 downloadsMar 8, 2025
7 downloadsMar 9, 2025
46 downloadsMar 10, 2025
10 downloadsMar 11, 2025
11 downloadsMar 12, 2025
49 downloadsMar 13, 2025
7 downloadsMar 14, 2025
11 downloadsMar 15, 2025
7 downloadsMar 16, 2025
32 downloadsMar 17, 2025
37 downloadsMar 18, 2025
7 downloadsMar 19, 2025
26 downloadsMar 20, 2025
7 downloadsMar 21, 2025
12 downloadsMar 22, 2025
11 downloadsMar 23, 2025
55 downloadsMar 24, 2025
6 downloadsMar 25, 2025
8 downloadsMar 26, 2025
14 downloadsMar 27, 2025
58 downloadsMar 28, 2025
4 downloadsMar 29, 2025
3 downloadsMar 30, 2025
7 downloadsMar 31, 2025
52 downloadsApr 1, 2025
0 downloadsApr 2, 2025
0 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
3
87

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 8,222 times in the last 365 days. A solid achievement! Enough downloads to get noticed at department meetings. The day with the most downloads was Mar 06, 2025 with 87 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports10 packages
  • Suggests5 packages
  • Linking To2 packages