pyphi.numerics#
Tolerant scalar comparison of φ, Φ, and α values.
Floating-point results that are mathematically equal can differ by roughly 1e-15 when computed through different code paths: distinct algebraic routes to the same value produce different bit patterns, and summation order is not associative. Integrated-information theory treats ties between candidates (partitions, purviews, states, systems) as meaningful, so detecting them requires comparison up to a tolerance rather than exact equality.
These predicates are the only tolerant scalar comparisons in the
library. Values themselves are plain floats with exact
comparison semantics; tolerance applies where a comparison decides an
outcome. Selection among competing φ-objects goes through
pyphi.resolve_ties, which clusters candidates with eq().
The tolerance is 10**-precision with precision read from
config.numerics.precision at call time (default 13).
Functions
|
Return whether two values are equal up to |
|
Return a boolean mask of the elements equal to |
Return whether |
|
|
Return whether |
|
Return whether |
|
Return whether |
|
Return whether |
|
Return a boolean mask of the elements positive up to |
Return |