lgca.nove_ib_interactions.tanh_switch

lgca.nove_ib_interactions.tanh_switch(rho, kappa=5.0, theta=0.8)

Sigmoidal switching function.

Parameters:
  • rho (float or numpy.ndarray) – Local (or neighbourhood) density.

  • kappa (float, optional) – Steepness of the transition. Default is 5.0.

  • theta (float, optional) – Density threshold at which the switch probability is 0.5. Default is 0.8.

Returns:

Switching probability with the same shape as rho.