Example: tourism industry

Sampling and Reconstruction - Ptolemy Project

chapter 11 Sampling and ReconstructionDigital hardware, including computers, take actions in discrete steps. So they can deal with discrete - time signals, but they cannot directly handle the continuous- time signals that are prevalent in thephysical world. This chapter is about the interface between these two worlds, one continuous, theother discrete . A discrete - time signal is constructed bysamplinga continuous- time signal , and acontinuous- time signal isreconstructedbyinterpolatinga discrete - time SamplingA sampler for complex-valued signals is a systemSamplerT:[Reals Complex] [Integers Complex],( )whereTis thesampling interval(it has units of seconds/sample). The system is depicted Thesampling frequencyorsample rateisfs=1/T, in units of samples/second (orsometimes, Hertz), or s=2 /T, in units radians/second. Ify=SamplerT(x)thenyis defined by n Integers,y(n) =x(nT).( ) Sampling a sinusoidLetx:Reals Realsbe the sinusoidal signal t Reals,x(t) =cos(2 f t),( )y: Integers Complexx: Reals ComplexSamplerTFigure 11.

Chapter 11 Sampling and Reconstruction Digital hardware, including computers, take actions in discrete steps. So they can deal with discrete-time signals, but they cannot directly handle the continuous-time signals that are prevalent in the physical world. This chapter is about the interface between these two worlds, one continuous, the other ...

Tags:

  Time, Chapter, Discrete, Signal, Time signals

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Sampling and Reconstruction - Ptolemy Project

1 chapter 11 Sampling and ReconstructionDigital hardware, including computers, take actions in discrete steps. So they can deal with discrete - time signals, but they cannot directly handle the continuous- time signals that are prevalent in thephysical world. This chapter is about the interface between these two worlds, one continuous, theother discrete . A discrete - time signal is constructed bysamplinga continuous- time signal , and acontinuous- time signal isreconstructedbyinterpolatinga discrete - time SamplingA sampler for complex-valued signals is a systemSamplerT:[Reals Complex] [Integers Complex],( )whereTis thesampling interval(it has units of seconds/sample). The system is depicted Thesampling frequencyorsample rateisfs=1/T, in units of samples/second (orsometimes, Hertz), or s=2 /T, in units radians/second. Ify=SamplerT(x)thenyis defined by n Integers,y(n) =x(nT).( ) Sampling a sinusoidLetx:Reals Realsbe the sinusoidal signal t Reals,x(t) =cos(2 f t),( )y: Integers Complexx: Reals ComplexSamplerTFigure 11.

2 Sampling AND RECONSTRUCTIONB asics: UnitsRecall that frequency can be given with any of various units. The units of thefin ( ) and ( ) are Hertz, or cycles/second. In ( ), it is sensible to givethe frequency as =2 f, which has units of radians/second. The constant2 hasunits of radians/cycle, so the units work out. Moreover, the time argumentthasunits of seconds, so the argument to the cosine function,2 f t, has units of radians,as the discrete time case ( ), it is sensible to give the frequency as2 f T, whichhas units of radians/sample. The Sampling intervalThas units of seconds/sample,so again the units work out. Moreover, the integernhas units of samples, so againthe argument to the cosine function,2 f nT, has units of radians, as general, when discussing continuous- time signals and their sampled discrete - time signals, it is important to be careful and consistent in the units used, or con-siderable confusion can result. Many texts talk aboutnormalized frequencywhendiscussing discrete - time signals, by which they simply mean frequency in units ofradians/sample.

3 This isnormalizedin the sense that it does not depend on thesampling the frequency of the sinewave in Hertz. Lety=SamplerT(x). Then n Integers,y(n) =cos(2 f nT).( )Although this looks similar to the continuous- time sinusoid, there is a fundamental difference. Be-cause the indexnis discrete , it turns out that the frequencyfis indistinguishable from frequencyf+fswhen looking at the discrete - time signal . This phenomenon is AliasingConsider another sinusoidal signalugiven by t Reals,u(t) =cos(2 (f+N fs)t),whereNis some integer andfs=1/T. IfN6=0, then this signal is clearly different fromxin ( ).Letw=SamplerT(u).Then for alln Integers,w(n) =cos(2 (f+N fs)nT) =cos(2 f nT+2 Nn) =cos(2 f nT) =y(n),becauseNnis an integer. Thus, even thoughu6=x,SamplerT(u) =SamplerT(x). Thus, after beingsampled, the signalsxanduare indistinguishable. This phenomenon is calledaliasing, presumablybecause it implies that any discrete - time sinusoidal signal has many continuous- time identities (its identity is presumably its frequency).

4 SAMPLING375 Example :A typical sample rate for voice signals isfs=8000samples/second,so the Sampling interval isT= A continuous- time sinusoid withfrequency 440 Hz, when sampled at this rate, is indistinguishable from a continuous- time sinusoid with frequency 8,440 Hz, when sampled at this same :Compact discs are created by Sampling audio signals atfs=44,100Hz, so the Sampling interval is aboutT= sec/sample. A continuous- time si-nusoid with frequency 440 Hz, when sampled at this rate, is indistinguishable from acontinuous- time sinusoid with frequency 44,540 Hz, when sampled at this same frequency domain analysis of the previous chapters relied heavily on complex exponentialsignals. Recall that a cosine can be given as a sum of two complex exponentials, using Euler srelation,cos(2 f t) = (ei2 f t+e i2 f t).One of the complex exponentials is at frequencyf, an the other is at frequency f. Complexexponential exhibit the same aliasing behavior that we have illustrated for :Reals Complexbe t Reals,x(t) =ei2 f twherefis the frequency in Hertz.

5 Lety=SamplerT(x). Then for allninIntegers,y(n) =ei2 f nTConsider another complex exponential signalu,u(t) =ei2 (f+N fs)twhereNis some integer. Letw=SamplerT(u).Then for alln Integers,w(n) =ei2 (f+N fs)nT=ei2 f nTei2 N fsnT=ei2 f nT=y(n),becauseei2 N fsnT=1. Thus, as with sinusoids, when we sample a complex exponential signal withfrequencyfat sample ratefs, it is indistinguishable from one at frequencyf+fs(orf+N fsforany integerN).There is considerably more to this story. Mathematically, aliasing relates to the periodicity of thefrequency domain representation (the DTFT) of a discrete - time signal . We will also see that the ef-fects of aliasing on real-valued signals (like the cosine, but unlike the complex exponential) dependstrongly on the conjugate symmetry of the DTFT as 11. Sampling AND RECONSTRUCTION8 kHz8 kHzContinuous-timesignal4 kHz4 kHzFrequency of the continuous- time sinusoidPerceivedpitchfrequencysweepFigu re :As the frequency of a continuous signal increases beyond theNyquist frequency, the perceived pitch starts to Perceived pitch experimentConsider the following a discrete - time audio signal with an 8,000 sam-ples/second sample rate according to the formula ( ).

6 Let the frequencyfbegin at 0 Hz andsweep upwards through 4 kHz to (at least) 8 kHz. Use the audio output of a computer to listen tothe resulting sound. The result is illustrated in As the frequency of the continuous-timesinusoid rises, so does the perceived pitch, until the frequency reaches 4 kHz. At that point, theperceived pitch begins to fall rather than rise, even as the frequency of the continuous- time sinusoidcontinues to rise. It will fall until the frequency reaches 8 kHz, at which point no sound is heard atall (the perceived pitch is 0 Hz). Then the perceived pitch begins to rise the perceived pitch rises from 0 after the frequencyfrises above 8000 Hz is not surprising. Wehave already determined that in a discrete - time signal , a frequency offis indistinguishable from afrequencyf+8000, assuming the sample rate is 8,000 samples/second. But why does the perceivedpitch drop whenfrises above 4 kHz?The frequency 4 kHz,fs/2, is called theNyquist frequency, after Harry Nyquist, an engineer atBell Labs who, in the 1920s and 1930s, laid much of the groundwork for digital transmission ofinformation.

7 The Nyquist frequency turns out to be a key threshold in the relationship betweendiscrete- time and continuous- time signals, more important even than the Sampling frequency. In-tuitively, this is because if we sample a sinusoid with a frequency below the Nyquist frequency(below half the Sampling frequency), then we take at least two samples per cycle of the sinusoid. Itshould be intuitively appealing that taking at least two samples per cycle of a sinusoid has some key1 This experiment can be performed at eal/eecs20/week13 Similar exper-iments are carried out in 10 3 1 (seconds)Figure :A sinusoid at kHz and samples taken at 8 The two sample minimum allows the samples to capture the oscillatory nature of thesinusoid. Fewer than two samples would not do this. However, what happens when fewer than twosamples are taken per cycle is not necessarily intuitive. It turns out that the sinusoid masqueradesas one of another the situation when the frequencyfof a continuous- time sinusoid is 7,560 Hz.

8 Msec of the continuous- time waveform, together with samples taken at 8 kHz. Noticethat the samples trace out another sinusoid. We can determine the frequency of that sinusoid withthe help of , which suggests that the perceived pitch will be8000 7560=440Hz (theslope of the perceived pitch line is 1in this region). Indeed, if we listen to the sampled sinusoid,it will be an that a cosine can be given as a sum of complex exponentials with frequencies that are nega-tives of one another. Recall further that a complex exponential with frequencyfis indistinguishablefrom one with frequencyf+N fs, for any integerN. A variant of leverages this rep-resentation is given in , as we sweep the frequency of the continuous- time signal from 0 to 8 kHz, we movefrom left to right in the figure. The sinusoid consists not only of the rising frequency shown by thedotted line in , but also of a corresponding falling (negative) frequency as shown in figure378 chapter 11. Sampling AND RECONSTRUCTION8 kHz8 kHzindistinguishablefrequencies4 kHz4 kHzperceivedpitchfrequencysweepreconstru ctedaudio0 kHz-4 kHzFigure :As the frequency of a continuous signal increases beyond theNyquist frequency, the perceived pitch starts to drop because the frequencyof the reconstructed continuous- time audio signal stays in the range fs/2 Moreover, these two frequencies are indistinguishable, after Sampling , from frequencies thatare 8 kHz higher or lower, also shown by dotted lines in the discrete - time signal is converted to a continuous- time audio signal , the hardware perform-ing this conversion can choose any matching pair of positive and negative frequencies.

9 By far themost common choice is to select the matching pair with lowest frequency, shown in solid lines behind dotted lines. These result in a sinusoid with frequency between 0 and theNyquist frequency,fs/2. This is why the perceived pitch falls after sweeping pastfs/2= that the frequency-domain representation ( the DTFT) of a discrete - time signal is periodicwith period2 radians/sample. That is, ifXis a DTFT, then Reals,X( ) =X( +2 ).In radians per second, it is periodic with period2 fs. In Hertz, it is periodic with periodfs, thesampling frequency. Thus, in , the dotted lines represent this periodicity. This periodicityis another way of stating that frequencies separated byfsare Avoiding aliasing that even though a discrete - time signal has ambiguous frequency content, it ispossible to construct a uniquely defined continuous- time signal from the discrete - time waveform bychoosing the one unique frequency for each component that is closest to zero. This will always resultin a reconstructed signal that contains only frequencies between zero and the Nyquist , this suggests that when Sampling a continuous- time signal , if that signal containsonly frequencies below the Nyquist frequency, then this Reconstruction strategy will perfectly re-cover the signal .

10 This is an intuitive statement of theNyquist-Shannon Sampling a continuous- time signal contains only frequencies below the Nyquist frequencyfs/2, then it canbe perfectly reconstructed from samples taken at Sampling frequencyfs. This suggests that prior tosampling, it is reasonable to filter a signal to remove components with frequencies abovefs/2. Afilter that realizes this is called ananti-aliasing :In the telephone network, speech is sampled at 8000 samples persecond before being digitized. Prior to this Sampling , the speech signal is lowpassfiltered to remove frequency components above 4000 Hz. This lowpass filtered speechcan then be perfectly reconstructed at the far end of the telephone connection, whichreceives a stream of samples at 8000 sample per probing this further, let us examine in more detail what we mean by ReconstructionConsider a system that constructs a continuous- time signalxfrom a discrete - time signaly,DiscToContT:DiscSignals 11.


Related search queries