The rectangular function (also known as the rectangle function, rect function or the normalized boxcar function) is defined as
Rectangular functionRectangular function
![{\displaystyle \mathrm {rect} (t)=\sqcap (t)={\begin{cases}0&{\mbox{if }}|t|>{\frac {1}{2}}\\[3pt]{\frac {1}{2}}&{\mbox{if }}|t|={\frac {1}{2}}\\[3pt]1&{\mbox{if }}|t|<{\frac {1}{2}}\end{cases}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c3585cde90bc1dfbce7b14531690022ad0a7b3a6)
or in terms of the Heaviside step function, u(t):

or, alternatively:

The rectangular function is normalized:

The Fourier transform of the rectangular function is

where "sinc" is the sinc function. Viewing the rectangular function as a probability distribution function, its characteristic function is therefore written

and its moment generating function is:

where "sinh" is the hyperbolic sine function.
See also