rust: Ratio-of-Uniforms Simulation with Transformation version 1.2.3
Bug fixes and minor improvements
-
In
ru()
andru_rcpp()
the constanthscale
is used to shiftlogf
(and hence scale the target density f) in functionlogf
in the returned object. This helps to avoid over/under-flow when contouring f inplot.ru
whend = 2
. -
The
var_names
argument toru_rcpp
didn't work. This has been corrected. -
The arguments
lower, upper
toru
andru_rcpp
are now used, at least partly even whenrotate = TRUE
. See the updated description oflower, upper
in the documentation ofru
andru_rcpp
. -
That the function
logf
supplied toru
orru_rcpp
should return-Inf
when the density f is zero is stated explicitly in the help files. -
ru() did not work when
trans = "user"
andd
> 1. This has been corrected. -
Extra checks are used to try to avoid erroneous convergence warnings.
-
Incorrectly formatted link to the Rcpp Gallery webpage corrected in the vignette "Rusting Faster: Simulation using Rcpp".
-
Extra examples provided for
ru
and forru_rcpp
: (a) Cauchy, (b) half-Cauchy and (c) bivariate normal x bivariate student-t.