heaviside
- sisl.physics.heaviside(x, x0=0.0)
Heaviside step function
\begin{align} H(x,x_0) = \left\{\begin{aligned}0&\quad \text{for }x < x_0 \\ 0.5&\quad \text{for }x = x_0 \\ 1&\quad \text{for }x>x_0 \end{aligned}\right. \end{align}- Parameters
x (array_like) – points at which the Heaviside step distribution is calculated
x0 (float, optional) – step position
- Returns
the Heaviside step function distribution, same length as x
- Return type