Sampling (signal processing)
Under scanning ( english sampling ) is in the signal processing the registration of measured values to discrete , mostly equidistant understood times. A time -discrete signal is thus obtained from a time-continuous signal .
In the case of multi-channel signals, each sample results in a "sample" made up of several samples. The number of samples per second is called the sampling rate . In digital telephony ( ISDN ), the sampling rate is 8 kHz, for example.
Demarcation
The digitization of an analog signal in the time domain as an umbrella term includes, in addition to sampling, a further conversion, quantization , whereby the two conversions can be carried out in any order to obtain a digital signal :
- The sampling to convert a time-continuous signal into a time-discrete signal .
- The quantization to convert a continuous value signal into a discrete value signal.
Sampling in the time domain
Ideal sampling
For a simpler mathematical description, the ideal sample is defined. Here the signal is not accumulated over a certain period of time around the sampling time, but is evaluated exactly at the sampling time .
Mathematically this can be represented by multiplying the signal with the Dirac comb , a sequence of Dirac collisions :
The sampled signal is then
For the frequency spectrum , which represents the Fourier series of the signal , one obtains with the help of the inversion of the convolution theorem :
The spectrum is the spectrum of the input signal that is repeated periodically with the period - this expresses the convolution property of the Dirac pulse. It follows that the spectrum of maximum must be wide, so that the shifted spectra do not overlap.
If the spectrum is narrower than , the original signal can be completely reconstructed from the time-discrete spectrum after ideal low-pass filtering. This fact is the basis of the Nyquist-Shannon sampling theorem . On the other hand, if the spectrum of the input signal is wider than , aliasing occurs and the original signal can not be recovered.
Real sampling
In reality, two conditions of ideal scanning cannot be met:
- It is not possible to generate ideal Dirac collisions. Rather, the signal is obtained over a period of time around the actual sampling time. This is also called natural sensing . Alternatively, a sample-and-hold circuit is used.
- The perfect recovery of the signal from its spectrum requires an ideal low-pass filter as a reconstruction filter , which is not causal , in order to avoid mirror spectra .
The real scanning is therefore carried out with the following modifications:
Regarding 1 .: The Dirac comb is replaced by a square function ( ) with square pulses of length . The sampling is implemented by a sample-and-hold circuit, which keeps the value of a sampling constant for the length of the rectangular pulse. Mathematically, this corresponds to a convolution with the rectangular function:
The spectrum obtained from this is
This is the spectrum of the ideal sampling, weighted with a factor which includes the si function (sinc function). This represents a distortion of the signal, which can be eliminated by an additional distortion in the reconstruction filter when the original signal is recovered. This distortion does not occur with natural scanning.
Regarding 2 .: In order to recover the continuous signal from the spectrum with the smallest possible error even with a non-ideal reconstruction filter, the sampling frequency can be increased. As a result of the oversampling , the individual spectra clearly move further apart, as a result of which the low-pass filter for reconstruction has higher attenuation values in the area of the mirror spectra.
Sampling in the spectral range
Conversely, due to the symmetry properties of the Fourier transformation, a frequency function in the spectral range can also be formed , with ideal sampling, from a sequence with discrete-frequency values:
The spectral sequence consists of weighted Dirac pulses, which describe individual, discrete frequencies. Such a discrete spectrum is also called a line spectrum .
With the inverse Fourier transformation , the associated periodic form of the time function can be formed:
When sampling in the spectral range, the sampling theorem also applies in the “reverse” form: If the duration of a signal is less than , then the periodic components of do not overlap . The task of the reconstruction filter in the time domain is taken over by a gate circuit, in the simplest case a switch which switches through for the duration and blocks the rest of the time. If, on the other hand, the signal is longer than , there will be temporal overlaps and the original signal shape can no longer be reconstructed.
In real scanning in the spectral range, instead of a sequence of Dirac pulses, a sequence of spectral square-wave pulses occurs, each of which covers a band-limited section of the spectrum. Bandpass filters can take over this function in the technical context .
General mathematical representation
When storing a piece of music on a CD, the scanned signal is used to transmit and store the analog output signal. In this case, the method used for scanning depends on the method used for analog reconstruction. This view is also advantageous for the mathematical treatment.
The combination of scanning and playback in the opposite direction occurs z. B. in message transmission when a binary coded message is converted into an analog radio signal. The original binary character sequence is then reconstructed through a scanning process.
Conversion of discrete data into an analog signal
In the simplest case, a sequence of real numbers, i.e. a time-discrete signal, is converted using a single core function. In other words, the interpolating function in the broadest sense becomes a sequence using a function and a time step
educated. Whose Fourier transform is
where is the Fourier transform of .
Conversion of an analog signal into discrete data
A more realistic model of measuring a time-varying process is to take a weighted average over a period of time. This can be realized mathematically by folding with a weight function. Let the signal to be measured and the measured value be at the point in time (which is assigned to the center of gravity of the weight function, for example), then applies
- .
Under the Fourier transformation, the convolution changes into the multiplication. Let and be the Fourier transforms of and , then holds .
The process signal-data-signal
If you now determine a sequence of measured values with a time step in order to use them in the interpolation rule, we get a reconstructed analog signal
In order to assess the error of the entire process of discretization and reproduction, this process can be applied to simple frequency-limited test signals. This can be abbreviated in the model by determining the Fourier transform. However, the Fourier series is also used
to determine more precisely. According to Poisson's empirical formula , this periodic function is identical to the periodization of . Let be the sampling frequency, then
In summary, then
A frequency component around the frequency thus suffers a distortion with the factor and an aliasing of the strength around the frequency with .
In order to approximate baseband signals as well as possible, it is necessary that in a neighborhood of and for the same and for all apply. Within the framework of a mathematically exact theory, these requirements are met and all operations are well-defined, if
- and with one applies to all and
- (with the Kronecker delta ) in is continuous and has a zero there.
An estimate of the relative error is then obtained in the absolute square norm of the function space L² for a baseband function with the highest frequency according to the Parseval identity, i.e. H. of the signal-to-noise ratio , as
Examples: If and rectangular functions with width centered around 0, then is
and it applies .
If the reverse and the cardinal sine functions are reversed , then their Fourier transforms are the corresponding rectangular functions , and the resulting reconstruction formula is the cardinal series of the Whittaker-Kotelnikow- Nyquist-Shannon sampling theorem .
In any case, functions with frequency components above lead to aliasing errors in the frequency domain , so the frequency limit of the sampling theorem is necessary, but by no means sufficient for a low-error reconstruction.
The process data-signal-data
The "interpolating" function is scanned in this direction . So it turns out
This gives us for the Fourier series
According to Poisson's empirical formula, the following applies in this case
If the Fourier series of the sequence and thus the sequence are to be retained, this sum must have the value 1 everywhere . In this case too, the maximum deviation therefrom provides a limit for the relative error in the data transmission.
- and
From a mathematical point of view, the functions and again must adhere to the above-mentioned limit on the periodization of the absolute value square.
Other types of scanning
Traditionally, equidistant (periodic) sampling is the most widely used because it has been extensively researched and implemented in many applications. In the last few decades other types of sampling have also been investigated, which dispense with equal time intervals between samples, which promises some advantages such as effective utilization of the communication channel. These include send-on-delta sampling .
Literature sources
- Hans Dieter Lüke: Signal transmission . 11th edition. Springer Verlag, 2010, ISBN 978-3-642-10199-1 .
- Hans Dieter Lüke: Signal transmission (online version) . 11th edition. Springer Verlag, 2010, ISBN 978-3-642-10200-4 .
Web links
- Discrete processing of continuous signals
- Our: Sampling - 50 years after Shannon (PDF available)
- Sampling rate :: sampling rate :: ITWissen.info
- Interactive representation of the sampling and the signal recovery in a web demo Institute for Communication of the University of Stuttgart