View source: R/plot_alignment.R
kl_div | R Documentation |
KL Divergence of Categoricals
kl_div(p1, p2)
p1 |
The first probability in KL(p1 || p2) |
p2 |
The second probability in KL(p1 || p2) |
The KL divergence between pairs of discrete probability categorical vectors. Equation (3) from https://doi.org/10.1371/journal.pgen.1006599
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.