sysplot.heaviside#
- heaviside(x, default_value=None)[source]#
Evaluate the Heaviside step function.
Returns 0 for
x < 0,default_valueforx == 0, and 1 forx > 0.- Parameters:
x (
ndarray) – Input array.default_value (
float|None) – Value returned wherex == 0. Must be in the range [0, 1]. Defaults toheaviside_default_value, which is 1.
- Return type:
ndarray- Returns:
Array of the same shape as
xwith Heaviside values.
Examples using
sysplot.heaviside#