Skip to main content

js_distance

Function js_distance 

Source
pub fn js_distance(p: &[f64], q: &[f64]) -> f64
Expand description

The Jensen–Shannon distance between two distributions over the same states (base 2: 0 the same, 1 disjoint), each normalised to sum to 1; 0 when either sums to 0 or they differ in length.