In signal processing, sampling is the reduction of a continuous signal to a discrete signal. A common example is the conversion of a sound wave (a continuous time signal) to a sequence of samples (a discrete time signal).
For convenience, we will discuss signals which vary with time. However, the same results can be applied to signals varying in space or in any other dimension.
Let be a continuous signal which is to be sampled, and that sampling is performed by measuring the value of the continuous signal every seconds. Thus, the sampled signal is given by
The sampling frequency or sampling rate is defined as the number of samples obtained in one second, or . The sampling rate is measured in Hertz or in samples per second.
We can now ask: under what circumstances is it possible to reconstruct the original signal completely and exactly (perfect reconstruction)?
The answer is provided by the Nyquist–Shannon sampling theorem. The sampling theorem guarantees that bandlimited signals (i.e., signals which have a maximum frequency) can be reconstructed perfectly from their sampled version. Specifically, the sampling theorem states that reconstruction is possible if the sampling rate is more than twice the maximum frequency. Reconstruction is achieved using the Whittaker–Shannon interpolation formula.
The frequency equal to one half of the sampling rate is therefore the highest frequency that can be unambigiously represented by the sampled signal. This frequency (half the sampling rate) is called the Nyquist frequency. Frequencies above the Nyquist frequency can be observed in the digital signal, but their frequency is ambiguous. That is, a frequency component with frequency cannot be distinguished from another component with frequency , , etc. This ambiguity is called aliasing. To handle this problem as gracefully as possible, most analog signals are filtered with an anti-aliasing filter (usually a low-pass filter) at the Nyquist frequency before conversion to the digital representation.
A more general statement of the Nyquist-Shannon sampling theorem says that the signals with frequencies higher than the Nyquist frequency can be sampled, provided their bandwidth (non-zero frequency band) is small enough and the bandlimits are known.
The sampling interval is simply the span of time during which the data is studied, regardless of whether data so gathered represents a set of discrete events having arbitrary timing within the interval, or whether the samples are explicitly bound to specified sub-intervals.
In practice, the continuous signal is sampled using an analog-to-digital converter (ADC), a non-ideal device with various physical limitations. This results in deviations from the theoretically perfect reconstruction capabilities, collectively referred to as distortion.
Various types of distortion can occur, including:
The conventional, practical digital-to-analog converter (DAC) does not output a sequence of dirac impulses (such that, if ideally low-pass filtered, result in the original signal before sampling) but instead output a sequence of piecewise constant values or rectangular pulses. This means that there is an inherent effect of the zero-order hold on the effective frequency response of the DAC resulting in a mild roll-off of gain at the higher frequencies (a 3.9224 dB loss at the Nyquist frequency). This zero-order hold effect is a consequence of the hold action of the DAC and is not due to the sample-and-hold that might precede a conventional ADC as is often misunderstood. The DAC can also suffer errors from jitter, noise, slewing, and non-linear mapping of input value to output voltage.
Jitter, noise, and quantization are often analyzed by modeling them as random errors added to the sample values. Integration and zero-order hold effects can be analyzed as a form of low-pass filtering. The non-linearities of either ADC or DAC are analyzed by replacing the ideal linear function mapping with a proposed nonlinear function.
The recent trend towards higher sampling rates, at two or four times this basic requirement, has not been justified theoretically, or shown to make any audible difference, even under the most critical listening conditions. Nevertheless, a lot of 96kHz equipment is now used in studio recording, and 'superaudio' formats are being promised to consumers, mostly as a DVD option. Most articles purporting to justify a need for more than 48 kHz state that the 'dynamic range' of 16-bit audio is 96dB, a figure commonly derived from the simple ratio of quantizing level to full-scale level, which is , or 65536. This calculation fails to take into account the fact that peak level is not maximum permitted sine-wave signal level, and quantizing step size is not rms noise level, and even if it were it would not represent loudness, without the application of the ITU-R 468 noise weighting function. A proper analysis of typical programme levels throughout the audio chain reveals the fact that the capabilities of well engineered 16-bit recording far exceed those of the very best hi-fi systems, with the microphone noise and loudspeaker headroom being the real limiting factors.
High-definition television (HDTV) is currently moving towards two standards referred to as 720p (progressive) and 1080i (interlaced), which all 'HD-Ready' sets will be able to display.
Proper 2-dimensional reconstruction requires a final display with many more pixels than the signal format, and modern HDTV sets can provide this, producing much better resolution pictures than even a top studio monitor can from SDTV signals (though they are not so good regarding grey-level accuracy, especially near black level).
As with audio, this theoretical need for reconstruction is not commonly realised, though it was recognised by the BBC who then backed off from broadcasting HDTV but started to record programmes in HDTV.
To get a true HDTV image you really need a 'super HDTV' display, with at least twice as many pixels again (3840 x 2160)!! Worth bearing in mind though not currently practical. Nevertheless, HDTV does a very significant increase in resolution over SDTV when both are compared on a HDTV set, the higher Nyquist frequency bringing improvements despite the fact that the image is not properly reconstructed on currently available displays.
Vzorek | Abtastung | Échantillonnage (signal) | Sample | 標本化 | Próbkowanie | 取樣
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Sampling (signal processing)".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world