The routine evaluates the probability density function of a
distribution stored in a UNU.RAN distribution object or UNU.RAN
generator object. If islog is TRUE, then the logarithm
of the density is returned.
If the PDF (or its respective logarithm) is not available in the
object, then NA is returned and a warning is thrown.
Note: when the log-density is not given explicitly (by setting
islog=TRUE in the corresponding routing like
unuran.cont.new or in an Runuran built-in
distribution), then NA is returned even if the density is
given.
Important:
Routine ud just evaluates the density function that is stored
in obj. It ignores the boundaries of the domain of the
distribution, i.e., it does not return 0 outside the domain
unless the implementation of the PDF handles this case correctly.
This behavior is in particular important when Runuran
built-in distributions are truncated by explicitly setting the domain
boundaries.