dreye.compute_jensen_shannon_similarity#

dreye.compute_jensen_shannon_similarity(P, Q)[source]#

Compute Jensen-Shannon similarity between two probability distributions P and Q. This is computed as 1 minus Jensen-Shannon divergence.

Parameters:
Pnumpy.ndarray

The first probability distribution.

Qnumpy.ndarray

The second probability distribution.

Returns:
float

The Jensen-Shannon similarity between P and Q.