Normalizes the distribution so that the total mass equals 1.
A vector with
length(qp) elements representing
the unscaled density at each quadrature point.
Vector of equally spaced quadrature points.
A vector of
length(d) elements with
the prior density estimate at each quadature point.
: Internal function