Learn R Programming

Runuran (version 0.40)

unuran.is.inversion: Test whether a "unuran" generator object implements an inversion method

Description

Test whether a given unuran generator object implements an inversion method.

[Advanced] -- Test type of method.

Usage

unuran.is.inversion(unr)

Arguments

unr

a unuran object.

Author

Josef Leydold and Wolfgang H\"ormann unuran@statmath.wu.ac.at.

Details

A unuran object may implement quite a couple of generation methods. This function tests whether the method used in unr is an (approximate) inversion method.

It returns TRUE when unr implements an inversion method and FALSE otherwise.

See Also

unuran.

Examples

Run this code
## PINV is an inversion method
unr <- pinvd.new(udnorm())
unuran.is.inversion(unr)

## TDR is a rejection method
unr <- tdrd.new(udnorm())
unuran.is.inversion(unr)

Run the code above in your browser using DataLab