The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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.

Version: 1.0.1
Depends: R (≥ 4.2.0)
Imports: digest, microbenchmark, cli, rlang
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0), ggplot2
Published: 2025-03-11
DOI: 10.32614/CRAN.package.stors
Author: Ahmad ALQabandi ORCID iD [cre, aut, cph], Louis Aslett ORCID iD [aut, ths, cph]
Maintainer: Ahmad ALQabandi <ahmad.alqabandi at durham.ac.uk>
License: MIT + file LICENSE
URL: https://ahmad-alqabandi.github.io/stors/
NeedsCompilation: yes
Materials: README
CRAN checks: stors results

Documentation:

Reference manual: stors.pdf
Vignettes: Sampling from Built-in Distributions using stors (source, R code)
Sampling from User-Defined Distributions using stors (source, R code)
stors package (source, R code)

Downloads:

Package source: stors_1.0.1.tar.gz
Windows binaries: r-devel: stors_1.0.1.zip, r-release: stors_1.0.1.zip, r-oldrel: stors_1.0.1.zip
macOS binaries: r-devel (arm64): stors_1.0.1.tgz, r-release (arm64): stors_1.0.1.tgz, r-oldrel (arm64): stors_1.0.1.tgz, r-devel (x86_64): stors_1.0.1.tgz, r-release (x86_64): stors_1.0.1.tgz, r-oldrel (x86_64): stors_1.0.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=stors to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.