step_function

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

Step function, also known as 1H(x)

This function equals one minus the Heaviside step function

S(x,x0)={1for x<x00.5for x=x00for x>x0
Parameters:
Returns:

the step function distribution, same length as x

Return type:

numpy.ndarray