brainmass.sigmoid

Contents

brainmass.sigmoid#

brainmass.sigmoid(x, vmax, v0, r)[source]#

Sigmoidal firing rate function.

Converts membrane potential to firing rate using a sigmoid function.

S(x) = vmax / (1 + exp(r·(v0 - x)))

Parameters:
  • x (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Input membrane potential.

  • vmax (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Maximum firing rate.

  • v0 (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Firing threshold (potential at half-max rate).

  • r (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Steepness of the sigmoid.

Return type:

Array | ndarray | bool | number | bool | int | float | complex | Quantity

Returns:

Firing rate in range (0, vmax).