Internal helper function which gets the generator (and normalizing constant)

Share:

Description

Internal helper function which gets the generator (and normalizing constant)

Usage

1
getGenerator(method, unnormDensFun, xVals, unnormDensVals)

Arguments

method

the methods string

unnormDensFun

the unnormalized density function

xVals

the x values

unnormDensVals

the unnormalized density values

Value

a list with the elements “generator” and “normConst”, containing the generator function (with argument n for the number of samples) and the normalizing constant of the density, respectively.

Author(s)

Daniel Sabanes Bove daniel.sabanesbove@ifspm.uzh.ch

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.