Presentation is loading. Please wait.

Presentation is loading. Please wait.

SAMPLING & ALIASING. OVERVIEW Periodic sampling, the process of representing a continuous signal with a sequence of discrete data values, pervades the.

Similar presentations


Presentation on theme: "SAMPLING & ALIASING. OVERVIEW Periodic sampling, the process of representing a continuous signal with a sequence of discrete data values, pervades the."— Presentation transcript:

1 SAMPLING & ALIASING

2 OVERVIEW Periodic sampling, the process of representing a continuous signal with a sequence of discrete data values, pervades the field of digital signal processing. In practice, sampling is performed by applying a continuous signal to an analog- to-digital (A/D) converter whose output is a series of digital values.

3 OVERVIEW (cont.) With regard to sampling, the primary concern is how fast must the given continuous signal be sampled in order to preserve its information content.

4 ALIASING There is a frequency-domain ambiguity associated with the discrete-time signal samples that is absent in the continuous signal world. eg. Suppose you are given the following sequence of values, x(0) = 0 x(1) = 0.866 x(2) = 0.866 x(3)= 0 x(4) = -0.866 x(5) = -0.866 x(6) = 0

5 and were told that they represented instantaneous values of a sinewave. Next you were told to draw that sinewave. You would be able to draw a sinewave that passes through the points representing the original sequence.

6 However, someone else might draw another sine wave with a different frequency through the same points.

7 As an example, consider two sine waves that differ only in frequency. One has a frequency of 500 Hz, and the frequency of the subsequent sine wave is 8500 Hz.

8 Consider the continuous time domain sinusoidal signal This a garden variety sinewave with a frequency f o Hz. If we sample at a rate of f s samples per second, where T s = 1/f s. If we start sampling at t = 0, we will obtain samples at 0 t s, 1 t s, 2 t s, and so on.

9 The final equation defines the value of the nth sample of our x(n) sequence to be equal to the original sine wave at the time instant nT s.

10 Because two values of a sine wave are identical if they’re separated by an integer multiple of 2  radians, i.e., where m is any integer. Now

11 If we let m be an integer multiple of n, m=kn, we can replace the m/n ratio with k so that The f o and (f o + kf s ) factors are equal. It means that an x(n) sequence of digital sample values, representing a sine wave of f o Hz, also exactly represents sine waves at other frequencies, namely f o + kf s. This is one of the most important relationships in the field of DSP.

12 When sampling at a rate of f s samples/sec., if k is any positive or negative integer, we cannot distinguish between the sampled values of a sine wave of f o Hz and a sine wave of (f o + kf s ) Hz.

13 IMPULSE FUNCTION The impulse function is represented by  (t). Its domain is all t, and the range contains only two values, 0 and . The range is zero for all values of time except when t = 0, when the time function has the value of infinity (i.e. blows up).

14 The graphical representation of the delta function is given below  (t) t

15 To obtain some insight into the  function, we can consider the function  (t) as shown below  (t) t  The function has a height of 1/  and a width of , resulting in an area of 1.

16 The  function is obtained from  (t) by the limiting process The width of function goes to zero as its amplitude goes to infinity in a manner that causes the area under the curve to remain constant at unity.  (t) t

17 As  decreases in value, the function becomes narrower and higher. In the limit, as   t  (t). The integral of  (t) is unity for any value of . It follows that the integral of the  function is also unity provided that the origin is included in the limits of integration. Otherwise, it is zero.

18 If we multiply the  function by a constant, k, and then integrate the product over all time, we get Multiplication of  (t) by a constant is equivalent to choosing  (t) with a height of k/ . This results in an area equal to k.

19 TIME-SHIFTED FUNCTIONS If the argument of the  function is replaced with t- , we see that the impulse still occurs when the argument takes on the value of zero (i.e., when t-  = 0 or t =  ).

20 TIME-SIFTING PROPERTY If we integrate the product of the  function and any time function, we can observe the sifting property of  function. where  is arbitrarily small.

21 The first and last integrals on the right-hand side of the previous equation are zero, since the limits of integration do not include the origin. If f(t) is reasonably well behaved at the origin (i.e., no jumps or discontinuities), as  f(t) can be approximate by f(0). Since f(0) is a constant, it can be taken outside the integral.

22 So all the values of f(t) are sifted out except the value at the origin, f(0).

23 If we use the time-shifted  function, we obtain

24 Note that Since expressions equal to the same expression are equal to each other, and

25 Because, we can interchange t with  to obtain

26 Evaluate the following integrals. a. c. b. d.

27 In many DSP textbooks you will find sampling described as a multiplication of the input analog waveform with a periodic delta, Dirac, or impulse function. In an idealized system our sampling waveform would consist of a train of impulse functions spaced evenly by a period T s. We can describe our idealized sampling function, z(t), as the sum of all the individual impulse functions:

28 If we multiply these by our analog input signal, f(t), we obtain a train of pulses whose amplitudes are equal to the amplitude of f(t) at that moment in time. Mathematically, the output sampled waveform, y(t), is just the multiplication of z(t) with the input analog signal f(t):

29

30

31

32 Interpolation A digital-to-analog converter (DAC) converts digital signals to continuous (analog) signals. A general formula that describes a broad class of DACs is where p(t) is the characteristic pulse shape of the converter.

33 The equation state that the output signal is produced by adding together many pulses, each shifted in time. That is, at each sample time t n = nT s, a pulse p(t-nT s ) is emitted with an amplitude The simplest pulse shape is a symmetric square pulse:

34 The figure below shows a pulse is Ts = 5ms and a amplitude of 1.

35 The reconstructed waveform for the square pulse is a poor approximation of the original sine wave.

36 Although this a poor approximation, this is a useful model since many physically realizable DACs produce outputs that look exactly like this. Since a constant is a polynomial of zero order, and since the effect of the flat pulse is to hold or replicate each sample for Ts seconds, the use of a flat pulse is called a zero-order hold reconstruction.

37 The triangular pulse is defined as a pulse consisting of the first-order polynomial (straight- line segments:

38

39

40 Oversampling If the original waveform does not vary much over the duration of p(t), then we will also obtain a good construction. Oversampling, i.e., using a sampling rate that is much greater than the Nyquist rate, can ensure this.


Download ppt "SAMPLING & ALIASING. OVERVIEW Periodic sampling, the process of representing a continuous signal with a sequence of discrete data values, pervades the."

Similar presentations


Ads by Google