Sampling Theorem PDF
Sampling Theorem PDF
Objective: cations. To learn and prove the sampling theorem and understand its impli-
We encountered this periodic function when we studied Fourier series. Recall that by its Fourier series representation we can write T (t) = 1 T ejns t
n
where s = 2 T . The frequency fs = s /(2 ) = 1/T is the sampling frequency in samples/sec. Suppose that the sampling frequency is chosen so that fs > 2B , or equivalently, s > 4B . The sampled output is denoted as x(t), where
x(t) = x(t)T (t) Using the F.S. representation we get x(t) = x(t) 1 T ejns t
n
Now lets look at the spectrum of the transformed signal. Using the convolution property, X ( ) = 1 1 X ( ) 2 T 2 ( ns ) =
n
1 T
X ( ns ).
n
Plot the spectrum of the sampled signal with both frequency and f frequency. Observe the following:
The spectrum is periodic, with period 2 , because of the multiple copies of the spectrum. The spectrum is scaled down by a factor of 1/T . Note that in this case there is no overlap between the images of the spectrum. Now consider the eect of reducing the sampling rate to fs < 2B . In this case, the duplicates of the spectrum overlap each other. The overlap of the spectrum is aliasing. This demonstration more-or-less proves the sampling theorem for general signals. Provided that we sample fast enough, the signal spectrum is not distorted by the sampling process. If we dont sample fast enough, there will be distortion. The next question is: given a set of samples, how do we get the signal back? From the spectrum, the answer is to lter the signal with a lowpass lter with cuto c 2B . This cuts out the images and leaves us with the original spectrum. This is a sort of idealized point of view, because it assumes that we are ltering a continuous-time function x(t), which is a sequence of weighted delta functions. In practice, we have numbers x[n] representing the value of the function x[n] = x(nT ) = x(n/fs ). How can we recover the time function from this? Theorem 1 (The sampling theorem) If x(t) is bandlimited to B Hz then it can be recovered from signals taken at a sampling rate fs > 2B . The recovery formula is x(t) =
n
x(nT )g (t nT )
where g (t) =
Show what the formula means: we are interpolating in time between samples using the sinc function. We will prove this theorem. Because we are actually lacking a few theoretical tools, it will take a bit of work. What makes this interesting is we will end up using in a very essential way most of the transform ideas we have talked about. 1. The rst step is to notice that the spectrum of the sampled signal, X ( ) = 1 T X ( ns )
n
is periodic and hence has a Fourier series. The period of the function in frequency is s , and the fundamental frequency is p0 = By the F.S. we can write X ( ) =
n
2 1 = = T. s fs
cn ejnT
2 1 s 2
1 X ( )ejnT d. T
1 2 x(t) T s
= x(nT ),
t=nT
x(nt)ejnT =
n
x(nt)ejnT .
2fs
x(nT )g (t nT ).
We will show that y (t) = x(t) by showing that Y ( ) = X ( ). We can compute the F.T. of y (t) using linearity and the shifting property: Y ( ) =
n
x(nT )T rect
2fs
ejnT = T rect
2fs
x(nT )ejnT
n
Observe that the summation on the right is the same as the F.S. we derived in step 1: Y ( ) = T rect X ( ). 2fs Now substituting in the spectrum of the sampled signal (derived above) Y ( ) = T rect 2fs 1 T X ( ns )
n
= X ( )
since x(t) is bandlimited to fs < < fs or fs /2 < f < fs /2. Notice that the reconstruction lter is based upon a sinc function, whose transform is a rect function: we are really just doing the ltering implied by our initial intuition. In practice, of course, we want to sample at a frequency higher than just twice the bandwidth to allow room for lter rollo.
Some applications
Why digital? 1. Recoverable signals
2. Flexibility 3. Channel coding theorem. Source coding theorem. 4. Encryption Time division multiplexing Pulse code modulation
Spectral sampling
Just as we can sample a band-limited signal in the time domain and reconstruct it, provided that we sample often enough, so can we also sample a time-limited signal in the frequency domain and exactly reconstruct the spectrum, provided that we take the samples close enough together in the spectrum. There is thus a dual to the sampling theorem which applies to sampling the spectrum. We can also use this kind of thinking to nd the F.T. of a periodic signal. Let f (t) be a causal signal time-limited to seconds. Its F.T. is
F ( ) =
0
f (t)ejt dt.
Now create a periodic extension of f (t) by repeating it every T0 seconds. fT0 (t) =
n
f (t nT0 ).
Since fT0 (t) is periodic, it has a F.S. and we can write fT0 (t) =
n
Dn ejn0 t
f (t)ejn0 t =
0
1 T0
f (t)ejn0 t .
0
Comparing the F.S. coecient with the F.T. above, it follows that Dn = 1 F (n0 ). T0
An implication of this is that we can nd the F.S. coecients by rst taking the F.T. of one period of our signal, then sampling and scaling the F.T. In terms of reconstructing the signal spectrum from its samples, we can see that as long as T0 > , the cycles of f (t) do not overlap. We can then (at least in concept) reconstruct the entire spectrum of F ( ) from its samples. Conceptually, we timelimit the function, then take its F.T. The sampling condition can be expressed as follows: T0 > 1 F0 < So we can reconstruct from samples of the spectrum, provided that the samples are close enough by comparison with the time-limit of the function.