kl_div: KL Divergence of Categoricals

View source: R/plot_alignment.R

kl_divR Documentation

KL Divergence of Categoricals

Description

KL Divergence of Categoricals

Usage

kl_div(p1, p2)

Arguments

p1

The first probability in KL(p1 || p2)

p2

The second probability in KL(p1 || p2)

Value

The KL divergence between pairs of discrete probability categorical vectors. Equation (3) from https://doi.org/10.1371/journal.pgen.1006599


lasy/alto documentation built on June 23, 2024, 6:45 a.m.