MM3FC Mathematical Modeling 3 LECTURE 10 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,

Slides:



Advertisements
Similar presentations
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
Advertisements

Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
Lecture 7: Basis Functions & Fourier Series
Engineering Mathematics Class #15 Fourier Series, Integrals, and Transforms (Part 3) Sheng-Fang Huang.
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Review of Frequency Domain
MM3FC Mathematical Modeling 3 LECTURE 3
EECS 20 Chapter 10 Part 11 Fourier Transform In the last several chapters we Viewed periodic functions in terms of frequency components (Fourier series)
MM3FC Mathematical Modeling 3 LECTURE 4 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
MM3FC Mathematical Modeling 3 LECTURE 6 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
MM3FC Mathematical Modeling 3 LECTURE 5 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
MM3FC Mathematical Modeling 3 LECTURE 7 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
MM3FC Mathematical Modeling 3 LECTURE 1
MM3FC Mathematical Modeling 3 LECTURE 2 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
CH#3 Fourier Series and Transform
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
Lecture 16: Introduction to Linear time-invariant filters; response of FIR filters to sinusoidal and exponential inputs: frequency response and system.
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Digital Signals and Systems
Discrete-Time Fourier Series
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Discrete-Time and System (A Review)
DTFT And Fourier Transform
1 7.1 Discrete Fourier Transform (DFT) 7.2 DFT Properties 7.3 Cyclic Convolution 7.4 Linear Convolution via DFT Chapter 7 Discrete Fourier Transform Section.
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
Chapter 2: Discrete time signals and systems
Motivation Music as a combination of sounds at different frequencies
Fourier Series Summary (From Salivahanan et al, 2002)
1 The Fourier Series for Discrete- Time Signals Suppose that we are given a periodic sequence with period N. The Fourier series representation for x[n]
CISE315 SaS, L171/16 Lecture 8: Basis Functions & Fourier Series 3. Basis functions: Concept of basis function. Fourier series representation of time functions.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Digital Signal Processing – Chapter 10
Signal and Systems Prof. H. Sameti Chapter 3: Fourier Series Representation of Periodic Signals Complex Exponentials as Eigenfunctions of LTI Systems Fourier.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Fourier series: Eigenfunction Approach
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
CT1037N Introduction to Communications Signal Representation & Spectral Analysis Er. Saroj Sharan Regmi Lecture 05.
Chapter 5 Finite-Length Discrete Transform
CH#3 Fourier Series and Transform
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
CHAPTER 2 Discrete-Time Signals and Systems in the Time-Domain
ES97H Biomedical Signal Processing
ES97H Biomedical Signal Processing
revision Transfer function. Frequency Response
Digital Signal Processing
Chapter 4 LTI Discrete-Time Systems in the Transform Domain
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 DISCRETE SIGNALS AND SYSTEMS.
DTFT continue (c.f. Shenoi, 2006)  We have introduced DTFT and showed some of its properties. We will investigate them in more detail by showing the associated.
Discrete-time Signals Prof. Siripong Potisuk. Mathematical Representation x[n] represents a DT signal, i.e., a sequence of numbers defined only at integer.
Digital Signal Processing Lecture 6 Frequency Selective Filters
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Chapter 2. Signals and Linear Systems
Analysis of Linear Time Invariant (LTI) Systems
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
In summary If x[n] is a finite-length sequence (n  0 only when |n|
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 14 FFT-Radix-2 Decimation in Frequency And Radix -4 Algorithm University of Khartoum Department.
بسم الله الرحمن الرحيم Lecture (12) Dr. Iman Abuel Maaly The Discrete Fourier Transform Dr. Iman Abuel Maaly University of Khartoum Department of Electrical.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
DSP First, 2/e Lecture 16 DTFT Properties. June 2016 © , JH McClellan & RW Schafer 2 License Info for DSPFirst Slides  This work released under.
DIGITAL SIGNAL PROCESSING ELECTRONICS
Periodic Signals Prof. Brian L. Evans
FFT-based filtering and the
Research Methods in Acoustics Lecture 9: Laplace Transform and z-Transform Jonas Braasch.
Chapter 8 The Discrete Fourier Transform
INTRODUCTION TO THE SHORT-TIME FOURIER TRANSFORM (STFT)
Lec.6:Discrete Fourier Transform and Signal Spectrum
Presentation transcript:

MM3FC Mathematical Modeling 3 LECTURE 10 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri, 8am, Rm Dr. Charles Unsworth, Department of Engineering Science, Rm Tel : ext

This Lecture What are we going to cover & Why ? Spectral Analyser. (Understand the DSP behind a spectrum analyser) Discrete Fourier Transform (DFT). (From understanding the spectrum analyser we will learn a DFT can be represented as a filter bank) Calculating a DFT. Determine the ‘Magnitude spectrum’ of a complicated digitised sequence.

Spectral Analysis The basic idea of spectral analysis is to create a system that will compute the values of the spectral components from the digital sequence of numbers x[n] The general form for representing a real signal x[n] as a sum of complex exponentials is : For the case where N=3, the spectrum would be : 0 w2w2 w3w3 -w 2 -w 3 X0X0 X1*X1* X1X1 X2X2 X2*X2* X3X3 X3*X3* -w 1 w1w1  -- w … (10.1)

However, an equivalent plot could be used to translate the –ve frequencies to their +ve alias frequencies, using : e -jwn = e j2  n e -jwn = e j(2  –jw)n We will find this form of the spectrum useful when we discuss the DFT. 0 w2w2 w3w3 2  -w 2 2  -w 3 X0X0 X1*X1* X1X1 X2X2 X2*X2* X3X3 X3*X3* 2  -w 1 w1w1  22 w

A Spectrum Analyser The job of a “Spectrum Analyser” is to extract the frequency, magnitude and phase of each spectral component in x[n]. The analyser will only have a finite number of electronic channels (N+1) to separate the spectral components into. However, there is an infinite amount of frequencies that could exist in the range 0< w < 2  of the signal x[n]. Thus, we must choose the frequencies of the spectral components that are going to be dedicated to each channel first. So we will have to pick our frequencies ahead of time, independent of the signal. Since there is a finite number of channels (N+1), one obvious is to cover the total 2  frequency range with equally spaced frequencies : w k = 2  k/N Thus, the spectrum is only an approximate representation. … (10.2)

Spectrum Analysis by Filtering Each channel of the analyser must do two jobs : - Isolate the frequency of interest. - Compute the complex amplitude (X k ) for that frequency. Isolating the frequency of interest Is suited to a BPF with a narrow passband. Once x[n] is passed through the BPF we can measure the ouput for its amplitude and phase. Rather than design individual BPF’s for each channel, we shall introduce the frequency-shifting property of the spectrum. (In this way, all channels can share the same filter).

Frequency-Shifting The frequency of a complex exponential can be shifted if it is multiplied by another complex exponential. Let the signal x[n] be multiplied by exp(-jw s n). The entire spectrum of x[n] if shifted in the –ve direction by (w s ). The idea is to shift the desired frequency to the zero frequency position. … (10.3)

Thus, if we wanted to move the frequency (w 1 ) to the zero frequency position. We would multiply x[n] by exp(-jw 1 n). Thus, the power spectrum of x[n] below : Would become the power spectrum of x[n] exp(-jw 1 n). 0 w2w2 w3w3 -w 2 -w 3 X0X0 X1*X1* X1X1 X2X2 X2*X2* X3X3 X3*X3* -w 1 w1w1  -- w 0 w 3 -w 1 -2w 1 -w 2 -w 1 X0X0 X1*X1* X1X1 X2X2 X2*X2* X3X3 X3*X3* -w 1  w -w 3 -w 1 w 2 -w 1

Channel Filters Why have we translated the desired frequency to the w=0 position ? Measurement at w=0 is equivalent to finding the average value of the signal with a lowpass filter. When a lowpass filter extracts the DC component of the shifted spectrum it is actually measuring the complex amplitude of the shifted spectral components in x[n]. A system for doing this must not only measure the average value but null out all other competing sinusoidal components. x[n]x w [n] Linear Lowpass Filter e -jwn y w [n] SHIFTS spectrum By w to the left Places over spectrum Preserves what’s at w=0

Spectrum Analysis of Periodic Signals A spectrum analyser will work perfectly for periodic signals. The same approach can be used for non-periodic signals but will have approximation errors. A periodic signal can be defined by the shifting property : x[n –N] = x[n] Where, N is the period. (i.e if we delay x[n] by N we will get x[n] again) If a complex exponential is periodic with period N, For the last equation to be true, Equating exponents we get : wN = 2  k, Thus any periodic exponential can be expressed as :

Once the period is specified we can create different complex exponential signals by changing the value of (k). However, there are actually only (N) different frequencies because : So k has the range k = 0,1,2, …, N-1 Spectrum of a Periodic Discrete-time Signal If x[n] has period (N). Then its spectrum can contain only complex exponentials with the same period. Hence, the general representation of a periodic discrete-time signal x[n] is : The range is from 0 to (N-1) as there are only N different frequencies. The frequencies are all multiples of a common fundamental frequency w = 2  /N … (10.4)

Now we will change the notation in anticipation for the DFT. We will replace X k by X[ k]/N. Thus, Later on, we will see that this is the inverse DFT. Filtering with a running Sum Earlier, we showed that FIR filters can calculate a ‘running sum’ or ‘running average’. Let’s consider the L-point running sum with the difference equation : As we can see all the co-efficients are equal to one. … (10.5)

Frequency response of a Running sum filter Null Gain = x10 = 50 Normalised frequency  /2  Spectral component of interest Is magnified by the gain of 10. All other components are nulled. Procedure is : Take a typical signal x[n] with power spectrum below Shift desired spectral component to zero position. Put through running sum filter. Only the spectral component at zero position is preserved.

As we can see, the ‘running-sum’ FIR has nulls in its frequency response curve at w= 2  k/L. And this works very well for nulling out a signal if its constituient frequencies are also equally spaced. If x[n] is periodic and Running sum filter length = period of x[n] y[n] is A constant signal Thus, for a periodic signal, each channel is composed of the filter combination below that produces one spectral component. The structure is called a ‘filter bank’. x[n]x k [n] N-point Running Sum Filter e -j(2  k/N)n y k [n]

The Discrete-Fourier Transform (D.F.T.) The previous discussion is a roundabout way to describe the DFT. The ‘Forward DFT’ (X[k])’ or ‘Analysis Equation’ is given below : By substituting in x[n] we can calculate the spectral components X[k] can be found. Similarly, the ‘Inverse DFT’ (x[n]) or ‘Synthesis Equation’ is given below : By subsituting, in the spectral components X[k] we can synthesise the input signal x[n]. … (10.6) … (10.7)

x[n] e -j(0)n x 0 [n] N-point Running Sum Filter y 0 [n] = X[0] e -j(2  /N)n x 1 [n] N-point Running Sum Filter y 1 [n] = X[1] x k [n] N-point Running Sum Filter e -j(2  k/N)n y k [n] = X[k] x N-1 [n] N-point Running Sum Filter e -j(2  (N-1)/N)n y N-1 [n] = X[N-1] The filter bank of the DFT to compute X[k] for k=0,1,2,……,(N-1)

Thus, We will use the DFT formulas for computation. And the ‘filter-bank’ for interpretation and insight. The DFT transforms an n-domain(or time-domain) signal into its frequency-domain representation.

Computing the Forward DFT So how do we go about computing the DFT and determining the Magnitude Spectrum from an input sequence x[n] ? Consider a simple continuous sinusoid with a frequency f = 1Hz x(t) = cos(2  (1)t) Thus, 1 period of the signal will occur in 1 second. And the one sided Magnitude spectrum will give a single peak at 1Hz. Let’s see if the forward DFT can predict this ! Okay let’s sample the signal 8 times in 1 sec, f s = 8Hz and T s =1/8 secs The digitised signal is therefore : x[n] = x(nT s ) = cos(2  nT s ) = cos(2  n(1/8)) = cos((  /4)n) We have 8 samples, N=8 occurring when n = 0,1,2,3, …, (N-1 = 7)

 /4  /23  /4  5  /43  /27  /422 TsTs 1 Using the forward DFT formula we will determine the spectral components

For k=0, For k=1,

1 0 0 The best way to calculate what x[n] is multiplied is to identify the smallest increment that the exponential goes up in. Consider X[1] again : The exponential power is always a multiple of  /4. In general the exponential power is a multiple of 2  /no.samples Next create a unit circle which is split up into these partitions. Then at each of the multiples write in the values the exponent has at these positions. Unit circle in partitions Values of x[n] at each position

For k = 2, We can read off the values from the unit circle to determine what the exponent value is.

For k=3, 1 0 0

 /4  /23  /4  5  /43  /27  /4 22 TsTs 1  /4  /23  /4  5  /43  /27  /4 22 TsTs 1  /4  /2 3  /4  5  /43  /2 7  /4 22 TsTs 1 9  /4 k=1  /4 increments k=2  /2 increments k=3 3  /4 increments So as (k) increases, the sample frequency decreases. Also we are autocorrelating the sequence x[n] with differently sampled versions of itself.

We can write all of this in a matrix notation : Goes up in  /4 ’s Goes up in  /2 ’s Goes up in 3  /4 ’s Goes up in  ’s Goes up in 5  /4 ’s Goes up in 3  /2 ’s Goes up in 7  /4 ’s k increases n increasesx[n] So only need to remember this bit really. Now we can read off the unit circle the values at these frequencies. Power of the exponent (e -j  /4 )

Reflection in the line of 1’s and –1’s 1 0 0

Thus, we get : Hz fsfs f s - f f |X| The actual frequency of the sequence The ‘aliassed’ frequency due to a finite sequence The One-sided Magnitude Spectrum of the Signal

So discounting the aliassed frequency, due to finite data length, we have located the frequency of the sinusoid. This is a special case, as the sinusoid had an integer number of cycles in the sequence. What DFT do we get if a sinusoid had a non-integer number of cycles in the sequence ? Thus, for a non-integer number of cycles in the sequence, ‘ leakage’ at the outputs occurs. However, the main component still has the most power in it k f |X| Integer number of cycles k f |X| Non-integer number of cycles

So endeth the course … ! Good luck in the exams, folks !!!