pyphi.numerics.positive_mask#
- pyphi.numerics.positive_mask(array)[source]#
Return a boolean mask of the elements positive up to
config.numerics.precision.Equivalent to applying
is_positive()elementwise. Values within the tolerance of zero (for example, the surprisal-log2(p)of a probability that is 1 up to floating-point noise) are masked out.