Filter design. 1 Design considerations: a framework. 1 C ı p 1 ı p. ı s. f s. f p

Relaterede dokumenter
Basic statistics for experimental medical researchers

Linear Programming ١ C H A P T E R 2

Besvarelser til Lineær Algebra Reeksamen Februar 2017

Black Jack --- Review. Spring 2012

Project Step 7. Behavioral modeling of a dual ported register set. 1/8/ L11 Project Step 5 Copyright Joanne DeGroat, ECE, OSU 1

Curve Modeling B-Spline Curves. Dr. S.M. Malaek. Assistant: M. Younesi

Generalized Probit Model in Design of Dose Finding Experiments. Yuehui Wu Valerii V. Fedorov RSU, GlaxoSmithKline, US

Vina Nguyen HSSP July 13, 2008

Exercise 6.14 Linearly independent vectors are also affinely independent.

CHAPTER 8: USING OBJECTS

Skriftlig Eksamen Kombinatorik, Sandsynlighed og Randomiserede Algoritmer (DM528)

Privat-, statslig- eller regional institution m.v. Andet Added Bekaempelsesudfoerende: string No Label: Bekæmpelsesudførende

Vores mange brugere på musskema.dk er rigtig gode til at komme med kvalificerede ønsker og behov.

Special VFR. - ved flyvning til mindre flyveplads uden tårnkontrol som ligger indenfor en kontrolzone

Sign variation, the Grassmannian, and total positivity

Skriftlig Eksamen Beregnelighed (DM517)

Resource types R 1 1, R 2 2,..., R m CPU cycles, memory space, files, I/O devices Each resource type R i has W i instances.

Unitel EDI MT940 June Based on: SWIFT Standards - Category 9 MT940 Customer Statement Message (January 2004)

UNISONIC TECHNOLOGIES CO.,

SKRIFTLIG EKSAMEN I NUMERISK DYNAMIK Bygge- og Anlægskonstruktion, 7. semester Torsdag den 19. juni 2003 kl Alle hjælpemidler er tilladt

ECE 551: Digital System * Design & Synthesis Lecture Set 5

Skriftlig Eksamen Diskret matematik med anvendelser (DM72)

Eksamen i Signalbehandling og matematik

On the complexity of drawing trees nicely: corrigendum

IBM Network Station Manager. esuite 1.5 / NSM Integration. IBM Network Computer Division. tdc - 02/08/99 lotusnsm.prz Page 1

Constant Terminal Voltage. Industry Workshop 1 st November 2013

DoodleBUGS (Hands-on)

PARALLELIZATION OF ATTILA SIMULATOR WITH OPENMP MIGUEL ÁNGEL MARTÍNEZ DEL AMOR MINIPROJECT OF TDT24 NTNU

The X Factor. Målgruppe. Læringsmål. Introduktion til læreren klasse & ungdomsuddannelser Engelskundervisningen

Statistik for MPH: 7

The GAssist Pittsburgh Learning Classifier System. Dr. J. Bacardit, N. Krasnogor G53BIO - Bioinformatics

MSE PRESENTATION 2. Presented by Srunokshi.Kaniyur.Prema. Neelakantan Major Professor Dr. Torben Amtoft

what is this all about? Introduction three-phase diode bridge rectifier input voltages input voltages, waveforms normalization of voltages voltages?

Aktivering af Survey funktionalitet

Skriftlig Eksamen Beregnelighed (DM517)

User Manual for LTC IGNOU

ATEX direktivet. Vedligeholdelse af ATEX certifikater mv. Steen Christensen

RoE timestamp and presentation time in past

Molio specifications, development and challenges. ICIS DA 2019 Portland, Kim Streuli, Molio,

Statistik for MPH: oktober Attributable risk, bestemmelse af stikprøvestørrelse (Silva: , )

Reexam questions in Statistics and Evidence-based medicine, august sem. Medis/Medicin, Modul 2.4.

Bilag 8. TDC technical requirements for approval of splitterfilters and inline filters intended for shared access (ADSL or VDSL over POTS).

Den nye Eurocode EC Geotenikerdagen Morten S. Rasmussen

Adaptive Algorithms for Blind Separation of Dependent Sources. George V. Moustakides INRIA, Sigma 2

Brug sømbrættet til at lave sjove figurer. Lav fx: Få de andre til at gætte, hvad du har lavet. Use the nail board to make funny shapes.

Strings and Sets: set complement, union, intersection, etc. set concatenation AB, power of set A n, A, A +

Hvor er mine runde hjørner?

Probabilistic properties of modular addition. Victoria Vysotskaya

Help / Hjælp

TDC 4 Indoor voltage transformers

Engelsk. Niveau D. De Merkantile Erhvervsuddannelser September Casebaseret eksamen. og

Skriftlig Eksamen Automatteori og Beregnelighed (DM17)

Satisability of Boolean Formulas

Userguide. NN Markedsdata. for. Microsoft Dynamics CRM v. 1.0

Portal Registration. Check Junk Mail for activation . 1 Click the hyperlink to take you back to the portal to confirm your registration

Bilag. Resume. Side 1 af 12

Slot diffusers. Slot diffusers LD-17, LD-18

Mandara. PebbleCreek. Tradition Series. 1,884 sq. ft robson.com. Exterior Design A. Exterior Design B.

Fejlbeskeder i SMDB. Business Rules Fejlbesked Kommentar. Validate Business Rules. Request- ValidateRequestRegist ration (Rules :1)

SOFTWARE PROCESSES. Dorte, Ida, Janne, Nikolaj, Alexander og Erla

Engelsk. Niveau C. De Merkantile Erhvervsuddannelser September Casebaseret eksamen. og

Particle-based T-Spline Level Set Evolution for 3D Object Reconstruction with Range and Volume Constraints

Wander TDEV Measurements for Inexpensive Oscillator

The complete construction for copying a segment, AB, is shown above. Describe each stage of the process.

Angle Ini/al side Terminal side Vertex Standard posi/on Posi/ve angles Nega/ve angles. Quadrantal angle

Richter 2013 Presentation Mentor: Professor Evans Philosophy Department Taylor Henderson May 31, 2013

Basic Design Flow. Logic Design Logic synthesis Logic optimization Technology mapping Physical design. Floorplanning Placement Fabrication

Appendix 1: Interview guide Maria og Kristian Lundgaard-Karlshøj, Ausumgaard

United Nations Secretariat Procurement Division

Gusset Plate Connections in Tension

Analyseinstitut for Forskning

DET KONGELIGE BIBLIOTEK NATIONALBIBLIOTEK OG KØBENHAVNS UNIVERSITETS- BIBLIOTEK. Index

Mandara. PebbleCreek. Tradition Series. 1,884 sq. ft robson.com. Exterior Design A. Exterior Design B.

Business Rules Fejlbesked Kommentar

Fejlbeskeder i Stofmisbrugsdatabasen (SMDB)

Forslag til implementering af ResearcherID og ORCID på SCIENCE

Statistical information form the Danish EPC database - use for the building stock model in Denmark

Observation Processes:

StarWars-videointro. Start din video på den nørdede måde! Version: August 2012

CS 4390/5387 SOFTWARE V&V LECTURE 5 BLACK-BOX TESTING - 2

BILAG 3: UDKAST TIL FREKVENSTILLADELSE

X M Y. What is mediation? Mediation analysis an introduction. Definition

Agenda. The need to embrace our complex health care system and learning to do so. Christian von Plessen Contributors to healthcare services in Denmark

Popular Sorting Algorithms CHAPTER 7: SORTING & SEARCHING. Popular Sorting Algorithms. Selection Sort 4/23/2013

MultiProgrammer Manual

Measuring the Impact of Bicycle Marketing Messages. Thomas Krag Mobility Advice Trafikdage i Aalborg,

DM559/DM545 Linear and integer programming

Developing a tool for searching and learning. - the potential of an enriched end user thesaurus

DANSK INSTALLATIONSVEJLEDNING VLMT500 ADVARSEL!

Det bedste sted - en undersøgelse med cirkler

applies equally to HRT and tibolone this should be made clear by replacing HRT with HRT or tibolone in the tibolone SmPC.

Chapter 6. Hydrogen Atom. 6.1 Schrödinger Equation. The Hamiltonian for a hydrogen atom is. Recall that. 1 r 2 sin 2 θ + 1. and.

Applications. Computational Linguistics: Jordan Boyd-Graber University of Maryland RL FOR MACHINE TRANSLATION. Slides adapted from Phillip Koehn

Learnings from the implementation of Epic

VEDLIGEHOLDELSE AF SENGE

University of Copenhagen Faculty of Science Written Exam - 3. April Algebra 3

Financing and procurement models for light rails in a new financial landscape

Accessing the ALCOTEST Instrument Upload Data - NJSP Public Website page -

TM4 Central Station. User Manual / brugervejledning K2070-EU. Tel Fax

Shooting tethered med Canon EOS-D i Capture One Pro. Shooting tethered i Capture One Pro 6.4 & 7.0 på MAC OS-X & 10.8

Transkript:

Filter design Design considerations: a framework H(f) C ı p ı p ı s f p f s f Passband Transition band The design of a digital filter involves five steps: Stopband Specification: The characteristics of the filter often have to be specified in the frequency domain. For example, for frequency selective filters (lowpass, highpass, bandpass, etc.) the specification usually involves tolerance limits as shown above. Coefficient calculation: Approximation methods have to be used to calculate the values hœk for a FIR implementation, or a k, b k for an IIR implementation. Equivalently, this involves finding a filter which has H.z/ satisfying the requirements. Realisation: This involves converting H.z/ into a suitable filter structure. Block or flow diagrams are often used to depict filter structures, and show the computational procedure for implementing the digital filter.

Analysis of finite wordlength effects: In practice one should check that the quantisation used in the implementation does not degrade the performance of the filter to a point where it is unusable. Implementation: The filter is implemented in software or hardware. The criteria for selecting the implementation method involve issues such as real-time performance, complexity, processing requirements, and availability of equipment. Finite impulse response (FIR) filter design A FIR filter is characterised by the equations yœn D H.z/ D kd hœkxœn kd hœkz k : The following are useful properties of FIR filters: They are always stable the system function contains no poles. This is particularly useful for adaptive filters. They can have an exactly linear phase response. The result is no frequency dispersion, which is good for pulse and data transmission. Finite length register effects are simpler to analyse and of less consequence than for IIR filters. They are very simple to implement, and all DSP processors have architectures that are suited to FIR filtering. For large N (many filter taps), the FFT can be used to improve performance. k

Of these, the linear phase property is probably the most important. A filter is said to have a generalised linear phase response if its frequency response can be expressed in the form H.e j! / D A.e j! /e j!cjˇ where and ˇ are constants, and A.e j! / is a real function of!. If this is the case, then If A is positive, then the phase is ^H.e j! / D ˇ!: If A is negative, then ^H.e j! / D C ˇ!: In either case, the phase is a linear function of!. It is common to restrict the filter to having a real-valued impulse response hœn, since this greatly simplifies the computational complexity in the implementation of the filter. A FIR system has linear phase if the impulse response satisfies either the even symmetric condition or the odd symmetric condition hœn D hœn n; hœn D hœn n: The system has different characteristics depending on whether N is even or odd. Furthermore, it can be shown that all linear phase filters must satisfy one of these conditions. Thus there are exactly four types of linear phase filters. 3

Consider for example the case of an odd number of samples in hœn, and even symmetry. The frequency response for N D 7 is H.e j! / D 6X hœne j!n nd D hœ C hœe j! C hœe j! C hœ3e j 3! C hœ4e j 4! C hœ5e j 5! C hœ6e j 6! D e j 3!.hŒe j 3! C hœe j! C hœe j! C hœ3 C hœ4e j! C hœ5e j! C hœ6e j 3! /: The specified symmetry property means that hœ D hœ6, hœ D hœ5, and hœ D hœ4, so H.e j! / D e j 3!.hŒ.e j 3! C e j 3! / C hœ.e j! C e j! / C hœ.e j! C e j! / C hœ3/ D e j 3!.hŒ cos.3!/ C hœ cos.!/ C hœ cos.!// D e j 3! 3X aœn cos.!n/; nd where aœ D hœ3, and aœn D hœ3 n for n D ; ; 3. The resulting filter clearly has a linear phase response for real hœn. It is quite simple to show that in general for odd values of N the frequency response is.n /= X H.e j! / D e j!.n /= nd aœn cos.!n/; for a set of real-valued coefficients aœ; : : : ; aœ.n /=. As different values for aœn are selected, different linear-phase filters are obtained. 4

The cases of N odd and hœn antisymmetric are similar to that presented, and the frequency responses are summarised in the following table: Symmetry N H.e j! / Type.N /= X Even Odd e j!.n /= N= X Even Even e j!.n /= nd nd.n /= X Odd Odd e j Œ!.N /= = N= X Odd Even e j Œ!.N /= = aœn cos.!n/ bœn cos.!.n =// nd nd aœn sin.!n/ 3 bœn sin.!.n =// 4 Recall that even symmetry implies hœn D hœn n and odd symmetry hœn D hœn n. Examples of filters satisfying each of these symmetry conditions are: 5

h [n] h [n] h [n] h [n] 4 3 3 4 5 6 3 4 5 6 3 4 5 6 3 4 5 6 n The center of symmetry is indicated by the dotted line. The process of linear-phase filter design involves choosing the aœn values to obtain a filter with a desired frequency response. This is not always possible, however the frequency response for a type II filter, for example, has the property that it is always zero for! D, and is therefore not appropriate for a highpass filter. Similarly, filters of type 3 and 4 introduce a 9 ı phase shift, and have a frequency response that is always zero at! D which makes them unsuitable for as lowpass filters. Additionally, the type 3 response is always zero at! D, making it unsuitable as a highpass filter. The type I filter is the most versatile of the four. Linear phase filters can be thought of in a different way. Recall that a linear phase characteristic simply corresponds to a time shift or delay. Consider now a real FIR filter with an impulse response that satisfies the even symmetry condition hœn D hœ n: 6

hœn H.e j! / 5 5 6 4 4 Recall from the properties of the Fourier transform this filter has a real-valued frequency response A.e j! /. Delaying this impulse response by.n /= results in a causal filter with frequency response This filter therefore has linear phase. hœn ^H.e j! / jh.e j! /j H.e j! / D A.e j! /e j!.n /= : n 4 6 8 5 n 7

. Window method for FIR filter design Assume that the desired filter response H d.e j! / is known. Using the inverse Fourier transform we can determine h d Œn, the desired unit sample response. In the window method, a FIR filter is obtained by multiplying a window wœn with h d Œn to obtain a finite duration hœn of length N. This is required since h d Œn will in general be an infinite duration sequence, and the corresponding filter will therefore not be realisable. If h d Œn is even or odd symmetric and wœn is even symmetric, then h d ŒnwŒn is a linear phase filter. Two important design criteria are the length and shape of the window wœn. To see how these factors influence the design, consider the multiplication operation in the frequency domain: since hœn D h d ŒnwŒn, H.e j! / D H d.e j! / W.e j! /: The following plot demonstrates the convolution operation. In each case the dotted line indicates the desired response H d.e j! /. W.e j.! / /! θ 3 H.e j! / 3 From this, note that The mainlobe width of W.e j! / affects the transition width of H.e j! /. Increasing the length N of hœn reduces the mainlobe width and hence the 8

transition width of the overall response. The sidelobes of W.e j! / affect the passband and stopband tolerance of H.e j! /. This can be controlled by changing the shape of the window. Changing N does not affect the sidelobe behaviour. Some commonly used windows for filter design are Rectangular: 8 < n N wœn D : otherwise Bartlett (triangular): wœn D 8 ˆ< n=n n N= n=n N= < n N ˆ: otherwise Hanning: 8 < :5 :5 cos.n=n / n N wœn D : otherwise Hamming: wœn D 8 < :54 :46 cos.n=n / n N : otherwise Kaiser: 8 < I Œˇ. Œ.n /= / = n N wœn D : otherwise Examples of five of these windows are shown below: 9

wœn wœn.5 N/ N.5 n Rectangular Triangular Hanning Hamming Blackman N/ N All windows trade off a reduction in sidelobe level against an increase in mainlobe width. This is demonstrated below in a plot of the frequency response of each of the windows: n log jw.e j! /j log jw.e j! /j 5 5 Rectangular Triangular Hanning Hamming Blackman Some important window characteristics are compared in the following table:

Window Peak sidelobe Mainlobe Peak approximation amplitude (db) transition width error (db) Rectangular 3 4=.N C / Bartlett 5 8=N 5 Hanning 3 8=N 44 Hamming 4 8=N 53 The Kaiser window has a number of parameters that can be used to explicitly tune the characteristics. In practice, the window shape is chosen first based on passband and stopband tolerance requirements. The window size is then determined based on transition width requirements. To determine h d Œn from H d.e j! / one can sample H d.e j! / closely and use a large inverse DFT.. Frequency sampling method for FIR filter design In this design method, the desired frequency response H d.e j! / is sampled at equally-spaced points, and the result is inverse discrete Fourier transformed. Specifically, letting HŒk D H d.e j! /ˇˇ!D k N ; k D ; : : : ; N ; the unit sample response of the filter is hœn D IDFT.HŒk/, so hœn D N kd HŒke j nk=n : The resulting filter will have a frequency response that is exactly the same as the original response at the sampling instants. Note that it is also necessary to specify the phase of the desired response H d.e j! /, and it is usually chosen to be a linear function of frequency to ensure a linear phase filter. Additionally, if

a filter with real-valued coefficients is required, then additional constraints have to be enforced. The actual frequency response H.e j! / of the filter hœn still has to be determined. The z-transform of the impulse response is " # N H.z/ D hœnz n X D HŒke j nk=n z n N nd D N D N kd kd nd HŒk nd kd e j nk=n z n z N HŒk e j k=n z Evaluating on the unit circle z D e j! gives the frequency response H.e j! / D e j!n N kd : HŒk e j k=n e j! : This expression can be used to find the actual frequency response of the filter obtained, which can be compared with the desired response. The method described only guarantees correct frequency response values at the points that were sampled. This sometimes leads to excessive ripple at intermediate points:

jh.e j! j..8.6.4. Actual Desired One way of addressing this problem is to allow transition samples in the region where discontinuities in H d.e j! / occur: T T T 3 Passband Transition band Stopband This effectively increases the transition width and can decrease the ripple, as observed below: 3

jh.e j! j..8.6.4. Actual Desired By leaving the value of the transition sample unconstrained, one can to some extent optimise the filter to minimise the ripple. Empirically, with three transition samples a stopband attenuation of db is achievable. Recall however that for hœn real we require even or odd symmetry in the impulse response, so the values are not entirely unconstrained..3 Optimum approximations of FIR filters This method of filter design attempts to find the filter of length N that optimises a given design objective. In this case the objective is chosen to be the minimisation of max! je.ej! /j where E.e j! / is a weighted error function E.e j! / D W.e j! /ŒH d.e j! / H.e j! /: The minimisation is performed over the filter coefficients hœn. In practice, the design problem can be specified as follows: given ı p, ı s, f p, and f s, determine hœn such that the design specification is satisfied with the smallest possible N. The optimal (or minimax) design method therefore yields 4

the shortest filter that meets a required frequency response over the entire frequency range. It is widely used in practice. Solutions to this optimisation problem have been explored in the literature, and many implementations of the method are available. It turns out that when max je.e j! /j is minimised, the resulting filter response will have equiripple passband and stopband, with the ripple alternating in sign between two equal amplitude levels: 4 5 jh.e j! j 6 7 8 9 The maxima and minima are known as extrema. For linear phase lowpass filters, for example, there are either r C or r C extrema, where r D.N C /= (for type filters) or r D N= (for type filters). For a given set of filter specifications, the locations of the extremal frequencies, apart from those at band edges, are not known a priori. Thus the main problem in the optimal method is to find the locations of the extremal frequencies. Numerous algorithms exist to do this. Once the locations of the extremal frequencies are known, it is simple to specify the actual frequency response, and hence find the impulse response for the filter. 5

3 Infinite impulse response (IIR) filter design An IIR filter has nonzero values of the impulse response for all values of n, even as n!. To implement such a filter using a FIR structure therefore requires an infinite number of calculations. However, in many cases IIR filters can be realised using LCCDEs and computed recursively. Example: A filter with the infinite impulse response hœn D.=/ n uœn has z-transform Therefore, yœn D =yœn H.z/ D =z D Y.z/ X.z/ : C xœn, and yœn is easy to calculate. IIR filter structures can therefore be far more computationally efficient than FIR filters, particularly for long impulse responses. FIR filters are stable for hœn bounded, and can be made to have a linear phase response. IIR filters, on the other hand, are stable if the poles are inside the unit circle, and have a phase response that is difficult to specify. The general approach taken is to specify the magnitude response, and regard the phase as acceptable. This is a disadvantage of IIR filters. IIR filter design is discussed in most DSP texts. 6