urtdr {Runuran} | R Documentation |
UNU.RAN random variate generator for continuous distributions with given probability density function (PDF). It is based on the Transformed Density Rejection method (‘TDR’).
[ Deprecated.
Use tdr.new
instead. ]
urtdr(n, pdf, dpdf=NULL, lb=-Inf, ub=Inf, islog=TRUE, ...)
n |
size of required sample. |
pdf |
probability density function. (R function) |
dpdf |
derivative of the pdf . (R function) |
islog |
whether the pdf is given by tits logarithm (the
dpdf is then the derivative of the logarithm). (boolean) |
lb, ub |
lower and upper bound of domain. (numeric) |
... |
(optional) arguments for pdf |
This method is deprecated. Please use tdr.new
together with ur
instead.
For further details see tdr.new
.
Josef Leydold and Wolfgang H"ormann unuran@statmath.wu-wien.ac.at.
W. H"ormann, J. Leydold, and G. Derflinger (2004): Automatic Nonuniform Random Variate Generation. Springer-Verlag, Berlin Heidelberg.
tdr.new
and ur
for replacement.