pyphi.substrate_generator.utils#

Utilities for creating systems.

Functions

binary2spin(binary_state)

Return the Ising spin state corresponding to the given binary state.

input_weights(element, weights)

Return the connection weights being sent to the given element.

inputs(element, weights, state[, ordering, ...])

Return the inputs being sent to the given element.

inverse_sigmoid(p, sum_w, field)

The inverse of the logistic function.

map_to_floor_and_ceil(y, floor, ceiling)

Rescale an activation probability y in [0, 1] to [floor, ceiling].

sigmoid(energy[, temperature, field])

The logistic function.

to_topological_ordering(element, weights, ...)

total_input_weight(element, weights)

Return the sum of connection weights being sent to the given element.

total_weighted_input(element, weights, state)

Return the amount of weighted input being sent to the given element.

weighted_inputs(element, weights, state)