rust: Ratio-of-Uniforms Simulation with Transformation version 1.2.0
rust 1.2.0
New features
-
Packages Rcpp (https://CRAN.R-project.org/package=Rcpp) and RcppArmadillo (https://CRAN.R-project.org/package=RcppArmadillo) to speed up the computations if the user provides a C++ function to evaluate their target log-density.
-
New functions:
ru_rcpp
,find_lambda_rcpp
andfind_lambda_one_d_rcpp
. -
New vignette. "Rusting faster: Simulation using Rcpp".
Bug fixes and minor improvements
-
Bug fixed in
plot.ru()
: previouslyplot.ru()
failed whend > 2
and no axis label names were provided. -
Bug fixed in
plot.ru
: previously, in thed = 2
case, providing the graphical parametercol
produced an error becausecol = 8
was hard-coded in a call topoints
. Now the extra argumentpoints_par
enables the user to provide a list of arguments topoints
. -
"using
pairs()
" removed from the last sentence Description ofplot.ru()
becausepairs()
is not used whend > 2
, rather a single plot is produced for each pair of variables. -
Obsolete function
rho_to_theta()
removed from functionru
inru_sampling.R
. -
If the user calls
ru
(orru_rcpp
) withtrans = "user"
but doesn't supplyphi_to_theta
then an error is returned. -
plot.ru
edited to avoid warning message that occurred in thed=1
case whenbreaks
was supplied as an argument. -
The functions
rgpd
,gpd_sum_stats
,gpd_init
andgpd_logpost
are now exported.