hyperspy._components.heaviside module
- class hyperspy._components.heaviside.HeavisideStep(A=1.0, n=0.0, module='numpy', compute_gradients=True, **kwargs)
Bases:
hyperspy._components.expression.Expression
The Heaviside step function.
Based on the corresponding numpy function using the half maximum definition for the central point:
Variable
Parameter
centre
height
- Parameters
n (float) – Location parameter defining the x position of the step.
A (float) – Height parameter for x>n.
**kwargs – Extra keyword arguments are passed to the
Expression
component.