Learn R Programming

Runuran (version 0.21.0)

unuran.cont-class: Class "unuran.cont" for Continuous Distribution

Description

Class unuran.cont provides an interface to UNU.RAN objects for continuous distributions. The interface might be changed in future releases. Do not use unnamed arguments! [Advanced] -- Continuous Distribution Object.

Arguments

Details

Create a new instance of a unuran.cont object using

new ("unuran.cont", cdf=NULL, pdf=NULL, dpdf=NULL, islog=FALSE, lb=NA, ub=NA, mode=NA, center=NA, area=NA, name=NA).

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

The user is responsible that the given informations are consistent. It depends on the chosen method which information must be given / are used.

References

J. Leydold and W. H"ormann (2000-2007): UNU.RAN User Manual, see http://statmath.wu.ac.at/unuran/.

See Also

unuran.cont.new, unuran.new, unuran.

Examples

Run this code
## Create continuous distribution with given logPDF and its derivative
pdf <- function (x) { -0.5*x^2 }
dpdf <- function (x) { -x }
distr <- new("unuran.cont", pdf=pdf, dpdf=dpdf, islog=TRUE, lb=-Inf, ub=Inf)

Run the code above in your browser using DataLab