hyperspy._components.heaviside module

class hyperspy._components.heaviside.HeavisideStep(A=1, n=0)

Bases: hyperspy.component.Component

The Heaviside step function.

f(x) =
\\begin{cases}
0 & x<n\\\\
\\frac{A}{2} & x=n\\\\
A & x>n
\\end{cases}

Parameters
function(x)
grad_A(x)
grad_n(x)