Compute (and re-scale, if necessary) the marginal from a set of
x and values of log-likelihood
Values of the random variable.
Whether use a Normal distribution for the fitted marginal.
Fits a marginal at a set of points
x from their log-likelihood
and log-prior. The fitted marginal is re-scaled to integrate one if
usenormal=TRUE then the fitted marginal is supposed
to be Normal, which is computed using the posterior mean and standard
A function with the fitted marginal is returned.
Virgilio G<f3>mez-Rubio <email@example.com>