Package: rust 1.4.3

Paul J. Northrop

rust: Ratio-of-Uniforms Simulation with Transformation

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.

Authors:Paul J. Northrop [aut, cre, cph]

rust_1.4.3.tar.gz
rust_1.4.3.tar.gz(r-4.5-noble)rust_1.4.3.tar.gz(r-4.4-noble)
rust_1.4.3.tgz(r-4.4-emscripten)rust_1.4.3.tgz(r-4.3-emscripten)
rust.pdf |rust.html
rust/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/paulnorthrop/rust/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

5.83 score 7 packages 36 scripts 824 downloads 3 mentions 13 exports 2 dependencies

Last updated 3 months agofrom:55b3278676. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-linux-x86_64OKOct 31 2024

Exports:create_log_j_xptrcreate_phi_to_theta_xptrcreate_xptrfind_lambdafind_lambda_one_dfind_lambda_one_d_rcppfind_lambda_rcppgpd_initgpd_logpostgpd_sum_statsrgpdruru_rcpp

Dependencies:RcppRcppArmadillo

Introducing rust: Ratio-of-Uniforms Simulation with Transformation

Rendered fromrust-a-vignette.Rmdusingknitr::rmarkdownon Oct 31 2024.

Last update: 2024-08-18
Started: 2019-02-10

Rusting Faster: Simulation using Rcpp

Rendered fromrust-c-using-rcpp-vignette.Rmdusingknitr::rmarkdownon Oct 31 2024.

Last update: 2024-08-18
Started: 2019-02-10

When can rust be used?

Rendered fromrust-b-when-to-use-vignette.Rmdusingknitr::rmarkdownon Oct 31 2024.

Last update: 2024-08-18
Started: 2019-02-10