View source: R/informed_candidate_set_utils.R
kl_divergence_bernoulli | R Documentation |
KL divergence between two Bernoulli random vectors. p = (p1,p2,...,pn) and q = (q1,q2,...,qn).
kl_divergence_bernoulli(p, q)
p |
probability of success for the first distribution |
q |
probability of success for the second distribution |
KL divergence between the two distributions
kl_divergence_bernoulli(c(0.1,0.1), c(0.1,0.1)) = 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.