Package: stors 1.0.1

Ahmad ALQabandi

stors: Step Optimised Rejection Sampling

Fast and efficient sampling from general univariate probability density functions. Implements a rejection sampling approach designed to take advantage of modern CPU caches and minimise evaluation of the target density for most samples. Many standard densities are internally implemented in 'C' for high performance, with general user defined densities also supported. A paper describing the methodology will be released soon.

Authors:Ahmad ALQabandi [cre, aut, cph], Louis Aslett [aut, ths, cph]

stors_1.0.1.tar.gz
stors_1.0.1.tar.gz(r-4.5-noble)stors_1.0.1.tar.gz(r-4.4-noble)
stors_1.0.1.tgz(r-4.4-emscripten)stors_1.0.1.tgz(r-4.3-emscripten)
stors.pdf |stors.html
stors/json (API)

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

Bug tracker:https://github.com/ahmad-alqabandi/stors/issues

Pkgdown site:https://ahmad-alqabandi.github.io

On CRAN:

Conda:

3.18 score 24 exports 4 dependencies

Last updated 15 days agofrom:bd357d1be5. Checks:3 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 11 2025
R-4.5-linux-x86_64OKMar 11 2025
R-4.4-linux-x86_64OKMar 11 2025

Exports:build_proposalbuild_samplerdelete_built_in_proposaldelete_proposalload_proposalprint_proposalssave_proposalsrbeta_customsrbeta_optimizesrchisq_customsrchisq_optimizesrexpsrexp_customsrexp_optimizesrgamma_customsrgamma_optimizesrlaplacesrlaplace_customsrlaplace_optimizesrnormsrnorm_customsrnorm_optimizesrpareto_customsrpareto_optimize

Dependencies:clidigestmicrobenchmarkrlang

Sampling from Built-in Distributions using stors

Rendered fromSampling_Built_in_distributions.Rmdusingknitr::rmarkdownon Mar 11 2025.

Last update: 2025-03-11
Started: 2025-03-11

Sampling from User-Defined Distributions using stors

Rendered fromSampling_user_distributions.Rmdusingknitr::rmarkdownon Mar 11 2025.

Last update: 2025-03-11
Started: 2025-03-11

stors package

Rendered fromstors_package.Rmdusingknitr::rmarkdownon Mar 11 2025.

Last update: 2025-03-11
Started: 2025-03-11