Package: AR 1.1

Abbas Parchami
AR: Another Look at the Acceptance-Rejection Method
In mathematics, 'rejection sampling' is a basic technique used to generate observations from a distribution. It is also commonly called 'the Acceptance-Rejection method' or 'Accept-Reject algorithm' and is a type of Monte Carlo method. 'Acceptance-Rejection method' is based on the observation that to sample a random variable one can perform a uniformly random sampling of the 2D cartesian graph, and keep the samples in the region under the graph of its density function. Package 'AR' is able to generate/simulate random data from a probability density function by Acceptance-Rejection method. Moreover, this package is a useful teaching resource for graphical presentation of Acceptance-Rejection method. From the practical point of view, the user needs to calculate a constant in Acceptance-Rejection method, which package 'AR' is able to compute this constant by optimization tools. Several numerical examples are provided to illustrate the graphical presentation for the Acceptance-Rejection Method.
Authors:
AR_1.1.tar.gz
AR_1.1.tar.gz(r-4.7-any)AR_1.1.tar.gz(r-4.6-any)
AR_1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
AR/json (API)
| # Install 'AR' in R: |
| install.packages('AR', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:9df3a55d9f. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 95 | ||
| source / vignettes | OK | 155 | ||
| linux-release-x86_64 | OK | 104 | ||
| wasm-release | OK | 95 |
Exports:AR.Sim
Dependencies:DISTRIB
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Another Look at the Acceptance-Rejection Method | AR-package AR |
| Graphical Visualization for Accept-Reject Method | AR.Sim |