public final class JensenShannon extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
divergence(Distribution p,
Distribution q,
LogarithmBase logarithm)
Calculates the Jensen Shannon divergence between two distributions.
|
public static double divergence(Distribution p, Distribution q, LogarithmBase logarithm)
p - The first distribution.q - The second distribution.logarithm - The logarithm base to use in the calculations.Copyright © 2021. All rights reserved.