lgca.interactions.go_or_grow

lgca.interactions.go_or_grow(lgca)

Perform the go-or-grow switching interaction.

Parameters:
  • lgca (LGCA) – Lattice gas cellular automaton instance.

  • r_b (float # This parameter is not used in the provided snippet for go_or_grow, but kept for consistency if it)

  • intended. (was) – Birth probability for resting cells.

  • r_d (float # This parameter is not used in the provided snippet for go_or_grow) – Death probability for both states.

  • beta (float # Renamed from kappa in some contexts, this is the sensitivity for switching) – Steepness of the switching function / sensitivity to entropy change.

  • theta (float # This parameter is not used here, tanh_switch is not directly called for entropy part) – Threshold density for switching.

Notes

The lgca object is modified in place. This version attempts to use the entropy-based switching logic. Assumes lgca.velocitychannels and lgca.restchannels are defined. Uses a placeholder _s_binom_entropy_like for the undefined s_binom.