<< Chapter < Page | Chapter >> Page > |
Nyquist Shannon sampling theorem :
Assume that the continuous-time signal is bandlimited , meaning there is some such that whenever .
If this signal is sampled uniformly at a sufficient rate, namely at , then can be mathematically reconstructed perfectly from only those discrete samples.
Reconstruction (Ideal low pass filtering)
If the sample rate has been high enough though, namely
then, the Fourier transform of the original signal can be recovered by cutting off the periodic copies:
where has to be chosen such that (see [link] right). (The first copy to be cut off lies over the interval .) A possible choice is .
In the time domain, this corresponds to convolving the sampled signal with the ideal low-pass filter ( ). More precisely: Translating [link] into the time domain, then using the linearity of the convolution and [link] , we find the ideal low-pass filtering (reconstruction) formula:
Note that the pre-factor takes into account the mismatch between sampling rate and the cut-off frequency . When choosing , it disappears (becomes 1).
Practical reconstruction : Recall that the sinc filter is not realizable since it requires using all samples of the past and thefuture. Since a bandlimited signal can not be time-limited at the same time (Heisenberg), this would in theory lead to infinitely manyoperations.
If , then a filter different from the ideal sinc-filter can be used. In fact, the reconstruction is valid for any low-pass filter (not only for ) as long as we assure that the spectrum of the filter is equal to 1 for all frequencies in and zero for frequencies larger . (Note that we do not specify the phase). Usually, one designs a filter such that
All this assures that we keep the entire spectral information of contained in , yet remove all spectral copies (see [link] ). Sampling an ideal reconstruction filter is a method to a design a low pass filter. Here, point 2 in the above list helps avoidingaliasing in such a filter. However, the resulting filters are not ideal as FIR filters possible since not all samples can be used, resultingin Gibbs-like phenomena (see [link] on the right).
Matlab uses the command
fir1
to compute finite impulse response filters (FIR).
A larger transition band allows for shorter filters to be used, thusspeeding up computation.
[link] shows a length 61 FIR filter with ideal cutoff frequency at
.
Its transition band is roughly
.
As is common in digital filtering, thesampling frequency is assumed to be
.
Power and Energy from Sampling
We summarize a few facts.
Good quality when above Nyquist We are now in a position to make more precise how many samples are enough to well approximate the power of a signal via [link] , or its energy per time over a large interval via [link] , depending on the context. Roughly, the signal must be sampled at least at Nyquist rateso that the samples and their DFT faithfully represent the signal and its Fourier transform. Clearly, sampling at a much higher rate than Nyquist will improve the approximation.
Power independent of sampling rate We conclude that changing the sampling rate will not change power, as long as we stay above Nyquist, and at least approximately. Before we study how to change the sampling rate in thenext sections, we give a quick demonstration of [link] using a simple band-limited signal: a filter.
Ideal filter and FIR filter The energy of the ideal filter with cutoff frequency is which follows easily from the power spectrum being 1 on an interval of length and zero else, using Plancherel. To compute the power of a digital low pass FIR filter of length with approximate cutoff frequency we study its DFT : we note that for roughly of the indices and for the other indices. Note that and for a digital filter. Using [link] we find
This fits perfectly with [link] since for a digital filter and, thus, . The approximation becomes better, the sharper the transition band of the filter , i.e., the longer the filter is.
Compare again with [link] for a concrete filter with length , and power .
Notification Switch
Would you like to follow the 'Sampling rate conversion' conversation and receive update notifications?