pyphi.measures.distribution.StatefulDistributionMeasureRegistry#
- class pyphi.measures.distribution.StatefulDistributionMeasureRegistry[source]#
Bases:
RegistryStorage for
(p, q, state) -> float | DistanceResultmeasures.Both distributions contribute to the result; the state selects an element. Used by IIT_4.0_SMALL_PHI variants and APMI.
- register(name, asymmetric=False, supports_alphabet=<function _any_alphabet>)[source]#
Decorator for registering a
StatefulDistributionMeasure.- Parameters:
name (str) – The name of the measure.
asymmetric (bool) –
Trueif the measure is asymmetric. Stored as an attribute on the function.supports_alphabet (Callable[[tuple[int, ...]], bool]) – Callable
(alphabet_sizes) -> boolindicating whether the measure handles the given node cardinalities. Defaults to_any_alphabet.
- Return type: