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

CRAN

2.9K

Last 30 days

2434th

10K

Last 90 days

31.6K

Last year

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

r2u

42

Last 30 days

199

Last 90 days

556

Last year

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

r2u: no daily series yet

CRAN Check Status

13 OK
Show all 13 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-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 Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/rust.Rcheck/00install.out' for details.
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

23 tracked
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