Skip to main content

d_kl_bytes

Function d_kl_bytes 

Source
pub fn d_kl_bytes(x: &[u8], y: &[u8]) -> f64
Expand description

KL divergence D_KL(P || Q) between the byte histograms of x and y (bits).

D_KL is an empirical, order-0 quantity by construction.