public final class
Methods for computing the Jensen Shannon divergence, which measures the similarity between probability distributions.
The Jensen Shannon divergence is symmetric and finite. The square root is a metric.
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static double divergence(
Calculates the Jensen Shannon divergence between two distributions.
p - The first distribution.
q - The second distribution.
logarithm - The logarithm base to use in the calculations.
Returns: The Jensen Shannon divergence.
Copyright © 2018. All rights reserved.