article

The rectangular function (also known as the rectangle function, rect function or the normalized boxcar function) is defined as

\mathrm{rect}(x) = \sqcap(x) = \begin{cases}
0 & \mbox{if } |x| > \frac{1}{2} \\* \frac{1}{2} & \mbox{if } |x| = \frac{1}{2} \\* 1 & \mbox{if } |x| < \frac{1}{2} \end{cases}

or in terms of the Heaviside step function, u(t):

\mathrm{rect}(x) = u \left( x + \frac{1}{2} \right) - u \left( x - \frac{1}{2} \right)

or, alternatively:

\mathrm{rect}(x) = u \left( x + \frac{1}{2} \right) \cdot u \left( \frac{1}{2} - x \right)

The rectangular function is normalized:

\int_{-\infty}^\infty \mathrm{rect}(x)\,dx=1

The unitary Fourier transforms of the rectangular function are:

\frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty \mathrm{rect}(t)\cdot e^{-i \omega t} \, dt
=\frac{1}{\sqrt{2\pi}}\cdot \mathrm{sinc}\left(\frac{\omega}{2\pi}\right), in terms of the normalized sinc function.

\int_{-\infty}^\infty \mathrm{rect}(t)\cdot e^{-i 2\pi f t} \, dt
= \mathrm{sinc}(f)

Viewing the rectangular function as a probability distribution function, its characteristic function is therefore written

\varphi(k) = \frac{\sin(k/2)}{k/2}\,

and its moment generating function is:

M(k)=\frac{\mathrm{sinh}(k/2)}{k/2}\,

where "sinh" is the hyperbolic sine function.

See also


Elementary special functions

 

This article is licensed under the GNU Free Documentation License. It uses material from the "Rectangular function".

Home Pageartsbusinesscomputersgameshealthhospitalshomekids & teensnewsphysiciansrecreationreferenceregionalscienceshoppingsocietysportsworld