The unit step function (also called the Heaviside function) is a piecewise function that is off () until a certain time and on () after that time.
The motivation is that in electrical engineering we frequently encounter things that are either off or on, particularly starting at a certain time. Multiplying a signal by the step creates a signal that is right-sided. We can also construct square waves with the unit step:
Important applications of the step function include the second translation theorem and the step response of a system.
Curiously:
where is the impulse function.
Deep learning
The binary unit step function, as well as the sign function are primitive types of activation functions. They have the ability to divide the input space into two sides of a hyperplane.
However! Both aren’t differentiable, smooth, or continuous, which makes backprop difficult. These flaws motivate the use of sigmoid activation functions, which are differentiable and continuous.
In programming
In MATLAB, we can define the Heaviside function: