EEO 401 Digital Signal Processing Prof. Mark Fowler

Similar documents
Absolute Specifications: A typical absolute specification of a lowpass filter is shown in figure 1 where:

3.1 Random variables

On a quantity that is analogous to potential and a theorem that relates to it

Quantum Mechanics II

Circuit Synthesizable Guaranteed Passive Modeling for Multiport Structures

Transverse Wakefield in a Dielectric Tube with Frequency Dependent Dielectric Constant

Question 1: The dipole

Numerical Integration

ME 3600 Control Systems Frequency Domain Analysis

you of a spring. The potential energy for a spring is given by the parabola U( x)

Goodness-of-fit for composite hypotheses.

MAGNETIC FIELD AROUND TWO SEPARATED MAGNETIZING COILS

4/18/2005. Statistical Learning Theory

Scattering in Three Dimensions

Equilibrium Reconstruction with Grad-Shafranov Equation

Topic 4a Introduction to Root Finding & Bracketing Methods

A NEW VARIABLE STIFFNESS SPRING USING A PRESTRESSED MECHANISM

Contact impedance of grounded and capacitive electrodes

Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

EECE 301 Signals & Systems Prof. Mark Fowler

Physics 121 Hour Exam #5 Solution

Physics 221 Lecture 41 Nonlinear Absorption and Refraction

School of Electrical and Computer Engineering, Cornell University. ECE 303: Electromagnetic Fields and Waves. Fall 2007

Method for Approximating Irrational Numbers

A New Approach to General Relativity

Internet Appendix for A Bayesian Approach to Real Options: The Case of Distinguishing Between Temporary and Permanent Shocks

Complex Eigenvalues. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

TUTORIAL 9. Static magnetic field

Problems with Mannheim s conformal gravity program

Multi-Objective Optimization Algorithms for Finite Element Model Updating

LINEAR AND NONLINEAR ANALYSES OF A WIND-TUNNEL BALANCE

Magnetometer Calibration Algorithm Based on Analytic Geometry Transform Yongjian Yang, Xiaolong Xiao1,Wu Liao

HW Solutions # MIT - Prof. Please study example 12.5 "from the earth to the moon". 2GmA v esc

RECTIFYING THE CIRCUMFERENCE WITH GEOGEBRA

ASTR415: Problem Set #6

PROBLEM SET #1 SOLUTIONS by Robert A. DiStasio Jr.

Rigid Body Dynamics 2. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2018

Qualifying Examination Electricity and Magnetism Solutions January 12, 2006

Geometry of the homogeneous and isotropic spaces

Homework # 3 Solution Key

Stress, Cauchy s equation and the Navier-Stokes equations

1.2 Differential cross section

working pages for Paul Richards class notes; do not copy or circulate without permission from PGR 2004/11/3 10:50

Revision of Lecture Eight

Physics 181. Assignment 4

LC transfer of energy between the driving source and the circuit will be a maximum.

Chapter 3 Optical Systems with Annular Pupils

Conjugate Gradient Methods. Michael Bader. Summer term 2012

MU+CU+KU=F MU+CU+KU=0

ADVANCED SUBSIDIARY (AS) General Certificate of Education Mathematics Assessment Unit F1. assessing. Module FP1: Further Pure Mathematics 1

Review: Electrostatics and Magnetostatics

18.06 Problem Set 4 Solution

CSCE 478/878 Lecture 4: Experimental Design and Analysis. Stephen Scott. 3 Building a tree on the training set Introduction. Outline.

EKT 345 MICROWAVE ENGINEERING CHAPTER 2: PLANAR TRANSMISSION LINES

Adiabatic evolution of the constants of motion in resonance (I)

Rydberg-Rydberg Interactions

Filter Design Problem

Berkeley Math Circle AIME Preparation March 5, 2013

22.615, MHD Theory of Fusion Systems Prof. Freidberg Lecture 4: Toroidal Equilibrium and Radial Pressure Balance

Math 2263 Solutions for Spring 2003 Final Exam

A STUDY OF HAMMING CODES AS ERROR CORRECTING CODES

The Strain Compatibility Equations in Polar Coordinates RAWB, Last Update 27/12/07

Chapter 4. Sampling of Continuous-Time Signals

EQUATIONS OF MOTION LUCA GUIDO MOLINARI

An Exact Solution of Navier Stokes Equation

Physics 2B Chapter 22 Notes - Magnetic Field Spring 2018

Lecture 8 - Gauss s Law

Course Outline. ECE 178: Image Processing REVIEW. Relationship between pixels. Connected components. Distance Measures. Linear systems-review

Generalized functions and statistical problems of. orbital mechanics

Model and Controller Order Reduction for Infinite Dimensional Systems

Scientific Computing II

Euclidean Figures and Solids without Incircles or Inspheres

Reading Assignment. Problem Description for Homework #9. Read Chapters 29 and 30.

A dual-reciprocity boundary element method for axisymmetric thermoelastodynamic deformations in functionally graded solids

Power efficiency and optimum load formulas on RF rectifiers featuring flow-angle equations

Chapter 13 Gravitation

Analytical time-optimal trajectories for an omni-directional vehicle

Lecture 23. Representation of the Dirac delta function in other coordinate systems

KOEBE DOMAINS FOR THE CLASSES OF FUNCTIONS WITH RANGES INCLUDED IN GIVEN SETS

EE 521: Instrumentation and Measurements

Analytical Solutions for Confined Aquifers with non constant Pumping using Computer Algebra

Fall 2016 Semester METR 3113 Atmospheric Dynamics I: Introduction to Atmospheric Kinematics and Dynamics

Hopefully Helpful Hints for Gauss s Law

Σk=1. g r 3/2 z. 2 3-z. g 3 ( 3/2 ) g r 2. = 1 r = 0. () z = ( a ) + Σ. c n () a = ( a) 3-z -a. 3-z. z - + Σ. z 3, 5, 7, z ! = !

Physics 505 Homework No. 9 Solutions S9-1

Chapter 5 Linear Equations: Basic Theory and Practice

Advanced Problems of Lateral- Directional Dynamics!

Problems with Mannheim s conformal gravity program

A generalization of the Bernstein polynomials

6 Matrix Concentration Bounds

1 Spherical multipole moments

SOME GENERAL NUMERICAL RADIUS INEQUALITIES FOR THE OFF-DIAGONAL PARTS OF 2 2 OPERATOR MATRICES

Section 8.2 Polar Coordinates

c n ψ n (r)e ient/ h (2) where E n = 1 mc 2 α 2 Z 2 ψ(r) = c n ψ n (r) = c n = ψn(r)ψ(r)d 3 x e 2r/a0 1 πa e 3r/a0 r 2 dr c 1 2 = 2 9 /3 6 = 0.

Macro Theory B. The Permanent Income Hypothesis

Physics 161 Fall 2011 Extra Credit 2 Investigating Black Holes - Solutions The Following is Worth 50 Points!!!

Physics 2A Chapter 10 - Moment of Inertia Fall 2018

Lecture 7 Discrete Systems

1D2G - Numerical solution of the neutron diffusion equation

Solution to HW 3, Ma 1a Fall 2016

Transcription:

EEO 41 Digital Signal Pocessing Pof. Mak Fowle Note Set #31 Linea Phase FIR Design Optimum Equiipple (Paks-McClellan) Reading: Sect. 1.2.4 1.2.6 of Poakis & Manolakis 1/2

Motivation The window method and the fequency sampling method have a majo dawback: Can t pecisely contol ω p & ω s and δ p & δ s Requie iteative tweaking to get desied specs The optimal equiipple method allows easy numeical design that can meet specs on band edges and band ipples with essentially the lowest ode FIR filte! Define H ( ω) H d ( ),{ bn [ ]} ω Amplitude of desied filte fequency esponse Amplitude of designed filte fequency esponse Coefficients of design Weight can emphasize cetain band Define Weighted Eo: E{ bn [ ]}( ω) = W( ω) Hd( ω) H,{ bn [ ]}( ω) Design to satisfy: min max E{ bn [ ]}( ω) ove { bn [ ]} ω PB SB Passbands & Stopbands Minimize Lagest Eo 2/2

min max W( ω) Hd( ω) H,{ b[ n]} ( ω) ove { bn [ ]} ω PB SB δs δp, ω passband W ( ω) = 1, ω stopband Minimize Lagest Eo Hee 3/2

Design Basis This appoach was poposed and solved by Paks & McLellan in 1972 thee cleve math ticks wee used to develop a design algoithm 1. Find a single common fom fo all fou linea phase cases Enables a single algoithm that woks fo all fou cases 2. Exploit a theoem fom Chebyshev appoximation theoy Altenation Theoem : gives an easy to apply necessay and sufficient condition fo optimal Chebyshev appoximation Specifies how many extemal eo fequencies thee must be and that the eo altenates sign ove these fequencies 3. Exploit an iteative algoithm fom Chebyshev appoximation theoy Remez Exchange Algoithm : given the cuent guess of the extemal fequencies it updates to bette ones conveges to solution. We ll discuss tick #1 hee because it povides the FIR designe insight into chaacteistics impotant to the designe. The othe two we do not discuss they ae details only needed if you ae implementing the design algoithm (which is available in MATLAB). 4/2

Common Fom fo Fou Linea Phase FIR Cases Symmety \ Length M Odd M Even Symmetic Case #1 Case #2 Antisymmetic Case #3 Case #4 Case #1: Symmetic Impulse Response & Lengh M Odd hn [ ] = hm [ 1 n] Fo this case the book shows (sect 1.2.1) that ( M 3) 2 ( 2 ) M 1 [ ] ω( ) H( ω) = h( M 1) 2 + 2 hn [ ]cos n Let k = (M 1)/2 n and define n= [ ] = [ ] h ( M 1) 2, k ak [ ] = 2 h ( M 1) 2 k, k = 1, 2,, ( M 1) 2 ( M 1) 2 ( ω ) H( ω) = ak [ ]cos k 5/2

Case #2: Symmetic Impulse Response & Lengh M Even hn [ ] = hm [ 1 n] Fo this case the book shows (sect 1.2.1) that ( M 1) 2 n= M 1 ( ω( 2 )) H( ω) = 2 hn [ ]cos n Let k = M /2 n and define [ ] [] b[1] 1 Define b = 2 M bk [ ] = 2h M 2 k, 1, 2,, ( M 1) 2 2 1 ( ω ) H( ω) = bk [ ]cos ( k 1 2 bk [ ] = 2 bk [ ] bk [ 1], 2, 3,, ( M 2) 2 b [( M 2) 1] = 2 bm [ 2] ( M ) 2 1 ( ) ( ) H( ω) = cos ω 2 bk [ ]cos ωk 6/2

Case #3: Anti-Symmetic Impulse Response & Lengh M Odd hn [ ] = hm [ 1 n] Fo this case the book shows (sect 1.2.1) that ( M 3) 2 n= M 1 ( ω( 2 )) H( ω) = 2 hn [ ]sin n Let k = (M 1)/2 n and define [ ] ck [ ] = 2 h( M 1) 2 k, 1, 2,, ( M 1) 2 ( M 1) 2 1 ( ω ) H( ω) = ck [ ]sin k ( M 3) 2 ( ) ( ) H( ω) = sin ω ck [ ]cos ωk See Eq. (1.2.57) in textbook 7/2

Case #4: Anti-Symmetic Impulse Response & Lengh M Even hn [ ] = hm [ 1 n] Fo this case the book shows (sect 1.2.1) that ( M 2) 1 n= M 1 ( ω( 2 )) H( ω) = 2 hn [ ]sin n Let k = M /2 n and define [ ] M 2 1 dk [ ] = 2hM2 k, 1, 2,, M2 ( ω 1 2 ) H( ω) = dk [ ]sin ( k ) ( M 2) 1 ( ) ( ) H( ω) = sin ω 2 dk [ ]cos ωk See Eq. (1.2.62) in textbook 8/2

Compae all the foms: Case #1 Case #2 Case #3 Case #4 ( M 1) 2 ( M ) 2 1 ( ω ) H( ω) = 1 ak [ ]cos k H( ω) = cos ω 2 bk [ ]cos ωk ( ) ( ) ( M 3) 2 ( ) ( ) H( ω) = sin ω ck [ ]cos ωk ( M 2) 1 H( ω) = sin ω 2 dk [ ]cos ωk ( ) ( ) H ( ω) = Q( ω) P( ω) Common Fom! L P( ω) = α[ k]cos ωk ( ) Q( ω) 1, Case #1 cos( ω 2), Case #2 = sin( ω), Case #3 sin( ω 2), Case #4 9/2

Now evisit the Eo Equation: E{ bn [ ]}( ω) = W( ω) Hd( ω) H,{ bn [ ]}( ω) And plug common fom into the Eo Equation: E{ α[ n]} ( ω) = W( ω) Hd( ω) Q( ω) P{ α[ n]} ( ω) H d( ω) = W( ω) Q( ω) P{ α[ n]} ( ω) Q( ω) Since Q(ω) does not depend on the filte coefficients: E ˆ ˆ { α[ n]} ( ω) = W( ω) Hd( ω) P{ α[ n]} ( ω) Contains Common Q(ω) based Fom! on specific case Common Fom! 1/2

% Lowpass Filte Design Specifications: % Passband cutoff fequency =.3π ad/sample % Stopband cutoff fequency =.31π ad/sample % At least 6 db of stopband attenuation % No moe than 1 db passband ipple p=1; s=6; % specify passband ipple & stopband attenuation in db f_spec=[.3.31]; % specify passband and stopband edges in nomalized DT feq AA=[1 ]; %%% specfies that you want a lowpass filte dev=[(1^(p/2)-1)/(1^(p/2)+1) 1^(-s/2)]; % pam. needed by design outine Fs=2; % Fake value fo Fs so ou design is done in tems of nomalized DT feq [N,fo,ao,w]=fipmod(f_spec,AA,dev,Fs); % estimates filte ode and gives othe pams needed to un fipm b=fipm(n,fo,ao,w); % Computes the designed filte coefficients in vecto b The esulting value fo the ode fo this design is 385!! 11/2

-2 fipm design Ode = 385-4 H(Ω) (db) -6-8 -1-12 fi2 design Ode = 385-14 H(Ω) (db) 5-5 -1-15 -2-25 -3-35 -16.1.2.3.4.5.6.7.8.9 1 Nomalized DT Fequency Ω/π.24.25.26.27.28.29.3.31.32 Nomalized DT Fequency Ω/π fipm design has 1 db of ipple. Could educe spec but would need longe filte. E.g., fo p =.1 we d get Ode = 544 fipm can design outstanding filtes but fo the most stingent design specs they can be VERY long! 12/2

Let s look at pole-zeo plot fo a simple fipm-designed filte H(Ω) (db) <H(Ω) adians -2-4 -6-8.1.2.3.4.5.6.7.8.9 1 Nomalized DT Fequency Ω/π -1-2 -3.1.2.3.4.5.6.7.8.9 1 Nomalized DT Fequency Ω/π >> zplane(b,1) Linea Phase all designs by fipm have this vey desiable tait!!! 1 Imaginay Pat.5 -.5-1 28 In Stopband: zeos placed ight on UC In Passband: zeos line the UC -1 -.5.5 1 1.5 2 2.5 3 3.5 4 Real Pat 13/2

Design of Equiipple FIR Diffeentiatos A paticula filte that is sometimes needed is a filte that computes samples of the deivative of the undelying CT signal whose samples you have. Desied! x(t) ADC x[n] FIR Diffeentiato y[n] DAC yt () = dx() t dt Fom popeties of Laplace Tansfom fo CT signals we know that a deivative in the time domain coesponds to multiplication by s in the s-domain L F H () s = s H ( ω) So tying to mimic this with a DT filte we have = jω H f ( ω) = jω, π ω π (2π-peiodic) d CT ad/sec Desied 14/2

To exploe this compute its impulse esponse 1 π f jωn hd[ n] = Hd( ω) e dω 2π π 1 = 2π π π jωe jωn cos( π n) Antisymmetic: h = d [ n] = h d [n] n Thus use Case #3 (M odd) o Case #4 (M even) linea phase FIR filtes dω hn [ ] = hm [ 1 n] Both cases satisfy H () = as needed fo the diffeentiato Howeve, fo M odd we have H (π) =, which is not allowable fo a tue diffeentiato. But in pactice we often only need to meet the desied esponse ove a limited ange: H f d jω, ωp ω ωp ( ω) = (2π-peiodic), ω ωp M Odd o Even OK 15/2

Design of Equiipple Diffeentiatos via fipm b = fipm(n,f,a,w,'ftype') specify a filte type, whee 'ftype' is 'diffeentiato', fo type III and type IV filtes, using a special weighting technique Fo nonzeo amplitude bands, it weights the eo by a facto of 1/f so that the eo at low fequencies is much smalle than at high fequencies. Fo FIR diffeentiatos, which have an amplitude chaacteistic popotional to fequency, these filtes minimize the maximum elative eo (the maximum of the atio of the eo to the desied amplitude). 16/2

Example 1.2.5 in Text M = 6 passband edge stopband edge 17/2

Design of Equiipple FIR Hilbet Tansfomes As we saw in the section on Equivalent Lowpass Signals a Hilbet Tansfom is often used in geneating the esult. So tying to mimic this with a DT filte we have f j, < ω π H d ( ω) = (2π-peiodic) j, π < ω < Desied To exploe this compute its impulse esponse 1 π f jωn hd[ n] = Hd( ω) e dω 2π π 1 π jωn jωn = je dω je dω 2π π π n = π n, n = 2 2 sin ( / 2), n Antisymmetic: h d [ n] = h d [n] 18/2

Both antisymmetic Cases have H() = and M Odd gives H(π) = which ae toublesome fo the all-pass natue of the HT. So we usually spec lowe and uppe cutoff fequencies fo the desied amplitude esponse: H f ( ω) = 1, < ω ω ω < π d l u Design of Equiipple Diffeentiatos via fipm b = fipm(n,f,a,w,'ftype') specify a filte type, whee 'ftype' is 'hilbet', fo linea-phase filtes with odd symmety (type III and type IV) The output coefficients in b obey the elation b(k) = b(n+2 k), k = 1,...,n+1. This class of filtes includes the Hilbet tansfome, which has a desied amplitude of 1 acoss the entie band. Fo example, h = fipm(3,[.1.9],[1 1],'hilbet'); designs an appoximate FIR Hilbet tansfome of length 31. 19/2

Example 1.2.6 in Textbook M = 31 lowe edge uppe edge 2/2