In
signal processing
Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as audio signal processing, sound, image processing, images, Scalar potential, potential fields, Seismic tomograph ...
, a comb filter is a
filter implemented by adding a delayed version of a
signal
A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology.
In ...
to itself, causing constructive and destructive
interference
Interference is the act of interfering, invading, or poaching. Interference may also refer to:
Communications
* Interference (communication), anything which alters, modifies, or disrupts a message
* Adjacent-channel interference, caused by extra ...
. The
frequency response
In signal processing and electronics, the frequency response of a system is the quantitative measure of the magnitude and Phase (waves), phase of the output as a function of input frequency. The frequency response is widely used in the design and ...
of a comb filter consists of a series of regularly spaced notches in between regularly spaced ''peaks'' (sometimes called ''teeth'') giving the appearance of a
comb
A comb is a tool consisting of a shaft that holds a row of teeth for pulling through the hair to clean, untangle, or style it. Combs have been used since prehistoric times, having been discovered in very refined forms from settlements dating ba ...
.
Comb filters exist in two forms, ''feedforward'' and ''
feedback
Feedback occurs when outputs of a system are routed back as inputs as part of a chain of cause and effect that forms a circuit or loop. The system can then be said to ''feed back'' into itself. The notion of cause-and-effect has to be handle ...
''; which refer to the direction in which signals are delayed before they are added to the input.
Comb filters may be implemented in
discrete time
In mathematical dynamics, discrete time and continuous time are two alternative frameworks within which variables that evolve over time are modeled.
Discrete time
Discrete time views values of variables as occurring at distinct, separate "poi ...
or
continuous time
In mathematical dynamics, discrete time and continuous time are two alternative frameworks within which variables that evolve over time are modeled.
Discrete time
Discrete time views values of variables as occurring at distinct, separate "poi ...
forms which are very similar.
Applications

Comb filters are employed in a variety of signal processing applications, including:
*
Cascaded integrator–comb (CIC) filters, commonly used for
anti-aliasing Anti-aliasing may refer to any of a number of techniques to combat the problems of aliasing in a sampled signal such as a digital image or digital audio recording.
Specific topics in anti-aliasing include:
* Anti-aliasing filter, a filter used b ...
during
interpolation
In the mathematics, mathematical field of numerical analysis, interpolation is a type of estimation, a method of constructing (finding) new data points based on the range of a discrete set of known data points.
In engineering and science, one ...
and
decimation operations that change the
sample rate
In signal processing, sampling is the reduction of a continuous-time signal to a discrete-time signal. A common example is the conversion of a sound wave to a sequence of "samples".
A sample is a value of the signal at a point in time and/or ...
of a discrete-time system.
* 2D and 3D comb filters implemented in hardware (and occasionally software) in
PAL
Phase Alternating Line (PAL) is a color encoding system for analog television. It was one of three major analogue colour television standards, the others being NTSC and SECAM. In most countries it was broadcast at 625 lines, 50 fields (25 ...
and
NTSC
NTSC (from National Television System Committee) is the first American standard for analog television, published and adopted in 1941. In 1961, it was assigned the designation System M. It is also known as EIA standard 170.
In 1953, a second ...
analog television decoders reduce artifacts such as
dot crawl
Dot crawl (also known as chroma crawl or cross-luma) is a visual defect of color analog video standards when signals are transmitted as composite video, as in terrestrial television, terrestrial broadcast television. It consists of moving checker ...
.
*
Audio signal processing
Audio signal processing is a subfield of signal processing that is concerned with the electronic manipulation of audio signals. Audio signals are electronic representations of sound waves—longitudinal waves which travel through air, consisting ...
, including
delay,
flanging
Flanging is an audio signal processing, audio effect produced by mixing two identical audio signal, signals together, one signal delayed by a small and (usually) gradually changing period, usually smaller than 20 milliseconds. This produces a ...
,
physical modelling synthesis
Physical modelling synthesis refers to sound synthesis methods in which the waveform of the sound to be generated is computed using a mathematical model, a set of equations and algorithms to simulate a physical source of sound, usually a musical i ...
and
digital waveguide synthesis
Digital waveguide synthesis is the synthesis of audio using a digital waveguide. Digital waveguides are efficient computational models for physical media through which acoustic waves propagate. For this reason, digital waveguides constitute a ...
. If the delay is set to a few milliseconds, a comb filter can model the effect of
acoustic standing waves
In physics, a standing wave, also known as a stationary wave, is a wave that oscillates in time but whose peak amplitude profile does not move in space. The peak amplitude of the wave oscillations at any point in space is constant with respect t ...
in a cylindrical cavity or
in a vibrating string.
* In astronomy the
astro-comb promises to increase the precision of existing
spectrograph
An optical spectrometer (spectrophotometer, spectrograph or spectroscope) is an instrument used to measure properties of light over a specific portion of the electromagnetic spectrum, typically used in spectroscopic analysis to identify mate ...
s by nearly a hundredfold.
In
acoustics
Acoustics is a branch of physics that deals with the study of mechanical waves in gases, liquids, and solids including topics such as vibration, sound, ultrasound and infrasound. A scientist who works in the field of acoustics is an acoustician ...
, comb filtering can arise as an unwanted artifact. For instance, two
loudspeakers
A loudspeaker (commonly referred to as a speaker or, more fully, a speaker system) is a combination of one or more speaker drivers, an enclosure, and electrical connections (possibly including a crossover network). The speaker driver is an ...
playing the same signal at different distances from the listener create a comb filtering effect on the audio. In any enclosed space, listeners hear a mixture of direct sound and reflected sound. The reflected sound takes a longer, delayed path compared to the direct sound, and a comb filter is created where the two mix at the listener. Similarly, comb filtering may result from mono mixing of multiple mics, hence the 3:1
rule of thumb
In English language, English, the phrase ''rule of thumb'' refers to an approximate method for doing something, based on practical experience rather than theory. This usage of the phrase can be traced back to the 17th century and has been associat ...
that neighboring mics should be separated at least three times the distance from its source to the mic.
Discrete time implementation
Feedforward form
The general structure of a feedforward comb filter is described by the
difference equation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
:
:
where
is the delay length (measured in samples), and is a scaling factor applied to the delayed signal. The
transform of both sides of the equation yields:
:
The
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
is defined as:
:
Frequency response
The frequency response of a discrete-time system expressed in the -domain is obtained by substitution
where
is the
imaginary unit
The imaginary unit or unit imaginary number () is a mathematical constant that is a solution to the quadratic equation Although there is no real number with this property, can be used to extend the real numbers to what are called complex num ...
and
is
angular frequency
In physics, angular frequency (symbol ''ω''), also called angular speed and angular rate, is a scalar measure of the angle rate (the angle per unit time) or the temporal rate of change of the phase argument of a sinusoidal waveform or sine ...
. Therefore, for the feedforward comb filter:
:
Using
Euler's formula
Euler's formula, named after Leonhard Euler, is a mathematical formula in complex analysis that establishes the fundamental relationship between the trigonometric functions and the complex exponential function. Euler's formula states that, for ...
, the frequency response is also given by
:
Often of interest is the ''magnitude'' response, which ignores phase. This is defined as:
:
In the case of the feedforward comb filter, this is:
:
The
term is constant, whereas the
term varies
periodically. Hence the magnitude response of the comb filter is periodic.
The graphs show the periodic magnitude response for various values of
Some important properties:
*The response periodically drops to a
local minimum
In mathematical analysis, the maximum and minimum of a function are, respectively, the greatest and least value taken by the function. Known generically as extremum, they may be defined either within a given range (the ''local'' or ''relative ...
(sometimes known as a ''notch''), and periodically rises to a
local maximum
In mathematical analysis, the maximum and minimum of a function (mathematics), function are, respectively, the greatest and least value taken by the function. Known generically as extremum, they may be defined either within a given Interval (ma ...
(sometimes known as a ''peak'' or a ''tooth'').
*For positive values of
the first minimum occurs at half the delay period and repeats at even multiples of the delay frequency thereafter:
::
*The levels of the maxima and minima are always equidistant from 1.
*When
the minima have zero amplitude. In this case, the minima are sometimes known as ''nulls''.
*The maxima for positive values of
coincide with the minima for negative values of
, and vice versa.
Impulse response
The feedforward comb filter is one of the simplest
finite impulse response
In signal processing, a finite impulse response (FIR) filter is a filter whose impulse response (or response to any finite length input) is of ''finite'' duration, because it settles to zero in finite time. This is in contrast to infinite impuls ...
filters. Its response is simply the initial impulse with a second impulse after the delay.
Pole–zero interpretation
Looking again at the -domain transfer function of the feedforward comb filter:
:
the numerator is equal to zero whenever . This has solutions, equally spaced around a circle in the
complex plane
In mathematics, the complex plane is the plane (geometry), plane formed by the complex numbers, with a Cartesian coordinate system such that the horizontal -axis, called the real axis, is formed by the real numbers, and the vertical -axis, call ...
; these are the
zeros of the transfer function. The denominator is zero at , giving
poles
Pole or poles may refer to:
People
*Poles (people), another term for Polish people, from the country of Poland
* Pole (surname), including a list of people with the name
* Pole (musician) (Stefan Betke, born 1967), German electronic music artist
...
at . This leads to a
pole–zero plot
In mathematics, signal processing and control theory, a pole–zero plot is a graphical representation of a rational transfer function in the complex plane which helps to convey certain properties of the system such as:
* Stability
* Causal syst ...
like the ones shown.
Feedback form
Similarly, the general structure of a feedback comb filter is described by the
difference equation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
:
:
This equation can be rearranged so that all terms in
are on the left-hand side, and then taking the transform:
:
The transfer function is therefore:
:
Frequency response
By substituting
into the feedback comb filter's -domain expression:
:
the magnitude response becomes:
:
Again, the response is periodic, as the graphs demonstrate. The feedback comb filter has some properties in common with the feedforward form:
*The response periodically drops to a local minimum and rises to a local maximum.
*The maxima for positive values of
coincide with the minima for negative values of
and vice versa.
*For positive values of
the first maximum occurs at 0 and repeats at even multiples of the delay frequency thereafter:
::
However, there are also some important differences because the magnitude response has a term in the
denominator
A fraction (from , "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight-fifths, thre ...
:
*The levels of the maxima and minima are no longer equidistant from 1. The maxima have an amplitude of .
*The filter is only
stable
A stable is a building in which working animals are kept, especially horses or oxen. The building is usually divided into stalls, and may include storage for equipment and feed.
Styles
There are many different types of stables in use tod ...
if is strictly less than 1. As can be seen from the graphs, as increases, the amplitude of the maxima rises increasingly rapidly.
Impulse response
The feedback comb filter is a simple type of
infinite impulse response
Infinite impulse response (IIR) is a property applying to many linear time-invariant systems that are distinguished by having an impulse response h(t) that does not become exactly zero past a certain point but continues indefinitely. This is in ...
filter.
If stable, the response simply consists of a repeating series of impulses decreasing in amplitude over time.
Pole–zero interpretation
Looking again at the -domain transfer function of the feedback comb filter:
:
This time, the numerator is zero at , giving zeros at . The denominator is equal to zero whenever . This has solutions, equally spaced around a circle in the
complex plane
In mathematics, the complex plane is the plane (geometry), plane formed by the complex numbers, with a Cartesian coordinate system such that the horizontal -axis, called the real axis, is formed by the real numbers, and the vertical -axis, call ...
; these are the poles of the transfer function. This leads to a pole–zero plot like the ones shown below.
Continuous time implementation
Comb filters may also be implemented in
continuous time
In mathematical dynamics, discrete time and continuous time are two alternative frameworks within which variables that evolve over time are modeled.
Discrete time
Discrete time views values of variables as occurring at distinct, separate "poi ...
which can be expressed in the
Laplace domain
In mathematics, the Laplace transform, named after Pierre-Simon Laplace (), is an integral transform that converts a function of a real variable (usually t, in the ''time domain'') to a function of a complex variable s (in the complex-valued fre ...
as a function of the
complex
Complex commonly refers to:
* Complexity, the behaviour of a system whose components interact in multiple ways so possible interactions are difficult to describe
** Complex system, a system composed of many components which may interact with each ...
frequency domain parameter
analogous to the z domain.
Analog circuits use some form of
analog delay line
An analog delay line is a network of electrical components connected in cascade, where each individual element creates a time difference between its input and output. It operates on analog signals whose amplitude varies continuously. In the c ...
for the delay element. Continuous-time implementations share all the properties of the respective discrete-time implementations.
Feedforward form
The feedforward form may be described by the equation:
:
where is the delay (measured in seconds). This has the following transfer function:
:
The feedforward form consists of an infinite number of zeros spaced along the jω axis (
which corresponds to the Fourier domain).
Feedback form
The feedback form has the equation:
:
and the following transfer function:
:
The feedback form consists of an infinite number of poles spaced along the jω axis.
See also
*
Dirac comb
In mathematics, a Dirac comb (also known as sha function, impulse train or sampling function) is a periodic function, periodic Function (mathematics), function with the formula
\operatorname_(t) \ := \sum_^ \delta(t - k T)
for some given perio ...
*
Fabry–Pérot interferometer
In optics, a Fabry–Pérot interferometer (FPI) or etalon is an optical cavity made from two parallel reflecting surfaces (i.e.: thin mirrors). Optical waves can pass through the optical cavity only when they are in resonance with it. It is ...
References
External links
*
{{DEFAULTSORT:Comb Filter
Signal processing
Filter theory