<< Chapter < Page Chapter >> Page >

Nyquist Shannon sampling theorem :

Assume that the continuous-time signal x ( t ) is bandlimited , meaning there is some B > 0 such that X ( f ) = F x ( t ) ( f ) = 0 whenever | f | > B .

If this signal x is sampled uniformly at a sufficient rate, namely at f e > 2 B , then x ( t ) 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

f e > 2 B

then, the Fourier transform of the original signal can be recovered by cutting off the periodic copies:

X ( f ) = X e ( f ) · Rect ( f 2 f c )

where f c has to be chosen such that B < f c < f e - B (see [link] right). (The first copy to be cut off lies over the interval [ f e - B , f e + B ] .) A possible choice is f c = f e / 2 .

In the time domain, this corresponds to convolving the sampled signal with the ideal low-pass filter ( sinc ). 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:

x ( t ) = x e ( t ) * 2 f c sinc ( 2 f c t ) = τ n = - x ( n τ ) δ ( t - n τ ) * 2 f c sinc ( 2 f c t ) = ( τ 2 f c ) n = - x ( n τ ) sinc ( 2 f c ( t - n τ ) )

Note that the pre-factor 2 τ f c = 2 f c / f e takes into account the mismatch between sampling rate f e and the cut-off frequency f c . When choosing f c = f e / 2 , 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 f e > > 2 B , then a filter different from the ideal sinc-filter can be used. In fact, the reconstruction x ( t ) = x e ( t ) * b ( t ) is valid for any low-pass filter b (not only for b ( t ) = 2 f c sinc ( 2 f c t ) ) as long as we assure that the spectrum of the filter b is equal to 1 for all frequencies in [ - B , B ] and zero for frequencies larger f e - B . (Note that we do not specify the phase). Usually, one designs a filter such that

  1. The filter's spectrum equals 1 in an interval [ - f p , f p ] called passing band . It must contain the signal's frequency-band [ - B , B ] .
  2. The filter attenuates all frequencies beyond f e - f p .
  3. The transition band of the filter is [ f p , f e - f p ] . This range of frequencies can be chosen aslarge as [ B , f e - B ] by setting f p = B and as short as desired, but always containing the point f e / 2 by setting f p smaller but as close to f e / 2 as desired.
The Dirac Comb modulated by a signal.
The Dirac Comb modulated by a signal.
The spectrum of the sampled signal
The spectrum of the sampled signal (note the spectral copies) and a practical reconstruction filter: It's passing band contains the band [ - B , B ] of the signal and it attenuates all spectral copies.
digital filter in black
The low-pass FIR filter of length 61 and ideal cutoff at f c = 1 / 8 = 0 . 125 as produced by Matlab. The filter values are in red. For comparison in blue the corresponding samples of the ideal filter 2 f c sinc ( 2 f c t ) at t = - 30 , . . , - 1 , 0 , 1 , . . 30 .
idfti squared of filter, idfti squared of since for comparison
DFT of the signals on the left. The actual transition band of the filter is [ 0 . 1 , 0 . 15 ] . Note that the sinc-samples provide a filter with sharper cutoff but slightly lower quality in the pass-band since it requires infinitely many samples. The power computed from either side (recall [link] ) is P b = 0 . 003 ' 891 = 0 . 237 ' 4 / 61 2 f c / length.

All this assures that we keep the entire spectral information of x ( t ) contained in [ - B , B ] , 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 f c = 1 / 8 = 0 . 125 . Its transition band is roughly [ 0 . 10 , 0 . 15 ] . As is common in digital filtering, thesampling frequency is assumed to be f e = 1 .

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 f c is | | 2 f c sinc ( 2 f c t ) | | 2 = 2 · f c which follows easily from the power spectrum being 1 on an interval of length 2 · f c and zero else, using Plancherel. To compute the power of a digital low pass FIR filter b = ( b 0 , ... , b K - 1 ) of length K with approximate cutoff frequency f c we study its DFT b ˆ : we note that b ˆ k = 1 for roughly 2 f c K of the indices k and b ˆ k = 0 for the other indices. Note that f e = 1 and 0 < f c < 1 / 2 for a digital filter. Using [link] we find

P b = 1 K 2 k = 0 K - 1 | b ˆ k | 2 1 K 2 2 f c K = 2 f c / K = 2 f c / L .

This fits perfectly with [link] since for a digital filter f e = 1 and, thus, K = L . The approximation becomes better, the sharper the transition band of the filter b , i.e., the longer the filter is.

Compare again with [link] for a concrete filter with length K = 61 , f c = 1 / 8 = 0 . 125 and power P b = 0 . 003 ' 891 .

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Sampling rate conversion. OpenStax CNX. Sep 05, 2013 Download for free at http://legacy.cnx.org/content/col11529/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Sampling rate conversion' conversation and receive update notifications?

Ask