HOME

TheInfoList



OR:

In
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are ...
, downsampling, compression, and decimation are terms associated with the process of ''resampling'' in a multi-rate digital signal processing system. Both ''downsampling'' and ''decimation'' can be synonymous with ''compression'', or they can describe an entire process of bandwidth reduction (
filtering Filter, filtering or filters may refer to: Science and technology Computing * Filter (higher-order function), in functional programming * Filter (software), a computer program to process a data stream * Filter (video), a software component tha ...
) and sample-rate reduction. When the process is performed on a sequence of samples of a ''signal'' or a continuous function, it produces an approximation of the sequence that would have been obtained by sampling the signal at a lower rate (or
density Density (volumetric mass density or specific mass) is the substance's mass per unit of volume. The symbol most often used for density is ''ρ'' (the lower case Greek letter rho), although the Latin letter ''D'' can also be used. Mathematicall ...
, as in the case of a photograph). ''Decimation'' is a term that historically means the '' removal of every tenth one''. But in signal processing, ''decimation by a factor of 10'' actually means ''keeping'' only every tenth sample. This factor multiplies the sampling interval or, equivalently, divides the sampling rate. For example, if
compact disc The compact disc (CD) is a digital optical disc data storage format that was co-developed by Philips and Sony to store and play digital audio recordings. In August 1982, the first compact disc was manufactured. It was then released in O ...
audio at 44,100 samples/second is ''decimated'' by a factor of 5/4, the resulting sample rate is 35,280. A system component that performs decimation is called a ''decimator''. Decimation by an integer factor is also called ''compression''.


Downsampling by an integer factor

Rate reduction by an integer factor ''M'' can be explained as a two-step process, with an equivalent implementation that is more efficient: # Reduce high-frequency signal components with a digital lowpass filter. # ''Decimate'' the filtered signal by ''M''; that is, keep only every ''M''th sample. Step 2 alone allows high-frequency signal components to be misinterpreted by subsequent users of the data, which is a form of distortion called
aliasing In signal processing and related disciplines, aliasing is an effect that causes different signals to become indistinguishable (or ''aliases'' of one another) when sampled. It also often refers to the distortion or artifact that results when ...
. Step 1, when necessary, suppresses aliasing to an acceptable level. In this application, the filter is called an
anti-aliasing filter An anti-aliasing filter (AAF) is a filter used before a signal sampler to restrict the bandwidth of a signal to satisfy the Nyquist–Shannon sampling theorem over the band of interest. Since the theorem states that unambiguous reconstruct ...
, and its design is discussed below. Also see undersampling for information about decimating
bandpass A band-pass filter or bandpass filter (BPF) is a device that passes frequencies within a certain range and rejects (attenuates) frequencies outside that range. Description In electronics and signal processing, a filter is usually a two-por ...
functions and signals. When the anti-aliasing filter is an IIR design, it relies on feedback from output to input, prior to the second step. With
FIR filter 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 impulse ...
ing, 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: :y = \sum_^ x M-kcdot h 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''+1is 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 half-band 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'' low-order 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 multi-processor 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 (which means multiplying by zeros), 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''. It is sometimes used in derivations of the polyphase method.


Anti-aliasing filter

Let ''X''(''f'') be the
Fourier transform A Fourier transform (FT) is a mathematical transform that decomposes functions into frequency components, which are represented by the output of the transform as a function of frequency. Most commonly functions of time or space are transformed ...
of any function, ''x''(''t''), whose samples at some interval, ''T'', equal the ''x'' 'n''sequence. Then the
discrete-time Fourier transform In mathematics, the discrete-time Fourier transform (DTFT) is a form of Fourier analysis that is applicable to a sequence of values. The DTFT is often used to analyze samples of a continuous function. The term ''discrete-time'' refers to the ...
(DTFT) is a
Fourier series A Fourier series () is a summation of harmonically related sinusoidal functions, also known as components or harmonics. The result of the summation is a periodic function whose functional form is determined by the choices of cycle length (or '' ...
representation of a periodic summation of ''X''(''f''): :\underbrace_ = \frac\sum_^ X\Bigl(f - \frac\Bigr). When ''T'' has units of seconds, f has units of
hertz The hertz (symbol: Hz) is the unit of frequency in the International System of Units (SI), equivalent to one event (or cycle) per second. The hertz is an SI derived unit whose expression in terms of SI base units is s−1, meaning that o ...
. Replacing ''T'' with ''MT'' in the formulas above gives the DTFT of the decimated sequence, ''x'' 'nM'' :\sum_^ x(n\cdot MT)\ \mathrm e^ = \frac\sum_^ X\left(f-\tfrac\right). The periodic summation has been reduced in amplitude and periodicity by a factor of ''M''.  An example of both these distributions is depicted in the two traces of Fig 1. Aliasing occurs when adjacent copies of ''X''(''f'') overlap. The purpose of the anti-aliasing filter is to ensure that the reduced periodicity does not create overlap. The condition that ensures the copies of ''X''(''f'') do not overlap each other is: B < \tfrac \cdot \tfrac, so that is the maximum
cutoff frequency In physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced ( attenuated or reflected) rather tha ...
of an ''ideal'' anti-aliasing filter.


By a rational factor

Let ''M/L'' denote the decimation factor, where: #Increase (resample) the sequence by a factor of ''L''. This is called Upsampling, or ''interpolation''. #Decimate by a factor of ''M'' Step 1 requires a lowpass filter after increasing (''expanding'') the data rate, and step 2 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 anti-aliasing filter cutoff, \tfrac ''cycles per intermediate sample'', is the lower frequency.


See also

* Upsampling *
Posterization Posterization or posterisation of an image is the conversion of a continuous gradation of tone to several regions of fewer tones, causing abrupt changes from one tone to another. This was originally done with photographic processes to create p ...
*
Sample-rate conversion Sample-rate conversion, sampling-frequency conversion or resampling is the process of changing the sampling rate or sampling frequency of a discrete signal to obtain a new discrete representation of the underlying continuous signal. Application a ...
*
Aliasing In signal processing and related disciplines, aliasing is an effect that causes different signals to become indistinguishable (or ''aliases'' of one another) when sampled. It also often refers to the distortion or artifact that results when ...
*
Visvalingam–Whyatt algorithm The Visvalingam–Whyatt algorithm, also known as the Visvalingam's algorithm, is an algorithm that decimates a curve composed of line segments to a similar curve with fewer points. Idea Given a polygonal chain (often called a Polyline), the al ...


Notes


Page citations


References


Further reading

* * * * * T. Schilcher. RF applications in digital signal processing//" Digital signal processing". Proceedings, CERN Accelerator School, Sigtuna, Sweden, May 31-June 9, 2007. - Geneva, Switzerland: CERN (2008). - P. 258. - DOI: 10.5170/CERN-2008-003

* Sliusar I.I., Slyusar V.I., Voloshko S.V., Smolyar V.G. Next Generation Optical Access based on N-OFDM with decimation.// Third International Scientific-Practical Conference "Problems of Infocommunications. Science and Technology (PIC S&T'2016)". – Kharkiv. - October 3 –6, 2016

* Saska Lindfors, Aarno Pärssinen, Kari A. I. Halonen. A 3-V 230-MHz CMOS Decimation Subsampler.// IEEE transactions on circuits and systems— Vol. 52, No. 2, February 2005. – P. 110. {{DSP Digital signal processing Signal processing