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 toconfig.numerics.precision.- Parameters:
C1 (Distinctions) – The first
Distinctions.C2 (Distinctions) – The second
Distinctions.system (System) – The system the CESs were computed over. Required for the EMD measure: repertoire expansion and the null concept both come from the system.
- Returns:
float – The generalized EMD between the two structures.
- Raises:
ValueError – If
systemisNone.- Return type: