pyphi.macro.units.MacroUnit#
- class pyphi.macro.units.MacroUnit(constituents, update_grain, mapping, background_apportionment=())[source]#
Bases:
objectA macro unit
J = (U^J, V^J, tau'_J, g'_J, W^J)(Eq. 12).- Parameters:
constituents (tuple[MacroUnit | int, ...]) – Direct constituents
V^J— micro unit indices or mesoMacroUnitobjects. Order fixes the truth-table digit order.update_grain (int) –
tau'_J— constituent updates per unit update.mapping (tuple[int, ...]) –
g'_Jas a flat truth table of 0/1 entries over theprod(alphabets) ** update_grainjoint sequence-states of the constituents (see module docstring for digit order).background_apportionment (tuple[int, ...]) –
W^J— universe indices apportioned to this unit.
- property constituent_alphabet_sizes: tuple[int, ...][source]#
Alphabet size of each direct constituent.
- property micro_constituents: tuple[int, ...][source]#
the sorted union of micro constituents.
- Type:
U^J
- state_from(history)[source]#
The unit’s state given a micro-state window of
U^J(Eq. 22).- Parameters:
history (sequence of tuple[int, ...]) – Sequence of length
micro_grainof micro states ofU^J(each a tuple of 0/1 values ordered by ascending micro index), oldest first.- Returns:
int – The macro state
j = g_Japplied to the window.- Return type: