Normalizes the distribution so that the total mass equals 1.
normalize(d, qp)
d | A vector with |
---|---|
qp | Vector of equally spaced quadrature points. |
A vector of length(d)
elements with
the prior density estimate at each quadature point.
: Internal function
#> [1] 0.25 0.50 0.25#> [1] 1