1000/1000
Hot
Most Recent
In digital signal processing, decimation is the process of reducing the sampling rate of a signal. The term downsampling usually refers to one step of the process, but sometimes the terms are used interchangeably. Complementary to upsampling, which increases sampling rate, decimation is a specific case of sample rate conversion in a multirate digital signal processing system. A system component that performs decimation is called a decimator. When decimation is performed on a sequence of samples of a signal or other continuous function, it produces an approximation of the sequence that would have been obtained by sampling the signal at a lower rate (or density, as in the case of a photograph). The decimation factor is usually an integer or a rational fraction greater than one. This factor multiplies the sampling interval or, equivalently, divides the sampling rate. For example, if compact disc audio at 44,100 samples/second is decimated by a factor of 5/4, the resulting sample rate is 35,280.
Decimation by an integer factor, M, can be explained as a twostep process, with an equivalent implementation that is more efficient:
Downsampling alone causes highfrequency signal components to be misinterpreted by subsequent users of the data, which is a form of distortion called aliasing. The first step, if necessary, is to suppress aliasing to an acceptable level. In this application, the filter is called an antialiasing filter, and its design is discussed below. Also see undersampling for information about downsampling bandpass functions and signals.
When the antialiasing filter is an IIR design, it relies on feedback from output to input, prior to the downsampling step. With FIR filtering, it is an easy matter to compute only every M^{th} output. The calculation performed by a decimating FIR filter for the n^{th} output sample is a dot product:
where the h[•] sequence is the impulse response, and K is its length. x[•] represents the input sequence being downsampled. In a general purpose processor, after computing y[n], the easiest way to compute y[n+1] is to advance the starting index in the x[•] array by M, and recompute the dot product. In the case M=2, h[•] can be designed as a halfband filter, where almost half of the coefficients are zero and need not be included in the dot products.
Impulse response coefficients taken at intervals of M form a subsequence, and there are M such subsequences (phases) multiplexed together. The dot product is the sum of the dot products of each subsequence with the corresponding samples of the x[•] sequence. Furthermore, because of downsampling by M, the stream of x[•] samples involved in any one of the M dot products is never involved in the other dot products. Thus M loworder FIR filters are each filtering one of M multiplexed phases of the input stream, and the M outputs are being summed. This viewpoint offers a different implementation that might be advantageous in a multiprocessor architecture. In other words, the input stream is demultiplexed and sent through a bank of M filters whose outputs are summed. When implemented that way, it is called a polyphase filter.
For completeness, we now mention that a possible, but unlikely, implementation of each phase is to replace the coefficients of the other phases with zeros in a copy of the h[•] array, process the original x[•] sequence at the input rate, and decimate the output by a factor of M. The equivalence of this inefficient method and the implementation described above is known as the first Noble identity.^{[1]}
The requirements of the antialiasing filter can be deduced from any of the three pairs of graphs in Fig. 1. Note that all three pairs are identical, except for the units of the abscissa variables. The upper graph of each pair is an example of the periodic frequency distribution of a sampled function, x(t), with Fourier transform, X(f). The lower graph is the new distribution that results when x(t) is sampled three times slower, or (equivalently) when the original sample sequence is decimated by a factor of M=3. In all three cases, the condition that ensures the copies of X(f) do not overlap each other is the same: [math]\displaystyle{ B \lt \tfrac{1}{M}\cdot\tfrac{1}{2T}, }[/math] where T is the interval between samples, 1/T is the samplerate, and 1/(2T) is the Nyquist frequency. The antialiasing filter that can ensure the condition is met has a cutoff frequency less than [math]\displaystyle{ \tfrac{1}{M} }[/math] times the Nyquist frequency.^{[2]}
The abscissa of the top pair of graphs represents the discretetime Fourier transform (DTFT), which is a Fourier series representation of a periodic summation of X(f):
[math]\displaystyle{ \underbrace{ \sum_{n=\infty}^{\infty} \overbrace{x(nT)}^{x[n]}\ \mathrm e^{\mathrm i 2\pi f nT} }_{\text{DTFT}} = \frac{1}{T}\sum_{k=\infty}^{\infty} X\Bigl(f  \frac{k}{T}\Bigr). }[/math] 

( ) 
When T has units of seconds, [math]\displaystyle{ \scriptstyle f }[/math] has units of hertz. Replacing T with MT in the formulas above gives the DTFT of the decimated sequence, x[nM]:
The periodic summation has been reduced in amplitude and periodicity by a factor of M, as depicted in the second graph of Fig. 1. Aliasing occurs when adjacent copies of X(f) overlap. The purpose of the antialiasing filter is to ensure that the reduced periodicity does not create overlap.
In the middle pair of graphs, the frequency variable, [math]\displaystyle{ \scriptstyle f, }[/math] has been replaced by normalized frequency, which creates a periodicity of 1 and a Nyquist frequency of ½. ^{[3]} A common practice in filter design programs is to assume those values and request only the corresponding cutoff frequency in the same units. In other words, the cutoff frequency [math]\displaystyle{ B_{max} = \tfrac{1}{M}\cdot\tfrac{1}{2T}, }[/math] is normalized to [math]\displaystyle{ TB_{max} = \tfrac{1}{M}\cdot\tfrac{1}{2} = \tfrac{0.5}{M}. }[/math] The units of this quantity are (seconds/sample)×(cycles/second) = cycles/sample.
The bottom pair of graphs represent the Ztransforms of the original sequence and the decimated sequence, constrained to values of complexvariable, z, of the form [math]\displaystyle{ z=\mathrm e^{\mathrm i\omega}. }[/math] Then the transform of the x[n] sequence has the form of a Fourier series. By comparison with Eq.1, we deduce:
which is depicted by the fifth graph in Fig. 1. Similarly, the sixth graph depicts:
Let M/L denote the decimation factor, where: M, L ∈ ℤ; M > L.
Interpolation requires a lowpass filter after increasing the data rate, and decimation requires a lowpass filter before decimation. Therefore, both operations can be accomplished by a single filter with the lower of the two cutoff frequencies. For the M > L case, the antialiasing filter cutoff, [math]\displaystyle{ \tfrac{0.5}{M} }[/math] cycles per intermediate sample, is the lower frequency.
Techniques for decimation (and samplerate conversion in general) by factor R ∈ ℝ^{+} include polynomial interpolation and the Farrow structure.^{[4]}
An important factor in the development of digital antenna arrays for radars and Massive MIMO is the need to reduce the cost per channel. Combining the decimation process not only with an antialiasing filter, but also with the digital frequency shifting and I/Qdemodulation as well can help to bring down this cost.
In the simpler case of decimation of OFDM signals by an integer factor M, the algorithm^{[5]} may be used:
where [math]\displaystyle{ T }[/math] is interval between samples of signal and [math]\displaystyle{ f }[/math] is the central carrier frequency of the OFDM signal.
For example, setting [math]\displaystyle{ 2\pi f kT = k\pi/2 }[/math] yields the sequence [math]\displaystyle{ e^{i 2\pi f kT} = 1, e^{i \pi/2}, e^{i \pi},... }[/math] and therefore^{[5]}
This algorithm is only one filter of the full discrete Fourier transform and can be useful to decimate samples in an ADC before digital beamforming in digital antenna arrays.
If [math]\displaystyle{ \operatorname{Im}(x[nM+k])=0 }[/math] then ^{[6]}^{[7]}
or
For video signals ([math]\displaystyle{ \operatorname{Im}(x[nM+k])=0 }[/math] and [math]\displaystyle{ \operatorname{Re}(x[nM+k])\gt =0 }[/math])
If more effective antialiasing filtering is required then this method may be modified to produce:
An example of such decimation by [math]\displaystyle{ 2\pi f kT = k\pi/2 }[/math] can be implemented by the formulas:
A similar combination of filters can be used for decimation using fractional factors.