Package: AcceptReject 0.1.2

AcceptReject: Acceptance-Rejection Method for Generating Pseudo-Random Observations

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).

Authors:Pedro Rafael D. Marinho [aut, cre], Vera Lucia Damasceno Tomazella [ctb]

AcceptReject_0.1.2.tar.gz
AcceptReject_0.1.2.zip(r-4.7-x86_64)AcceptReject_0.1.2.zip(r-4.7-arm64)AcceptReject_0.1.2.zip(r-4.6-x86_64)AcceptReject_0.1.2.zip(r-4.6-arm64)AcceptReject_0.1.2.zip(r-4.5-x86_64)
AcceptReject_0.1.2.tgz(r-4.6-x86_64)AcceptReject_0.1.2.tgz(r-4.6-arm64)AcceptReject_0.1.2.tgz(r-4.5-x86_64)AcceptReject_0.1.2.tgz(r-4.5-arm64)
AcceptReject_0.1.2.tar.gz(r-4.7-arm64)AcceptReject_0.1.2.tar.gz(r-4.7-x86_64)AcceptReject_0.1.2.tar.gz(r-4.6-arm64)AcceptReject_0.1.2.tar.gz(r-4.6-x86_64)
AcceptReject_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
AcceptReject/json (API)

# Install 'AcceptReject' in R:
install.packages('AcceptReject', repos = c('https://prdm0.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/prdm0/acceptreject/issues

Pkgdown/docs site:https://prdm0.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

monte-carlomonte-carlo-simulationrejection-samplingstatistics-librarycpp

4.60 score 2 stars 742 downloads 3 exports 24 dependencies

Last updated from:469f88f6b0. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK145
linux-devel-x86_64OK147
source / vignettesOK269
linux-release-arm64OK133
linux-release-x86_64OK171
macos-release-arm64OK231
macos-release-x86_64OK311
macos-oldrel-arm64OK227
macos-oldrel-x86_64OK299
windows-devel-arm64OK342
windows-devel-x86_64OK116
windows-release-arm64OK361
windows-release-x86_64OK130
windows-oldrel-x86_64OK117
wasm-releaseOK98

Exports:accept_rejectinspectqqplot

Dependencies:assertthatclicpp11farverggplot2gluegtableisobandlabelinglifecyclemagrittrnumDerivpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesscattermorevctrsviridisLitewithr

It works for any univariate distribution
Modified Beta Weibull distribution | Modified Beta Gamma distribution

Last update: 2024-05-22
Started: 2024-05-21

Acceptance and rejection method
Understanding the Method | Installation and loading the package | Using the accept_reject Function | Examples | Generating discrete observations | Generating continuous observations | Accessing metadata

Last update: 2024-05-06
Started: 2024-04-08

QQ-Plot
Quantile-Quantile Plot | General usage format: | Examples | Discrete case | Continuous case

Last update: 2024-05-06
Started: 2024-05-06

Specifying a base probability density function
Motivation | Example of inspection

Last update: 2024-04-14
Started: 2024-04-14