pyphi.measures.ces.emd#

pyphi.measures.ces.emd(C1, C2, system=None)[source]#

Return the generalized EMD between two cause-effect structures.

When the two structures differ only in that some concepts have disappeared, the simpler _emd_simple() is used; otherwise the full generalized EMD in _emd() is taken. The result is rounded to config.numerics.precision.

Parameters:
Returns:

float – The generalized EMD between the two structures.

Raises:

ValueError – If system is None.

Return type:

float