pyphi.measures.distribution.intrinsic_differentiation#
- pyphi.measures.distribution.intrinsic_differentiation(p, state)[source]#
Smallest positive surprisal in a repertoire slice.
Selects
p.squeeze()[state], takes its pointwise intrinsic differentiation (the surprisal \(-\log_2 p_i\); seepointwise_intrinsic_differentiation()), and returns the minimum over the entries that are positive up toconfig.numerics.precision. If no entry is positive (every selected probability equals1up to floating-point noise), the result is0.0.- Parameters:
p (np.ndarray) – A probability distribution.
state (State) – Index into the squeezed distribution selecting the slice to score.
- Returns:
DistanceResult – The minimum positive surprisal of the selected slice (of the whole repertoire when
stateisNone), withmethod="INTRINSIC_DIFFERENTIATION".