# Dirac comb

A Dirac comb is an infinite series of Dirac delta functions spaced at intervals of T

In mathematics, a Dirac comb (also known as an impulse train and sampling function in electrical engineering) is a periodic Schwartz distribution{{ safesubst:#invoke:Unsubst||date=__DATE__ |\$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} constructed from Dirac delta functions

${\displaystyle \operatorname {III} _{T}(t)\ {\stackrel {\mathrm {def} }{=}}\ \sum _{k=-\infty }^{\infty }\delta (t-kT)={\frac {1}{T}}\operatorname {III} \left({\frac {t}{T}}\right)}$

for some given period T. The symbol ${\displaystyle \operatorname {III} (t)}$, where the period is omitted, represents a Dirac comb of unit period. Some authors, notably Bracewell as well as some textbook authors in electrical engineering and circuit theory, refer to it as the Shah function (possibly because its graph resembles the shape of the Cyrillic letter sha Ш). Because the Dirac comb function is periodic, it can be represented as a Fourier series:

${\displaystyle \operatorname {III} _{T}(t)={\frac {1}{T}}\sum _{k=-\infty }^{\infty }e^{2\pi ik{\frac {t}{T}}}.}$

The Dirac comb function allows one to represent both continuous and discrete phenomena, such as sampling and aliasing, in a single framework of continuous Fourier analysis on Schwartz distributions, without any reference to Fourier series.

## Scaling

The scaling property of the Dirac comb follows from the properties of the Dirac delta function. Since ${\displaystyle \delta \left({\frac {t}{a}}\right)=|a|\delta (t)\,}$, it follows that:

${\displaystyle \operatorname {III} _{T}\left({\frac {t}{a}}\right)=|a|\,\operatorname {III} _{aT}\left(t\right)}$

## Fourier series

It is clear that ${\displaystyle \operatorname {III} _{T}(t)}$ is periodic with period ${\displaystyle T}$. That is

${\displaystyle \operatorname {III} _{T}(t+T)=\operatorname {III} _{T}(t)\,}$

for all t. The complex Fourier series for such a periodic function is

${\displaystyle \operatorname {III} _{T}(t)=\sum _{n=-\infty }^{+\infty }c_{n}e^{2\pi in{\frac {t}{T}}}\ }$

where the Fourier coefficients, cn are

{\displaystyle {\begin{aligned}c_{n}\,&={\frac {1}{T}}\int _{t_{0}}^{t_{0}+T}\operatorname {III} _{T}(t)e^{-2\pi in{\frac {t}{T}}}\,dt\quad (-\infty

All Fourier coefficients are 1/T resulting in

${\displaystyle \operatorname {III} _{T}(t)={\frac {1}{T}}\sum _{n=-\infty }^{\infty }e^{2\pi in{\frac {t}{T}}}.}$

## Fourier transform

The Fourier transform of a Dirac comb is also a Dirac comb. This is evident when one considers that all the Fourier components add constructively whenever ${\displaystyle f}$ is an integer multiple of ${\displaystyle {\frac {1}{T}}}$.

Unitary transform to ordinary frequency domain (Hz):

${\displaystyle \operatorname {III} _{T}(t)\quad {\stackrel {\mathcal {F}}{\longleftrightarrow }}\quad {\frac {1}{T}}\operatorname {III} _{\frac {1}{T}}(f)\quad =\sum _{n=-\infty }^{\infty }e^{-i2\pi fnT}.}$

Notably, the unit period Dirac comb transforms to itself:

${\displaystyle \operatorname {III} (t)\quad {\stackrel {\mathcal {F}}{\longleftrightarrow }}\quad \operatorname {III} (f)}$

Unitary transform to angular frequency domain (radian/s):

${\displaystyle \operatorname {III} _{T}(t)\quad {\stackrel {\mathcal {F}}{\longleftrightarrow }}\quad {\frac {\sqrt {2\pi }}{T}}\operatorname {III} _{\frac {2\pi }{T}}(\omega )\quad ={\frac {1}{\sqrt {2\pi }}}\sum _{n=-\infty }^{\infty }e^{-i\omega nT}.\,}$

## Sampling and aliasing

Multiplying any function by a Dirac comb transforms it into a train of impulses with integrals equal to the value of the function at the nodes of the comb. This operation is frequently used to represent sampling.

${\displaystyle (\operatorname {III} _{T}x)(t)=\sum _{k=-\infty }^{\infty }x(t)\delta (t-kT)=\sum _{k=-\infty }^{\infty }x(kT)\delta (t-kT).}$

Due to the self-transforming property of the Dirac comb and the convolution theorem, this corresponds to convolution with the Dirac comb in the frequency domain.

${\displaystyle \operatorname {III} _{T}x\quad {\stackrel {\mathcal {F}}{\longleftrightarrow }}\quad {\frac {1}{T}}\operatorname {III} _{\frac {1}{T}}*X}$

Since convolution with a delta function ${\displaystyle \delta (t-kT)}$ is equivalent to shifting the function by ${\displaystyle kT}$, convolution with the Dirac comb corresponds to replication or periodic summation:

${\displaystyle (\operatorname {III} _{\frac {1}{T}}*X)(f)=\sum _{k=-\infty }^{\infty }X\left(f-{\frac {k}{T}}\right)}$

This leads to a natural formulation of the Nyquist-Shannon sampling theorem. If the spectrum of the function ${\displaystyle x}$ contains no frequencies higher than B (i.e., its spectrum is nonzero only in the interval ${\displaystyle (-B,B)}$) then samples of the original function at intervals ${\displaystyle 1/2B}$ are sufficient to reconstruct the original signal. It suffices to multiply the spectrum of the sampled function by a suitable rectangle function, which is equivalent to applying a brick-wall lowpass filter.

${\displaystyle \operatorname {III} _{\frac {1}{2B}}x\quad {\stackrel {\mathcal {F}}{\longleftrightarrow }}\quad 2B\,\operatorname {III} _{2B}*X}$
${\displaystyle {\frac {1}{2B}}\Pi \left({\frac {t}{2B}}\right)(2B\,\operatorname {III} _{2B}*X)=X}$

In the time domain, this multiplication is equivalent to convolving a sinc function with the samples of the signal, leading to the Whittaker–Shannon interpolation formula.

## Use in directional statistics

In directional statistics, the Dirac comb of period 2π is equivalent to a wrapped Dirac delta function, and is the analog of the Dirac delta function in linear statistics.

In linear statistics, the random variable (x) is usually distributed over the real number line, or some subset thereof, and the probability density of x is a function whose domain is the set real numbers, and whose integral from ${\displaystyle -\infty }$ to ${\displaystyle +\infty }$ is unity. In directional statistics, the random variable (θ) is distributed over the unit circle and the probability density of θ is a function whose domain is some interval of the real numbers of length 2π and whose integral over that interval is unity. Just as the integral of the product of a Dirac delta function with an arbitrary function over the real number line yields the value of that function at zero, so the integral of the product of a Dirac comb of period 2π with an arbitrary function of period 2π over the unit circle yields the value of that function at zero.