R/common.R

## --------------------------------------------------------------------------
##
## Common auxiliary functions
##
## --------------------------------------------------------------------------

unuran.distr.class <- function (unr)
  ## ------------------------------------------------------------------------
  ## Get distribution class of UNU.RAN generator object 'unr'.
  ## ------------------------------------------------------------------------
  ## unr    : object of class "unuran"
  ## ------------------------------------------------------------------------
  ## return:
  ## string that contains name of class
  ## ------------------------------------------------------------------------
{
  unuran.details(unr, show=FALSE, return.list=TRUE, debug=FALSE)$distr.class
}

## --------------------------------------------------------------------------

Try the rvgtest package in your browser

Any scripts or data that you put into this service are public.

rvgtest documentation built on May 1, 2019, 6:35 p.m.