@let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas...

111
Chapter 1 Digital Filters and Applications 1.8 Digital Filters 1.9 Applications of Digital Filters Copyright c 2005- Andreas Antoniou Victoria, BC, Canada Email: [email protected] January 31, 2008 Frame # 1 Slide # 1 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Transcript of @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas...

Page 1: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Chapter 1Digital Filters and Applications

1.8 Digital Filters1.9 Applications of Digital Filters

Copyright c© 2005- Andreas AntoniouVictoria, BC, Canada

Email: [email protected]

January 31, 2008

Frame # 1 Slide # 1 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 2: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Introduction

� Digital filters began to be mentioned in the literature during the1960s.

Frame # 2 Slide # 2 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 3: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Introduction

� Digital filters began to be mentioned in the literature during the1960s.

� With the dramatic advancements in digital technologies, digitalfilters began to offer viable economical solutions to many of thefiltering problems of the past.

However, it was soon realized that digital filters could alsoperform filtering tasks that were not even possible with analogfilters.

Frame # 2 Slide # 3 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 4: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Introduction

� Digital filters began to be mentioned in the literature during the1960s.

� With the dramatic advancements in digital technologies, digitalfilters began to offer viable economical solutions to many of thefiltering problems of the past.

However, it was soon realized that digital filters could alsoperform filtering tasks that were not even possible with analogfilters.

� Since that time a great variety of digital filters have beeninvented such as nonrecursive, recursive, and adaptive filters.

Frame # 2 Slide # 4 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 5: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Introduction

� Digital filters began to be mentioned in the literature during the1960s.

� With the dramatic advancements in digital technologies, digitalfilters began to offer viable economical solutions to many of thefiltering problems of the past.

However, it was soon realized that digital filters could alsoperform filtering tasks that were not even possible with analogfilters.

� Since that time a great variety of digital filters have beeninvented such as nonrecursive, recursive, and adaptive filters.

� This presentation will examine the advantages anddisadvantages of digital filters and their unique features, thetypes of digital filters that have evolved as well as theirapplications.

Frame # 2 Slide # 5 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 6: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Digital Filters

� In its most general form, a digital filter is a system that willreceive an input in the form of a discrete-time signal andproduce an output again in the form of a discrete-timesignal.

Digital filter

x(nT )

nTnT

x(nT)

y(nT )

y(nT)

Frame # 3 Slide # 6 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 7: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Digital Filters Cont’d

� There are many types of discrete-time systems that willreceive a discrete-time signal as input and produce aprocessed discrete-time signal as output, e.g.,

– digital control systems,– data-compression systems,– encoders and decoders.

Frame # 4 Slide # 7 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 8: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Digital Filters Cont’d

� There are many types of discrete-time systems that willreceive a discrete-time signal as input and produce aprocessed discrete-time signal as output, e.g.,

– digital control systems,– data-compression systems,– encoders and decoders.

� What differentiates digital filters from other discrete-timesystems is the nature of the processing involved.

As in analog filters, the spectrum of the output signal mustbe related to that of the input by some rule ofcorrespondence.

Frame # 4 Slide # 8 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 9: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background

The roots of digital filters go back in history to the 1600’s whenthe astronomers of that time were attempting to rationalize andinterpret their measurements of planetary orbits.

� The need arose in those days for a process that could beused to interpolate a function represented by numericaldata, and a wide range of numerical interpolation formulaswere proposed over the years by Gregory (1638-1675),Newton (1642-1727), Taylor (1685-1731), Stirling(1692-1770), Lagrange (1736-1813), Bessel (1784-1846).

Frame # 5 Slide # 9 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 10: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background

The roots of digital filters go back in history to the 1600’s whenthe astronomers of that time were attempting to rationalize andinterpret their measurements of planetary orbits.

� The need arose in those days for a process that could beused to interpolate a function represented by numericaldata, and a wide range of numerical interpolation formulaswere proposed over the years by Gregory (1638-1675),Newton (1642-1727), Taylor (1685-1731), Stirling(1692-1770), Lagrange (1736-1813), Bessel (1784-1846).

� On the basis of interpolation formulas, formulas were soongenerated that would perform numerical differentiation orintegration on a function represented by numerical data.

Frame # 5 Slide # 10 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 11: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Consider the situation where a numerical algorithm is used tocompute the derivative of a signal x(t) at t = t1, t2, . . . , tK ,designated as y(t), and assume that the signal is representedby its numerical values

x(t1), x(t2), . . . , x(tK )

Frame # 6 Slide # 11 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 12: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Consider the situation where a numerical algorithm is used tocompute the derivative of a signal x(t) at t = t1, t2, . . . , tK ,designated as y(t), and assume that the signal is representedby its numerical values

x(t1), x(t2), . . . , x(tK )

� In such a situation, the algorithm receives a discrete-time signalas input and produces a discrete-time signal

y(t1), y(t2), . . . , y(tK )

as output, which is a differentiated version of the input signal.

Frame # 6 Slide # 12 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 13: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Consider the situation where a numerical algorithm is used tocompute the derivative of a signal x(t) at t = t1, t2, . . . , tK ,designated as y(t), and assume that the signal is representedby its numerical values

x(t1), x(t2), . . . , x(tK )

� In such a situation, the algorithm receives a discrete-time signalas input and produces a discrete-time signal

y(t1), y(t2), . . . , y(tK )

as output, which is a differentiated version of the input signal.

� Since differentiation is essentially a filtering process, as wasdemonstrated earlier on, an algorithm that performs numericaldifferentiation is, in fact, a digital filtering process.

Frame # 6 Slide # 13 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 14: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Interpolation formulas were put to good use during the1600s and 1700s for the construction of numerical tablesof all forms for use in business, commerce, engineering,navigation etc., for example, logarithmic and trigonometrictables.

Frame # 7 Slide # 14 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 15: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Interpolation formulas were put to good use during the1600s and 1700s for the construction of numerical tablesof all forms for use in business, commerce, engineering,navigation etc., for example, logarithmic and trigonometrictables.

� In fact, it was the great need for accurate numerical tablesthat prompted Charles Babbage during the 1800s toembark on his lifelong quest to automate the computationprocess through his famous difference engines, and it is onthe basis of numerical formulas that his machines weresupposed to perform their computations.

Frame # 7 Slide # 15 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 16: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� The purpose of Babbage’s machines was to evaluatepolynomials of the form

y = f (x) = a0 + a1x + a2x2 + · · · + anxn

based on a simple numerical extrapolation algorithm.

Frame # 8 Slide # 16 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 17: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� The purpose of Babbage’s machines was to evaluatepolynomials of the form

y = f (x) = a0 + a1x + a2x2 + · · · + anxn

based on a simple numerical extrapolation algorithm.

� Given as series of values of x , say,

x1, x2, . . . , xK

these machines were designed to calculate the numericalvalues of the polynomial

y(x1), y(x2), . . . , y(xK )

Frame # 8 Slide # 17 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 18: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� In other words, a difference engine would receive a seriesof numbers as input and produce a series of numbers asout and, contrary to popular belief, these machines were,in effect, discrete-time systems.

Frame # 9 Slide # 18 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 19: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� In other words, a difference engine would receive a seriesof numbers as input and produce a series of numbers asout and, contrary to popular belief, these machines were,in effect, discrete-time systems.

� More information on the roots of DSP can be found in atwo-part article published by the author in: IEEE Circuitsand Systems Magazine, issues no. 1 and no. 4, 2007.

Presentations based on these articles can be found at thefollowing links:

– http:\\www.ece.uvic.ca\˜ andreas\RLectures\RootsDSP-I-Web.pdf

– http:\\www.ece.uvic.ca\˜ andreas\RLectures\RootsDSP-II-Web.pdf

Frame # 9 Slide # 19 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 20: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Numerical methods have found their perfect niche in themodern digital computer and considerable progress hasbeen achieved through the 50s and 60s in thedevelopment of algorithms that can be used to processsignals represented in terms of numerical data.

Frame # 10 Slide # 20 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 21: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Numerical methods have found their perfect niche in themodern digital computer and considerable progress hasbeen achieved through the 50s and 60s in thedevelopment of algorithms that can be used to processsignals represented in terms of numerical data.

� By the late 50s, a cohesive collection of techniquesreferred to as data smoothing and prediction began toemerge through the efforts of pioneers such as Blackman,Bode, Shannon, Tuckey, and others.

Frame # 10 Slide # 21 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 22: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� Numerical methods have found their perfect niche in themodern digital computer and considerable progress hasbeen achieved through the 50s and 60s in thedevelopment of algorithms that can be used to processsignals represented in terms of numerical data.

� By the late 50s, a cohesive collection of techniquesreferred to as data smoothing and prediction began toemerge through the efforts of pioneers such as Blackman,Bode, Shannon, Tuckey, and others.

� During the early 60s, an entity referred to as the digitalfilter began to appear in the literature to describe acollection of algorithms that could be used for spectralanalysis and data processing.

Frame # 10 Slide # 22 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 23: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� In 1965, Blackman authored a book titled Data Smoothing andPrediction and included in this work certain techniques which hereferred to as numerical filtering.

This was the first book on DSP and what he referred to as‘numerical filtering’ is known today as digital filtering.

Frame # 11 Slide # 23 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 24: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� In 1965, Blackman authored a book titled Data Smoothing andPrediction and included in this work certain techniques which hereferred to as numerical filtering.

This was the first book on DSP and what he referred to as‘numerical filtering’ is known today as digital filtering.

� Within a year, in 1966, Kaiser authored a landmark chapter,titled Digital Filters in a book by Kuo titled System Analysis byDigital Computer in which he presented a collection of signalprocessing techniques that could be applied for the simulation ofdynamic systems and analog filters.

Frame # 11 Slide # 24 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 25: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Historical background Cont’d

� In 1965, Blackman authored a book titled Data Smoothing andPrediction and included in this work certain techniques which hereferred to as numerical filtering.

This was the first book on DSP and what he referred to as‘numerical filtering’ is known today as digital filtering.

� Within a year, in 1966, Kaiser authored a landmark chapter,titled Digital Filters in a book by Kuo titled System Analysis byDigital Computer in which he presented a collection of signalprocessing techniques that could be applied for the simulation ofdynamic systems and analog filters.

� From the late 60s on, the analysis and processing of signals inthe form of numerical data became known as digital signalprocessing, and algorithms, computer programs, or systems thatcould be used for the processing of these signals became fullyestablished as digital filters.

Frame # 11 Slide # 25 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 26: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

Frame # 12 Slide # 26 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 27: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

– Component tolerances are uncritical.

Frame # 12 Slide # 27 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 28: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

– Component tolerances are uncritical.

– Accuracy is high.

Frame # 12 Slide # 28 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 29: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

– Component tolerances are uncritical.

– Accuracy is high.

– Physical size is small.

Frame # 12 Slide # 29 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 30: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

– Component tolerances are uncritical.

– Accuracy is high.

– Physical size is small.

– Reliability is high.

Frame # 12 Slide # 30 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 31: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

– Component tolerances are uncritical.

– Accuracy is high.

– Physical size is small.

– Reliability is high.

– Component drift is relatively unimportant.

Frame # 12 Slide # 31 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 32: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

– Component tolerances are uncritical.

– Accuracy is high.

– Physical size is small.

– Reliability is high.

– Component drift is relatively unimportant.

– The influence of electrical environmental noise is negligible.

Frame # 12 Slide # 32 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 33: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Advantages of Digital Technologies

� With the rapid advances in integrated-circuit technologyduring the 60s, a trend towards digital technologies beganto emerge to take advantage of the classical merits ofdigital systems in general, which are as follows:

– Component tolerances are uncritical.

– Accuracy is high.

– Physical size is small.

– Reliability is high.

– Component drift is relatively unimportant.

– The influence of electrical environmental noise is negligible.

� Because of all these important features, digitaltechnologies can be used to design cost-effective, reliable,and versatile systems.

Frame # 12 Slide # 33 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 34: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Technologies

� The numerous advantages of digital technologies led to anuninterrupted revolution from the early 60s on whichcontinues to this date whereby analog systems arecontinuously being replaced by corresponding digitalsystems.

Frame # 13 Slide # 34 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 35: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Technologies

� The numerous advantages of digital technologies led to anuninterrupted revolution from the early 60s on whichcontinues to this date whereby analog systems arecontinuously being replaced by corresponding digitalsystems.

� For example,

Frame # 13 Slide # 35 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 36: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Technologies

� The numerous advantages of digital technologies led to anuninterrupted revolution from the early 60s on whichcontinues to this date whereby analog systems arecontinuously being replaced by corresponding digitalsystems.

� For example,

– the telephone system was digitized through the use ofpulse-code modulation and code-division multiple accesssystems;

Frame # 13 Slide # 36 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 37: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Technologies

� The numerous advantages of digital technologies led to anuninterrupted revolution from the early 60s on whichcontinues to this date whereby analog systems arecontinuously being replaced by corresponding digitalsystems.

� For example,

– the telephone system was digitized through the use ofpulse-code modulation and code-division multiple accesssystems;

– then came long-distance digital communications;

Frame # 13 Slide # 37 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 38: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Technologies

� The numerous advantages of digital technologies led to anuninterrupted revolution from the early 60s on whichcontinues to this date whereby analog systems arecontinuously being replaced by corresponding digitalsystems.

� For example,

– the telephone system was digitized through the use ofpulse-code modulation and code-division multiple accesssystems;

– then came long-distance digital communications;

– then the music industry adopted digital methodologiesthrough the use of compact disks, DVDs, and MP3 players;

Frame # 13 Slide # 38 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 39: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Technologies

� The numerous advantages of digital technologies led to anuninterrupted revolution from the early 60s on whichcontinues to this date whereby analog systems arecontinuously being replaced by corresponding digitalsystems.

� For example,

– the telephone system was digitized through the use ofpulse-code modulation and code-division multiple accesssystems;

– then came long-distance digital communications;

– then the music industry adopted digital methodologiesthrough the use of compact disks, DVDs, and MP3 players;

– then came high-definition digital TV and digital radio;

Frame # 13 Slide # 39 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 40: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Technologies

� The numerous advantages of digital technologies led to anuninterrupted revolution from the early 60s on whichcontinues to this date whereby analog systems arecontinuously being replaced by corresponding digitalsystems.

� For example,

– the telephone system was digitized through the use ofpulse-code modulation and code-division multiple accesssystems;

– then came long-distance digital communications;

– then the music industry adopted digital methodologiesthrough the use of compact disks, DVDs, and MP3 players;

– then came high-definition digital TV and digital radio;

– and so on.

Frame # 13 Slide # 40 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 41: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

Frame # 14 Slide # 41 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 42: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

Frame # 14 Slide # 42 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 43: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

– Nonrecursive filters

Frame # 14 Slide # 43 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 44: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

– Nonrecursive filters

– Recursive filters

Frame # 14 Slide # 44 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 45: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

– Nonrecursive filters

– Recursive filters

– Fan filters

Frame # 14 Slide # 45 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 46: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

– Nonrecursive filters

– Recursive filters

– Fan filters

– Two-dimensional filters

Frame # 14 Slide # 46 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 47: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

– Nonrecursive filters

– Recursive filters

– Fan filters

– Two-dimensional filters

– Adaptive filters

Frame # 14 Slide # 47 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 48: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

– Nonrecursive filters

– Recursive filters

– Fan filters

– Two-dimensional filters

– Adaptive filters

– Multidimensional filters

Frame # 14 Slide # 48 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 49: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Types of Digital Filters

� Digital filters in hardware form began to appear during thelate 60s and two early designs were reported by Jackson,Kaiser, and McDonald in 1968 and Peled and Liu in 1974.

� Research on digital filters continued through the years anda great variety of filter types have evolved, as follows:

– Nonrecursive filters

– Recursive filters

– Fan filters

– Two-dimensional filters

– Adaptive filters

– Multidimensional filters

– Multirate filters

Frame # 14 Slide # 49 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 50: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

Frame # 15 Slide # 50 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 51: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

– Audio systems such as CD players

Frame # 15 Slide # 51 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 52: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

– Audio systems such as CD players

– Instrumentation

Frame # 15 Slide # 52 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 53: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

– Audio systems such as CD players

– Instrumentation

– Image processing and enhancement

Frame # 15 Slide # 53 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 54: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

– Audio systems such as CD players

– Instrumentation

– Image processing and enhancement

– Processing of seismic and other geophysical signals

Frame # 15 Slide # 54 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 55: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

– Audio systems such as CD players

– Instrumentation

– Image processing and enhancement

– Processing of seismic and other geophysical signals

– Processing of biological signals

Frame # 15 Slide # 55 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 56: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

– Audio systems such as CD players

– Instrumentation

– Image processing and enhancement

– Processing of seismic and other geophysical signals

– Processing of biological signals

– Artificial cochleas

Frame # 15 Slide # 56 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 57: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Applications of Digital Filters

The applications of digital filters are widespread and include butare not limited to the following:

– Communications systems

– Audio systems such as CD players

– Instrumentation

– Image processing and enhancement

– Processing of seismic and other geophysical signals

– Processing of biological signals

– Artificial cochleas

– Speech synthesis

Frame # 15 Slide # 57 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 58: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software and Hardware Implementations

It is nowadays convenient to consider computer programs anddigital hardware that can perform digital filtering as two differentimplementations of digital filters, namely,

– software digital filters, and

Frame # 16 Slide # 58 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 59: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software and Hardware Implementations

It is nowadays convenient to consider computer programs anddigital hardware that can perform digital filtering as two differentimplementations of digital filters, namely,

– software digital filters, and

– hardware digital filters.

Frame # 16 Slide # 59 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 60: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software and Hardware Implementations Cont’d

� Software digital filters can be implemented in terms of ahigh-level language, such as C++ or MATLAB, on apersonal computer or workstation or by using a low-levellanguage on a general-purpose digital signal-processingchip.

Frame # 17 Slide # 60 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 61: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software and Hardware Implementations Cont’d

� Software digital filters can be implemented in terms of ahigh-level language, such as C++ or MATLAB, on apersonal computer or workstation or by using a low-levellanguage on a general-purpose digital signal-processingchip.

� Hardware digital filters can be designed using a number ofhighly specialized interconnected VLSI chips.

Frame # 17 Slide # 61 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 62: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software and Hardware Implementations Cont’d

� Software digital filters can be implemented in terms of ahigh-level language, such as C++ or MATLAB, on apersonal computer or workstation or by using a low-levellanguage on a general-purpose digital signal-processingchip.

� Hardware digital filters can be designed using a number ofhighly specialized interconnected VLSI chips.

� Both hardware and software digital filters can be used toprocess real-time or nonreal-time (recorded) signals,except that the former are usually much faster and candeal with real-time signals whose frequency spectrumsextend to much higher frequencies.

Frame # 17 Slide # 62 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 63: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software and Hardware Implementations Cont’d

� Occasionally, digital filters are used in so-calledquasireal-time applications whereby the processingappears to a person to be in real time although, in actualfact, the samples of the signal are first collected and storedin a digital memory and are then retrieved in blocks andprocessed.

Frame # 18 Slide # 63 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 64: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software and Hardware Implementations Cont’d

� Occasionally, digital filters are used in so-calledquasireal-time applications whereby the processingappears to a person to be in real time although, in actualfact, the samples of the signal are first collected and storedin a digital memory and are then retrieved in blocks andprocessed.

� A familiar, quasireal-time application involves thetransmission of radio signals over the Internet.

The signals are transmitted through data packets in arather irregular manner, yet the music appears to becontinuous only because the data packets are first storedand then properly sequenced.

This is why it takes a little while for the transmission tobegin.

Frame # 18 Slide # 64 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 65: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations

� Hardware digital filters have an important advantagerelative to analog filters, in addition to the classical meritsassociated with digital systems in general:

The parameters of a digital filter are stored in a computermemory and, consequently, they can be easily changed inreal time.

Frame # 19 Slide # 65 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 66: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations

� Hardware digital filters have an important advantagerelative to analog filters, in addition to the classical meritsassociated with digital systems in general:

The parameters of a digital filter are stored in a computermemory and, consequently, they can be easily changed inreal time.

� This means that digital filters are more suitable forapplications where programmable, time-variable, oradaptive filters are required.

Frame # 19 Slide # 66 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 67: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� Hardware digital filters are essentially low-frequencysystem where the operating frequencies are in somerange, say, 0 to ωmax , where ωmax is dependent on the stateof the art in VLSI technology and the application at hand.

Frame # 20 Slide # 67 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 68: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� Hardware digital filters are essentially low-frequencysystem where the operating frequencies are in somerange, say, 0 to ωmax , where ωmax is dependent on the stateof the art in VLSI technology and the application at hand.

� At any instant, say, t = nT , a digital filter generates thevalue of the output signal through a series of computationsusing some of the values of the input signal and possiblysome of the values of the output signal.

Frame # 20 Slide # 68 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 69: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� Hardware digital filters are essentially low-frequencysystem where the operating frequencies are in somerange, say, 0 to ωmax , where ωmax is dependent on the stateof the art in VLSI technology and the application at hand.

� At any instant, say, t = nT , a digital filter generates thevalue of the output signal through a series of computationsusing some of the values of the input signal and possiblysome of the values of the output signal.

� Once the sampling frequency is fixed, the sampling periodT = 2π/ωs is also fixed and, consequently, a basiclimitation is imposed by the amount of computation thatcan be performed by the digital filter during period T .

Frame # 20 Slide # 69 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 70: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� As the sampling frequency is increased, T is reduced, andthe amount of computation that can be performed duringperiod T is reduced.

Frame # 21 Slide # 70 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 71: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� As the sampling frequency is increased, T is reduced, andthe amount of computation that can be performed duringperiod T is reduced.

� Eventually, at some sufficiently high sampling frequencyωmax , a digital filter will become computation bound and willmalfunction.

Frame # 21 Slide # 71 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 72: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� As the sampling frequency is increased, T is reduced, andthe amount of computation that can be performed duringperiod T is reduced.

� Eventually, at some sufficiently high sampling frequencyωmax , a digital filter will become computation bound and willmalfunction.

� The upper frequency of applicability, ωmax , is difficult toformalize because it depends on several factors such asthe number-crunching capability and speed of the VLSIchips used on the one hand, and the complexity of thefiltering tasks involved on the other.

Frame # 21 Slide # 72 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 73: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� Hardware digital filters are very competitive in applicationswhere the signals are in discrete-time form.

x(t) x(t) x(nT ) y(nT ) y(t) y(t)

c(t)

FLP A/D DF D/A FLP1 2 3 4 5 6 7

ˆˆ

Frame # 22 Slide # 73 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 74: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Hardware Implementations Cont’d

� Hardware digital filters are very competitive in applicationswhere the signals are in discrete-time form.

� However, they have certain disadvantages as well:

For applications where the signals are of thecontinuous-time type, additional interfacing componentsare needed to make digital filters work, e.g., A/D and D/Aconverters.

x(t) x(t) x(nT ) y(nT ) y(t) y(t)

c(t)

FLP A/D DF D/A FLP1 2 3 4 5 6 7

ˆˆ

Frame # 22 Slide # 74 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 75: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Comparison of Filter Technologies

The choice of filter type depends on many factors and trade-offs andis critically dependent on the type of application but the key factor isthe frequency range of operation:

� For frequencies less than, say, 20 kHz digital filters are mostlikely to offer the best engineering solution.

Frame # 23 Slide # 75 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 76: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Comparison of Filter Technologies

The choice of filter type depends on many factors and trade-offs andis critically dependent on the type of application but the key factor isthe frequency range of operation:

� For frequencies less than, say, 20 kHz digital filters are mostlikely to offer the best engineering solution.

� For frequencies between 20 kHz and 0.1 GHz, the choice isbetween

– discrete-active RC filters,– switched-capacitor filters, and– passive RLC filters

Frame # 23 Slide # 76 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 77: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Comparison of Filter Technologies

The choice of filter type depends on many factors and trade-offs andis critically dependent on the type of application but the key factor isthe frequency range of operation:

� For frequencies less than, say, 20 kHz digital filters are mostlikely to offer the best engineering solution.

� For frequencies between 20 kHz and 0.1 GHz, the choice isbetween

– discrete-active RC filters,– switched-capacitor filters, and– passive RLC filters

� For frequencies in the range 0.1 and 15 GHz, the choice isbetween an integrated active RC filter and a microwave filter.

Frame # 23 Slide # 77 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 78: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Comparison of Filter Technologies

The choice of filter type depends on many factors and trade-offs andis critically dependent on the type of application but the key factor isthe frequency range of operation:

� For frequencies less than, say, 20 kHz digital filters are mostlikely to offer the best engineering solution.

� For frequencies between 20 kHz and 0.1 GHz, the choice isbetween

– discrete-active RC filters,– switched-capacitor filters, and– passive RLC filters

� For frequencies in the range 0.1 and 15 GHz, the choice isbetween an integrated active RC filter and a microwave filter.

� For frequencies in excess of 15 GHz, a microwave filter is theonly choice.

Frame # 23 Slide # 78 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 79: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Comparison of Filter Technologies Cont’d

Type of technology Frequency range

Digital filters 0 to ωmax

Discrete active RC filters 10 Hz to 1 MHz

Switched-capacitor filters 10 Hz to 5 MHz

Passive RLC filters 0.1 MHz to 0.1 GHz

Integrated active RC filters 0.1 MHz to 15 GHz

Microwave filters 0.5 GHz to 500 GHz

Frame # 24 Slide # 79 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 80: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software Digital Implementations

� Note that software digital filters have no counterpart in theanalog world and, therefore, for nonreal-time applicationsthey are the only choice.

Frame # 25 Slide # 80 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 81: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Software Digital Implementations

� Note that software digital filters have no counterpart in theanalog world and, therefore, for nonreal-time applicationsthey are the only choice.

� Software digital filters find widespread applications inalmost every field of science and technology.

The following two applications will illustrate what can bedone:

– Processing of EKG signals

– Processing of stock exchange data

Frame # 25 Slide # 81 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 82: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals

� An electrocardiogram (or EKG also referred to as ECG) ofa healthy individual assumes a fairly well defined formalthough significant variations can occur from one personto the next as in fingerprints.

Yet certain telltale patterns in an EKG enable a cardiologistto diagnose certain heart conditions.

Frame # 26 Slide # 82 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 83: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals

� An electrocardiogram (or EKG also referred to as ECG) ofa healthy individual assumes a fairly well defined formalthough significant variations can occur from one personto the next as in fingerprints.

Yet certain telltale patterns in an EKG enable a cardiologistto diagnose certain heart conditions.

� An EKG is essentially a graph representing a low-levelelectrical signal picked up by a pair of electrodes attachedto certain well defined points on the body and connected toan electrical instrument known as the electrocardiograph.

Frame # 26 Slide # 83 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 84: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� Electrocardiographs are used in clinics and hospitalswhere a multitude of other types of electrical machines areutilized such as X-ray machines and electrical motors.

Frame # 27 Slide # 84 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 85: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� Electrocardiographs are used in clinics and hospitalswhere a multitude of other types of electrical machines areutilized such as X-ray machines and electrical motors.

� All these machines along with the power lines andtransformers that supply them with electricity produceelectrical 60-Hz noise, which may contaminate an EKGwaveform.

Frame # 27 Slide # 85 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 86: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� Fig. (a) shows a typical noise-free EKG signal and Fig. (b)shows a corresponding contaminated version.

0 200 400 600 800 1000−5

0

5

10

Sample index n

x(n)

(a) Noise-free EKG signal

0 200 400 600 800 1000–5

0

5

10

Sample index nx(

n)

(b) Contaminated EKG signal

Frame # 28 Slide # 86 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 87: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� As can be seen, the distinct features of the EKG are all butobliterated in the contaminated signal and are, therefore,difficult, if not impossible, to discern.

A diagnosis based on such an EKG would be unreliable.

Frame # 29 Slide # 87 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 88: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� As can be seen, the distinct features of the EKG are all butobliterated in the contaminated signal and are, therefore,difficult, if not impossible, to discern.

A diagnosis based on such an EKG would be unreliable.

� Since electrical noise originating from the power supplyhas a well defined frequency, i.e., 60 Hz, one can design abandstop filter that will reject the electrical noise.

Such a filter has been designed using the methods to bestudied in later chapters and was then used to process thecontaminated EKG signal.

Frame # 29 Slide # 88 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 89: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� Fig. (a) shows the contaminated EKG signal and Fig. (b)shows the filtered version.

0 200 400 600 800 1000–5

0

5

10

Sample index n

x(n)

(b) Contaminated EKG signal

x(n)

0 200 400 600 800 1000–5

0

5

10

Sample index n

(c) Filtered contaminated EKG signal

Frame # 30 Slide # 89 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 90: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� Fig. (a) shows the contaminated EKG signal and Fig. (b)shows the filtered version.

� As can be seen, the filtered signal is a faithful reproductionof the original noise-free signal, apart from some artifactsover the interval n=0 to 100 due to the transient responseof the bandstop filter.

0 200 400 600 800 1000–5

0

5

10

Sample index n

x(n)

(b) Contaminated EKG signal

x(n)

0 200 400 600 800 1000–5

0

5

10

Sample index n

(c) Filtered contaminated EKG signal

Frame # 30 Slide # 90 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 91: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� As another experiment, just to illustrate the nature offiltering, the contaminated EKG signal was passed througha bandpass filter which was designed to select the 60-Hznoise component.

0 200 400 600 800 1000–5

0

5

10

Sample index n

x(n)

(b) Contaminated EKG signal

0 200 400 600 800 1000−5

0

5

Sample index n

(d) Output of bandpass filter

Frame # 31 Slide # 91 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 92: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of EKG signals Cont’d

� As another experiment, just to illustrate the nature offiltering, the contaminated EKG signal was passed througha bandpass filter which was designed to select the 60-Hznoise component.

� After an initial transience over the interval n=0 to 150, asteady noise component is isolated by the bandpass filter.

0 200 400 600 800 1000–5

0

5

10

Sample index n

x(n)

(b) Contaminated EKG signal

0 200 400 600 800 1000−5

0

5

Sample index n

(d) Output of bandpass filter

Frame # 31 Slide # 92 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 93: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data

� We are all interested in the health of the market place for variousreasons.

We would all like, for example, to save some money for anotherday and, naturally, we would prefer to invest any such funds insecure low-risk stocks, bonds, or mutual funds that provide highreturns.

Frame # 32 Slide # 93 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 94: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data

� We are all interested in the health of the market place for variousreasons.

We would all like, for example, to save some money for anotherday and, naturally, we would prefer to invest any such funds insecure low-risk stocks, bonds, or mutual funds that provide highreturns.

� To make financial decisions such as these, we read the businesssection of our daily newspaper or browse the Web for numericalstock-exchange data.

Frame # 32 Slide # 94 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 95: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data

� We are all interested in the health of the market place for variousreasons.

We would all like, for example, to save some money for anotherday and, naturally, we would prefer to invest any such funds insecure low-risk stocks, bonds, or mutual funds that provide highreturns.

� To make financial decisions such as these, we read the businesssection of our daily newspaper or browse the Web for numericalstock-exchange data.

� Naturally, we would like to make investments that grow steadilyfrom year to year at a steady rate and never devalue, but this isnot what happens in real life.

The prices of stocks change rapidly from one day to the next andonce in a while, for example, when a market recession occurs,they can actually lose a large proportion of their values.

Frame # 32 Slide # 95 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 96: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� There are many economic forces that cause the value of astock to change.

Some of these forces are of short duration while othersreflect long-term economic pressures.

Frame # 33 Slide # 96 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 97: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� There are many economic forces that cause the value of astock to change.

Some of these forces are of short duration while othersreflect long-term economic pressures.

� As long-term investors, we should perhaps ignore theday-to-day variations and focus as far as possible on theunderlying changes in the stock price.

Frame # 33 Slide # 97 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 98: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� There are many economic forces that cause the value of astock to change.

Some of these forces are of short duration while othersreflect long-term economic pressures.

� As long-term investors, we should perhaps ignore theday-to-day variations and focus as far as possible on theunderlying changes in the stock price.

� An experienced investor may be able to draw conclusionsby simply comparing the available stock-exchange data oftwo competing stocks.

For the rest of us this is not an easy task but through theuse of DSP, the task can be greatly simplified.

Frame # 33 Slide # 98 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 99: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� The price of a company’s stock is a signal and, as such, itpossesses a spectrum that can be manipulated through filtering.

Frame # 34 Slide # 99 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 100: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� The price of a company’s stock is a signal and, as such, itpossesses a spectrum that can be manipulated through filtering.

� Day-to-day variations in a stock constitute the high-frequencypart of the spectrum whereas the underlying trend of the stock isactually the low-frequency part.

Frame # 34 Slide # 100 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 101: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� The price of a company’s stock is a signal and, as such, itpossesses a spectrum that can be manipulated through filtering.

� Day-to-day variations in a stock constitute the high-frequencypart of the spectrum whereas the underlying trend of the stock isactually the low-frequency part.

� If we are interested in the long-term behavior of a stock, thenperhaps we should filter out the high-frequency part of thespectrum.

On the other hand, if we are interested in the volatility of thestock, then we should filter out the low-frequency content.

Frame # 34 Slide # 101 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 102: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� The price of a company’s stock is a signal and, as such, itpossesses a spectrum that can be manipulated through filtering.

� Day-to-day variations in a stock constitute the high-frequencypart of the spectrum whereas the underlying trend of the stock isactually the low-frequency part.

� If we are interested in the long-term behavior of a stock, thenperhaps we should filter out the high-frequency part of thespectrum.

On the other hand, if we are interested in the volatility of thestock, then we should filter out the low-frequency content.

� The high-frequency or low-frequency content of a signal can befiltered out by using a lowpass or highpass filter as appropriate.

Frame # 34 Slide # 102 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 103: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� To illustrate these ideas, two actual mutual funds, a bond fundand a high-tech fund, were chosen at random for processing.

One year’s worth of data were chosen for processing pertainingto calendar year 2001 and to facilitate the comparison, the unitvalues of the two funds were normalized to unity at the start ofthe year, namely, January 1, 2001.

Frame # 35 Slide # 103 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 104: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

0 50 100 150 200 2500

0.2

0.4

0.6

0.8

1.0

1.2

1.4

Day

Nor

mal

ized

uni

t val

ue

Bond High tech

(a)

Note: 2001 was a bad year for high-technology stocks andmutual funds!

Frame # 36 Slide # 104 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 105: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� Lowpass filtering produced the following results:

0 50 100 150 200 2500

0.2

0.4

0.6

0.8

1.0

1.2

1.4

Day

y(n

)Bond High tech

(b)

Frame # 37 Slide # 105 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 106: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

� The plots show certain anomalies during the first 50 or sosample values.

These are due to the initial transience that exists in alltypes of systems, including filters, which will be explainedlater on.

Frame # 38 Slide # 106 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 107: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

� The plots show certain anomalies during the first 50 or sosample values.

These are due to the initial transience that exists in alltypes of systems, including filters, which will be explainedlater on.

� Ignoring the initial transience, the plots show that thelowpass filter has removed the day-to-day variations andthat makes it easier to discern the underlying trend of thefund.

Frame # 38 Slide # 107 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 108: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� Highpass filtering produced the following results:

0 50 100 150 200 250−1.0

−0.5

0

0.5

1.0Bond fund

y(n)

, %

0 50 100 150 200 250−5

0

5Hi-tech fund

Day

y(n)

, %

(c)

Frame # 39 Slide # 108 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 109: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� The highpass filter removed the lowpass content but, likethe lowpass filter, it introduced an initial transience.

Frame # 40 Slide # 109 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 110: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

Processing of Stock Exchange Data Cont’d

� The highpass filter removed the lowpass content but, likethe lowpass filter, it introduced an initial transience.

� Ignoring the initial transience and noting the difference inthe y-axis scales, we observe that the amplitude of thehigh-frequency content in the high-tech fund is 10 timesthat in the bond fund.

In effect, the high-tech fund is 10 times more volatile thanthe bond fund, as may be expected.

Frame # 40 Slide # 110 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9

Page 111: @let@token Chapter 1 Digital Filters and Applications ...9.pdf · the basis of numerical formulas that his machines were supposed to perform their computations. Frame # 7 Slide #

This slide concludes the presentation.Thank you for your attention.

Frame # 41 Slide # 111 A. Antoniou Digital Signal Processing – Secs. 1.8, 1.9