heaviside

sisl.physics.heaviside(x, x0=0.0)

Heaviside step function

H(x,x0)={0for x<x00.5for x=x01for x>x0
Parameters:
  • x (ArrayLike) – points at which the Heaviside step distribution is calculated

  • x0 (float | ArrayLike) – step position

Returns:

the Heaviside step function distribution, same length as x

Return type:

numpy.ndarray