pyphi.measures.distribution#
Metrics on probability distributions.
Functions
Return the absolute information density function of two distributions. |
|
Compute the absolute intrinsic difference (AID) between two distributions. |
|
|
Computes the state-specific absolute pointwise mutual information between two distributions. |
|
Estimate the purview state that maximizes the AID between the repertoires. |
|
Compute the EMD between two effect repertoires. |
|
Compute the EMD between two repertoires for a given direction. |
|
Return the difference in entropy between two distributions. |
|
Generalized intrinsic difference (GID) between two repertoires. |
|
Return the Earth Mover's Distance between two distributions (indexed by state, one dimension per node) using the Hamming distance between states as the transportation cost function. |
|
Absolute intrinsic difference between two distributions at one state. |
|
Signed intrinsic difference between two distributions at one state. |
|
Return the information density of p relative to q, in base 2. |
|
Compute the intrinsic difference (ID) between two distributions. |
|
Smallest positive surprisal in a repertoire slice. |
|
Intrinsic information (ii) between two repertoires. |
|
Generalized intrinsic difference (GID) between two repertoires. |
|
Return the Kullback-Leibler Divergence (KLD) between two distributions. |
|
Return the L1 distance between two distributions. |
|
Compute the MP2Q measure. |
Pointwise surprisal \(-\log_2 p_i\) of a distribution. |
|
Compute the pointwise mutual information (PMI). |
|
Elementwise pointwise mutual information \(\log_2(p_i / q_i)\). |
|
|
Compute the PSQ2 measure. |
|
Compute the distance between two repertoires for the given direction. |
Look up a measure registered in |
|
Look up a distribution measure for EMD ground distance and IIT-side dispatch. |
|
|
Look up a measure usable at the mechanism level. |
|
Look up a measure usable at the system level. |
Compute the weighted pointwise mutual information (WPMI). |
Classes
Storage for distance functions used in |
|
Storage for composite measures of shape |
|
|
A |
Storage for |
|
Class to handle EMD computations via POT (Python Optimal Transport). |
|
Storage for |
|
Storage for |
|
Decorator to suppress NumPy warnings about divide-by-zero and multiplication of |