| kl_div | R Documentation |
Computes KL(p || q) in bits for discrete probability vectors.
Zero-probability events in p contribute zero; positive mass in p
where q is zero returns Inf.
kl_div(p, q)
p, q |
Numeric probability vectors of the same length. |
A single numeric value: the KL divergence in bits.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.