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)=\left\{{\begin{matrix}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{matrix}}\right.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6605e5299ff8f125379097d9ffd2b12b1a718a83)
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