Comb filter
From Wikipedia, the free encyclopedia
In signal processing, a comb filter adds a delayed version of a signal to itself, causing constructive and destructive interference. The frequency response of a comb filter consists of a series of regularly-spaced spikes, giving the appearance of a comb.
Comb filters exist in two different forms, feedforward and feedback; the names refer to the direction in which signals are delayed before they are added to the input.
Comb filters may be implemented in discrete time or continuous time; this article will focus on discrete-time implementations; the properties of the continuous-time comb filter are very similar.
Contents |
[edit] Feedforward form
The general structure of a feedforward comb filter is shown on the right. It may be described by the following difference equation:
where K is the delay length (measured in samples), and α is a scaling factor applied to the delayed signal. If we take the Z transform of both sides of the equation, we obtain:
We define the transfer function as:
[edit] Frequency response
To obtain the frequency response of a discrete-time system expressed in the Z domain, we make the substitution z = ejω. Therefore, for our feedforward comb filter, we get:
Using Euler's formula, we find that 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:
Notice that the (1 + α2) term is constant, whereas the 2αcos(ωK) term varies periodically. Hence the magnitude response of the comb filter is periodic.
The graphs to the right show the magnitude response for various values of α, demonstrating this periodicity. Some important properties:
- The response periodically drops to a local minimum (sometimes known as a notch), and periodically rises to a local maximum (sometimes known as a peak).
- 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.
[edit] Pole-zero interpretation
Looking again at the Z-domain transfer function of the feedforward comb filter:
we see that the numerator is equal to zero whenever zK = − α. This has K solutions, equally spaced around a circle in the complex plane; these are the zeros of the transfer function. The denominator is zero at zK = 0, giving K poles at z = 0. This leads to a pole-zero plot like the ones shown below.
[edit] Feedback form
Similarly, the general structure of a feedback comb filter is shown on the right. It may be described by the following difference equation:
If we rearrange this equation so that all terms in y are on the left-hand side, and then take the Z transform, we obtain:
The transfer function is therefore:
[edit] Frequency response
If we make the substitution z = ejω into the Z-domain expression for the feedback comb filter, we get:
The magnitude response is as follows:
Again, the response is periodic, as the graphs to the right 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.
However, there are also some important differences, due to the fact that the magnitude response has a term in the denominator:
- The levels of the maxima and minima are no longer equidistant from 1.
- The filter is only stable if | α | is strictly less than 1. As can be seen from the graphs, as | α | increases, the amplitude of the maxima rises increasingly rapidly.
[edit] Pole-zero interpretation
Looking again at the Z-domain transfer function of the feedback comb filter:
This time, the numerator is zero at zK = 0, giving K zeros at z = 0. The denominator is equal to zero whenever zK = α. This has K solutions, equally spaced around a circle in the complex plane; these are the poles of the transfer function. This leads to a pole-zero plot like the ones shown below.
[edit] Continuous-time comb filters
Comb filters may also be implemented in continuous time. The feedforward form may be described by the following equation:
and the feedback form by:
where τ is the delay (measured in seconds).
They have the following frequency responses, respectively:
Continuous-time implementations share all the properties of the respective discrete-time implementations.
[edit] Applications
Comb filters are used in a variety of signal processing applications. These include:
- Cascaded Integrator-Comb (CIC) filters, commonly used for anti-aliasing during interpolation and decimation operations that change the sample rate of a discrete-time system.
- 2D and 3D comb filters implemented in hardware (and occasionally software) for PAL and NTSC television decoders. The filters work to reduce artifacts such as dot crawl.
- Audio effects, including echo, flanging, and digital waveguide synthesis. For instance, if the delay is set to a few milliseconds, a comb filter can be used to model the effect of acoustic standing waves in a cylindrical cavity or in a vibrating string.