fitting.heaviside

fitting.heaviside(x, x0)

Heaviside step function.

Parameters:
  • x (array) – x-values.
  • x0 (float) – x-offset.
Returns:

  • 0.0 for x < x0,
  • 0.5 for x == x0,
  • 1.0 for x > x0.