Description Usage Arguments Value Examples
View source: R/pdf_distances.R
KL_divergence
calculates the Kullback-Leibler divergence
1 | KL_divergence(theta, p_theta, q_theta)
|
theta |
a vector of numerics containing values of the RV θ |
p_theta |
a vector of numerics containing values of the pdf p at locations theta |
q_theta |
a vector of numerics containing values of the pdf q at locations theta |
The Kullback-Leibler divergence from q to p
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.