MM3FC Mathematical Modeling 3 LECTURE 3

Slides:



Advertisements
Similar presentations
Discrete-Time Linear Time-Invariant Systems Sections
Advertisements

Chapter 8: The Discrete Fourier Transform
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,
Lecture 4: Linear Systems and Convolution
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,
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 2 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
Signals and Systems Lecture #5
Systems: Definition Filter
Finite Impuse Response Filters. Filters A filter is a system that processes a signal in some desired fashion. –A continuous-time signal or continuous.
Analysis of Discrete Linear Time Invariant Systems
Digital Signals and Systems
Discrete-Time and System (A Review)
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.
1 Signals & Systems Spring 2009 Week 3 Instructor: Mariam Shafqat UET Taxila.
Time Domain Representation of Linear Time Invariant (LTI).
DISCRETE-TIME SIGNALS and SYSTEMS
Copyright © 2001, S. K. Mitra Digital Filter Structures The convolution sum description of an LTI discrete-time system be used, can in principle, to implement.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 313 Linear Systems and Signals Spring 2013 Continuous-Time.
Discrete-time Systems Prof. Siripong Potisuk. Input-output Description A DT system transforms DT inputs into DT outputs.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Signal and Systems Prof. H. Sameti Chapter #2: 1) Representation of DT signals in terms of shifted unit samples System properties and examples 2) Convolution.
BYST CPE200 - W2003: LTI System 79 CPE200 Signals and Systems Chapter 2: Linear Time-Invariant Systems.
Linear Time-Invariant Systems
COSC 3451: Signals and Systems Instructor: Dr. Amir Asif
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Department of Electrical and Computer Engineering Brian M. McCarthy Department of Electrical & Computer Engineering Villanova University ECE8231 Digital.
Linear Time-Invariant Systems Quote of the Day The longer mathematics lives the more abstract – and therefore, possibly also the more practical – it becomes.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 DISCRETE SIGNALS AND SYSTEMS.
Dr. Engr. Sami ur Rahman Assistant Professor Department of Computer Science University of Malakand Visualization in Medicine Lecture: Convolution.
Signals and Systems Lecture 19: FIR Filters. 2 Today's lecture −System Properties:  Linearity  Time-invariance −How to convolve the signals −LTI Systems.
Signals and Systems Analysis NET 351 Instructor: Dr. Amer El-Khairy د. عامر الخيري.
Signals and Systems Lecture #6 EE3010_Lecture6Al-Dhaifallah_Term3321.
ELEC692 VLSI Signal Processing Architecture Lecture 12 Numerical Strength Reduction.
3/18/20161 Linear Time Invariant Systems Definitions A linear system may be defined as one which obeys the Principle of Superposition, which may be stated.
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.
Description and Analysis of Systems Chapter 3. 03/06/06M. J. Roberts - All Rights Reserved2 Systems Systems have inputs and outputs Systems accept excitation.
Analysis of Linear Time Invariant (LTI) Systems
1 Computing the output response of LTI Systems. By breaking or decomposing and representing the input signal to the LTI system into terms of a linear combination.
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.
Review of DSP.
Time Domain Representations of Linear Time-Invariant Systems
1 Chapter 8 The Discrete Fourier Transform (cont.)
Discrete Time Signal Processing Chu-Song Chen (陳祝嵩) Institute of Information Science Academia Sinica 中央研究院 資訊科學研究所.
Review of DSP.
Digital Signal Processing
Properties of LTI Systems
CEN352 Dr. Nassim Ammour King Saud University
Discrete-time Systems
Linear Time Invariant Systems
Lecture 12 Linearity & Time-Invariance Convolution
Description and Analysis of Systems
لجنة الهندسة الكهربائية
Lecture 4: Discrete-Time Systems
UNIT V Linear Time Invariant Discrete-Time Systems
Signal and Systems Chapter 2: LTI Systems
Signal Processing First
Zhongguo Liu Biomedical Engineering
Lecture 22 IIR Filters: Feedback and H(z)
Signals and Systems Lecture 18: FIR Filters.
Lecture 4: Linear Systems and Convolution
Review of DSP.
Lecture 3 Discrete time systems
Presentation transcript:

MM3FC Mathematical Modeling 3 LECTURE 3 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri, 8am, Rm.4.503 Dr. Charles Unsworth, Department of Engineering Science, Rm. 4.611 Tel : 373-7599 ext. 82461 Email : c.unsworth@auckland.ac.nz

This Lecture What are we going to cover & Why ? The Convolution Sum. (A new form of operator that we use in signal processing) Block Diagrams. (Allow for a pictorial representation of a filter) Linear Time-Invariant (LTI) Systems. (Measure 2 properties of a system – Linearity - Time-Invariance) (- if a system is LTI then it has special features) Cascaded LTI Systems. (Connect filters together)

Convolution & FIR filter The ‘FIR general difference equation’, y[n], and its ‘impulse response’, h[n], is given by : Now the filter co-efficients of the FIR are identical to those used in the FIR’s impulse response. Thus, we can replace (bk) by the impulse response h[ k] to obtain. When the input and ouput of an FIR filter is expressed in terms of the input and the impulse reponse. We say the output y[n] is obtained by ‘convolving’ the sequences x[n] and h[n]. This is called a ‘finite convolution sum’. Let k be –ve for a non-causal. … (3.1)

Computing the Output of a Convolution A way of doing long hand convolution, so to speak, is as follows. Example 1 : Convolve the input x[n] = { 2, 4, 6, 4, 2 } with the impulse response h[n] = { 3, -1, 2, 1 }. First of all we write each of the signals out on separate lines. Then we mutiply the x[n] row by each of the h[n] rows in turn. And shift the result to the right, to line up with its h[n] position. n 0 1 2 3 4 5 6 7 x[n] 2 4 6 4 2 h[n] 3 -1 2 1 h[0]x[n-0] 6 12 18 12 6 h[1]x[n-1] -2 -4 -6 -4 -2 h[2]x[n-2] 4 8 12 8 4 h[3]x[n-3] 2 4 6 4 2 y[n] 6 10 18 16 18 12 8 2 Shift one along

Example 2 : Compute the convolution sum for a length 4 filter with coefficients h[n] = { 1, -2, 2, 1 } for the signal x[n] n 0 1 2 3 4 5 6 7 x[n] 2 4 6 4 2 h[n] Convolution in MATLAB : The conv( ) function, in Matlab, performs convolution of finite signals. xn = [ 2 4 6 4 2 ]; hn = transpose([ 1 –2 2 -1 ]); % Note h[n] must be transposed first yn = conv(hn,xn); % Produces the same output as in the example above.

Implementation of FIR filters Let’s recall our ‘general definition of the FIR’ again from 2.3 : We can see in order to compute the output of the ‘FIR’ we need the following : A means for obtaining delayed versions of the input sequence. - To perform the x[n-k] bit. A means for ‘multiplying’ delayed-input signals by the filter co-efficients. - - To perform the (bkx[n-k]) bit. A means of ‘adding’ scaled sequence values. - To perform the () bit. We will find it useful to represent the above operations as ‘block diagrams’. Such representations will lead us to new insights into the properties of system and alternative ways to implement a system.

The Basic Building Blocks x[n] y[n]  The ‘Multiplier’. The first elementary operator multiplies a signal x[n] by a constant (). y[n] = x[n] The multiplier is an FIR filter with M=0, b0=  and impulse response h[n] = [n]. The ‘Adder’. The second elementary system takes two inputs and adds the same time intervals together. It is not an FIR filter because it has more than one input. However, it is a crucial building block in FIR filters And the ‘Unit-delay’ operator. Performs a delay of one unit of time. x1[n] x2[n] y[n] x[n] y[n] Unit delay

y[n] = 1/3( x[n] + x[n-1] + x[n-2] ) Block Diagrams Let’s express our 3-point running average causal filter in a block diagram : y[n] = 1/3( x[n] + x[n-1] + x[n-2] ) The signal x[n] comes in from the left and splits off into two parts. The 1st part, of x[n], is multiplied by b0 = 1/3 to form b0x[n]. The 2nd part, of x[n], is delayed to form x[n-1]. x[n-1] then splits into two parts, just like x[n] did. The 1st part, of x[n-1], is then multiplied by b1 = 1/3 to form b1x[n-1]. b1x[n] is then added to b0x[n]. And so the system continues to produce y[n]. b0 = 1/3 y[n] x[n] x[n-1] Unit delay x[n-2] b1 = 1/3 b2 = 1/3

y[n] = 3x[n-1] + 2x[n] + 6x[n+1] Example 3 : Compute the difference equation for this system. Example 4 : Draw a block diagram for the difference equation : y[n] = 3x[n-1] + 2x[n] + 6x[n+1] 3 y[n] x[n] x[n-1] Unit delay x[n-2] 2 -1 x[n-3] -2

Linear Time-Invariant (L.T.I.) Systems A greater understanding of a system can be achieved by examining 2 of its properties. The systems ‘linearity’ and its ‘time-invariance’. If the system is both ‘linear’ and ‘time-invariant’ then we say it is a ‘linear time-invariant’ (LTI) system. Time-Invariance ~ When the input is delayed by (n0) the output is delayed by the same amount. x[n – n0]  y[n - n0] … (3.2) x[n] x[n- n0] Unit delay y[n– n0] System = Equilvalent if ‘Time – Invariant’ x[n] y[n] y[n– n0] System Unit delay

= Linearity ~ This is the principle of superposition property. It states when we have two signals where, x1[n]  y1[n], x2[n]  y2[n]. x1[n] + x2[n]  y1[n] + y2[n], where  &  are constants. … (3.3) y1[n] y2[n] x1[n] x2[n] System    y1[n]  y2[n] y1[n] + y2[n] = Equilvalent if ‘Linear’ x1[n] x2[n] System    x1[n]  x2[n] x1[n] + x2[n] y1[n] + y2[n]

The best way to answer this is by using a table format. Example 5 : Take the finite-input sequences x1[n] = { 0, 2, 4, 6, 4, 2, 0 } and x2[n] = { 0, 2, 3, 2, 0, 0 } and determine whether the ‘ Order 2, causal FIR filter system with bk = { 3 2 1 } is a ‘linear time invariant’ (LTI) system. The best way to answer this is by using a table format. First Time-Invariance (only need to use one signal) The ‘Order 2, causal FIR’ is defined as : n = 0 1 2 3 4 5 6 x1[n] 0 2 4 6 4 2 0 Delay 0 0 2 4 6 4 2 System 0 0 6 16 28 28 20 System 0 6 16 28 28 20 8 Delay 0 0 6 16 28 28 20 = Time- Invariant

 Second, linearity (need to use both signals). Choose some arbitary scaling factors  & . Let’s choose  = 2 &  = -1. n = 0 1 2 3 4 5 6 x1[n] 0 2 4 6 4 2 0 System 0 6 16 28 28 20 8 times( = 2) 0 12 32 56 56 40 16 … 1) x2[n] 0 2 3 2 0 0 0 System 0 6 13 14 7 2 0 times( = -1) 0 -6 -13 -14 -7 -2 0 … 2) Add 1)&2) 0 6 19 42 49 38 16 times( = 2) 0 4 8 12 8 4 0 System 0 12 32 56 56 40 16 … 3) times( = -1) 0 -2 -3 -2 0 0 0 System 0 -6 -13 -14 -7 -2 0 … 4) Add 3)&4) 0 6 19 42 49 38 16 =  L i n e a r

Properties of LTI Systems Thus the ‘ Order 2, Causal FIR filter’ is a LTI system. In fact, ‘all FIR filters are LTI systems’. The properties of convolution are the properties of LTI systems. By understanding these properties we can cascade LTI systems together and work out their output much easier. The Convolution Operator From now on we will denote the convolution between two things by a ‘convolution operator’ (*). And we will include infinite limits for the most general cases where the signals are not of finite duration. Convolution is both ‘commutative’ and ‘associative’. Thus, y[n] = x[n] * h[n] = h[n] * x[n] ‘Commutative Property’ y[n] = x1[n] * (x2[n] * x3[n]) = (x1[n] * x2[n]) * x3[n] ‘Associative Property’ … (3.4) … (3.5)

Similary, convolution with an Impulse gives : Writing things down in this way help us think of convolution in an operational way. Similary, convolution with an Impulse gives : x[n] * [n – n0] = x[n – n0] This is an important result. Stating, to convolve a sequence with an impulse at n = n0. Simply shifts the whole sequence to have an origin of (n0). … (3.6)

Cascaded LTI Systems In a ‘cascaded’ system the ouput of the first system is the input to the second system. Property : Two LTI systems in cascade can be implemented in any order. (This is a direct consequence of the commutative & associative properties of convolution that define LTI systems). x[n] x[n]*h1[n] LTI 1 h1[n] LTI 2 h2[n] ( x[n] * h1[n] ) * h2[n] x[n]*h2[n] ( x[n] * h2[n] ) * h1[n] = x[n] * ( h2[n] * h1[n] ) = x[n] * ( h1[n] * h2[n] ) = ( x[n] * h1[n] ) * h2[n]

h[n] = h1[n] * h2[n] = h2[n] * h1[n] Now let’s look at the impulse response for the same cascaded system. Thus, ‘impulse responses’ from the 2 or more LTI cascaded systems can be written as the ‘impulse response’, h[n], from a ‘single equivalent LTI system’ is : h[n] = h1[n] * h2[n] = h2[n] * h1[n] This is a very powerfull result. Let’s illustrate it. [n] h1[n] LTI 1 LTI 2 h2[n] h1[n] * h2[n] h2[n] * h1[n] = ( h1[n] * h2[n] ) … (3.7)

Example 6 : Determine the impulse response from the 2 cascaded systems defined as : h1[n] = 1 0  n  3 and h2[n] = 1 0  n  2 0 otherwise 0 otherwise From the results, we know that the final system will have impulse response h[n] = h1[n] * h2[n] We can determine this by a convolution table of the impulse responses. n 0 1 2 3 4 5 h1[n] 1 1 1 1 0 0 h2[n] 1 1 1 0 0 0 h2[0]h1[n-0] 1 1 1 1 0 0 h2[1]h1[n-1] 1 1 1 1 0 h2[2]h1[n-2] 1 1 1 1 h[n] 1 2 3 3 2 1 { { h[n] = [n] + 2 [n-1] + 3 [n-2] + 3 [n-3] + 2 [n-4] + [n-5]

Therefore, the equivalent impulse response is : Therefore, the system can be implemented by the single difference equation. Or by the pair of difference equations. where, ck = { 1, 2, 3, 3, 2, 1 } where, ck = { 1, 2, 3, 3, 2, 1 } where, ak = { 1, 1, 1 } where, bk = { 1, 1 } This illustrates an important point. The pair require only 5 additions as the coefficients are unity. The single system requires 5 additions and 4 multiplications by coefficients that are not equal to unity. Thus, the existence of alternative filter implementations is significant.

Example 7 : Sketch out the 2 equivalent systems from Example 6.