Learn R Programming

Runuran (version 0.21.0)

unuran.cmv-class: Class "unuran.cmv" for Continuous Multivariate Distribution

Description

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

Arguments

Details

Create a new instance of a unuran.cmv object using

new ("unuran.cmv", dim=1, pdf=NULL, ll=NULL, ur=NULL, mode=NULL, center=NULL, name=NA).

[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. It is important, that the mode is contained in the (closure of the) domain.

References

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

See Also

unuran.cmv.new, unuran.new, unuran.

Examples

Run this code
## Create distribution with given PDF
mvpdf <- function (x) { exp(-sum(x^2)) }
mvdist <- new("unuran.cmv", dim=2, pdf=mvpdf)

## Restrict domain to rectangle [0,1]x[0,1] and set
## mode to (0,0)
mvpdf <- function (x) { exp(-sum(x^2)) }
mvdist <- new("unuran.cmv", dim=2, pdf=mvpdf, ll=c(0,0), ur=c(1,1), mode=c(0,0))

Run the code above in your browser using DataLab