normalize | R Documentation |
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
dscore:::normalize(c(5, 10, 5), qp = c(0, 1, 2))
sum(dscore:::normalize(rnorm(5), qp = 1:5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.