glmBfp (version 0.0-51)

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

Description

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

Usage

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.