Skip to content

rust

Ratio-of-Uniforms Simulation with Transformation

v1.4.4 · Jan 11, 2026 · GPL (>= 2)

Description

Uses the generalized ratio-of-uniforms (RU) method to simulate from univariate and (low-dimensional) multivariate continuous distributions. The user specifies the log-density, up to an additive constant. The RU algorithm is applied after relocation of mode of the density to zero, and the user can choose a tuning parameter r. For details see Wakefield, Gelfand and Smith (1991) <DOI:10.1007/BF01889987>, Efficient generation of random variates via the ratio-of-uniforms method, Statistics and Computing (1991) 1, 129-133. A Box-Cox variable transformation can be used to make the input density suitable for the RU method and to improve efficiency. In the multivariate case rotation of axes can also be used to improve efficiency. From version 1.2.0 the 'Rcpp' package <https://cran.r-project.org/package=Rcpp> can be used to improve efficiency.

Downloads

2.6K

Last 30 days

2621st

8.2K

Last 90 days

24.2K

Last year

Trend: -0.5% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (6)

Dependency Network

Dependencies Reverse dependencies Rcpp bang evmissing fitdistcp lite revdbayes threshr rust

Version History

new 1.4.4 Mar 10, 2026
updated 1.4.4 ← 1.4.3 diff Jan 10, 2026
updated 1.4.3 ← 1.4.2 diff Aug 16, 2024
updated 1.4.2 ← 1.4.1 diff Dec 1, 2023
updated 1.4.1 ← 1.4.0 diff Sep 1, 2023
updated 1.4.0 ← 1.3.13 diff Nov 15, 2022
updated 1.3.13 ← 1.3.12 diff Oct 30, 2021
updated 1.3.12 ← 1.3.11 diff Jun 2, 2021
updated 1.3.11 ← 1.3.10 diff Feb 7, 2021
updated 1.3.10 ← 1.3.9 diff Sep 1, 2020
updated 1.3.9 ← 1.3.8 diff Jul 20, 2020
updated 1.3.8 ← 1.3.7 diff Dec 19, 2019
updated 1.3.7 ← 1.3.6 diff Nov 26, 2019
updated 1.3.6 ← 1.3.5 diff Feb 9, 2019
updated 1.3.5 ← 1.3.4 diff May 15, 2018
updated 1.3.4 ← 1.3.3 diff Dec 21, 2017
updated 1.3.3 ← 1.2.3 diff Dec 16, 2017
updated 1.2.3 ← 1.2.2 diff Aug 27, 2017
updated 1.2.1 ← 1.2.0 diff May 31, 2017
updated 1.2.2 ← 1.2.1 diff May 31, 2017