If a < x < b
, then the rectangular pulse function equals
1.
If x = a
or x = b
and a <>
b
, then the rectangular pulse function equals 1/2.
Otherwise, it equals 0.
The rectangular pulse function is also called the rectangle function, boxcar function, Pi
function, or gate function.