Editable Digital Signal Processing Principles Algorithms and Applications Third Edition
Editable Digital Signal Processing Principles Algorithms and Applications Third Edition
DIGITAL
SIGNAL
PROCESSING
Principles, Algorithms, m l Applications
J o h n G. Proakis
Dimitris G. M anolakis
Digital Signal
Processing
Principles, Algorithms, and Applications
Third E dition
John G. Proakis
Northeastern U niversity
Dimitris G. Manolakis
Boston C ollege
This edition may be sold only in those countries to which it is consigned by Prentice-Hall International.
It is not to be reexported and it is not for sale in the U .S.A ., Mexico, or Canada.
1996 by Prentice-Hall, Inc.
Simon & Schuster/A Viacom Company
U pper Saddle River, New Jersey 07458
The author and publisher of this book have used their best efforts in preparing this book. These
efforts include the development, research, and testing of the theories and programs to determine their
effectiveness. The author and publisher make no warranty of any kind, expressed or implied, with
regard to these programs or the documentation contained in this book. The author and publisher shall
not be liable in any event for incidental or consequential damages in connection with, or arising out
of. the furnishing, performance, or use of these programs.
ISBN 0-13-3TM33fl-cl
Contents
PREFACE
xiii
1
1 INTRODUCTION
1.1
1.2
C lassificatio n o f Signals 6
1.2.1
Multichannel and Multidimensional Signals. 7
1.2.2 Continuous-Time Versus Discrete-Time Signals. 8
1.2.3 Continuous-Valued Versus Discrete-Valued Signals. 10
1.2.4 Determ inistic Versus Random Signals, 11
1.3
T h e C o n c e p t o f F re q u e n c y in C o n tin u o u s -T im e an d
D isc re te -T im e S ignals 14
1.3.1
Continuous-Time Sinusoidal Signals, 14
1.3.2 Discrete-Time Sinusoidal Signals. 16
1.3.3 Harmonically Related Complex Exponentials, 19
1.4
Problems
39
40
iii
iv
Contents
2.2
D isc re te -T im e S ystem s 56
2.2.1
Input-O utput Description of Systems, 56
2.2.2 Block Diagram Representation of Discrete-Time Systems, 59
2.2.3 Classification of Discrete-Time Systems, 62
2.2.4 Interconnection of Discrete-Tim e Systems, 70
2.3
2.4
2.5
2.6
2.7
S u m m ary a n d R e fe re n c e s
Problems
135
134
43
Contents
T h e r-T ra n sfo rm
151
3.1.1
The Direct ^-Transform. 152
3.1.2 The inverse : -Transform, 160
3.2
P ro p e rtie s o f th e ; -T ra n sfo rm
3.3
3.4
In v e rs io n o f th e ^ -T ra n sfo rm 184
3.4.1
The Inverse ; -Transform by Contour Integration. 184
3.4.2 The Inverse ;-Transform by Power Series Expansion. 186
3.4.3 The Inverse c-Transform by Partial-Fraction Expansion. 188
3.4.4
Decomposition of Rational c-Transforms. 195
3.5
T h e O n e -sid e d ^ -T ra n sfo rm
197
3.5.1
Definition and Properties, 197
3.5.2
Solution of Difference Equations. 201
3.6
3.7
S u m m ary an d R e fe re n c e s
P ro b le m s
151
161
203
219
220
4.2
230
Contents
V)
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.4
4.5
4.6
vii
Contents
4.7
S u m m ary a n d R e fe re n c e s
P ro b le m s
368
5.2
P ro p e rtie s o f th e D F T 409
5.2.1
Periodicity. Linearity, and Symmetry Properties, 410
5.2.2
Multiplication of Two DFTs and Circular Convolution. 415
5.2.3
Additional DFT Properties, 421
5.3
5.4
5.5
S u m m ary an d R e fe re n c e s
P ro b le m s
367
394
425
433
440
440
448
6.1
6.2
6.3
479
viii
Contents
6.4
6.5
S u m m ary an d R e fe re n c e s
P ro b le m s
493
494
500
7.2
500
7.8
S u m m ary a n d R e fe re n c e s
P ro b le m s
600
598
ix
Contents
8.1
G e n e ra l C o n s id e ra tio n s 614
8.1.1
Causality and Its Implications. 615
8.1.2 Characteristics of Practical Frequency-Selective Filters. 619
8.2
8.3
8.4
F re q u e n c y T ra n s fo rm a tio n s 692
8.4.1
Frequency Transform ations in the Analog Dom ain, 693
8.4.2 Frequency Transform ations in the Digital Dom ain. 698
8.5
8.6
S u m m ary an d R e fe re n c e s
P ro b le m s
614
701
724
726
9.2
738
Contents
9.3
9.4
S u m m ary an d R e fe re n c e s
P ro b le m s
774
775
782
10.1
In tro d u c tio n
10.2
D e c im a tio n by a F a c to r D
10.3
In te rp o la tio n by a F a c to r /
10.4
10.5
10.6
10.7
10.8
10.9
10.10
S u m m ary an d R e fe re n c e s
P ro b le m s
846
783
784
787
844
790
806
xi
Contents
11.2
11.3
11.4
11.5
11.6
11.7
S u m m ary an d R e fe re n c e s
P ro b le m s
852
873
890
892
12.2
896
xii
Contents
12.4
12.5
12.6
S u m m ary an d R e fe re n c e s
P ro b le m s
942
959
960
A1
B1
C1
D1
R1
11
Lj_ Preface
xiv
Preface
re sp o n se (F IR ) an d as an in fin ite -d u ra tio n im pulse re sp o n se ( II R ) . L in e a r tim ein v a ria n t sy stem s c h a ra c te riz e d by d ifferen ce e q u a tio n s are p r e s e n te d an d th e so
lu tio n o f d ifferen ce e q u a tio n s w ith initial c o n d itio n s is o b ta in e d . T h e c h a p te r
co n clu d es w ith a tre a tm e n t o f d isc re te -tim e c o rre la tio n .
T h e z -tra n sfo rm is in tro d u c e d in C h a p te r 3. B o th th e b ila te ra l an d th e
u n ila te ra l z -tra n sfo rm s are p re se n te d , a n d m e th o d s fo r d e te rm in in g th e in v erse
z -tra n sfo rm are d esc rib e d . U se o f the z -tra n s fo rm in the analysis o f lin ear tim ein v a ria n t sy stem s is illu stra te d , an d im p o rta n t p ro p e rtie s o f system s, su c h as c a u s a l
ity a n d stab ility , a re re la te d to z-d o m ain ch aracteristics.
C h a p te r 4 tr e a ts th e analysis o f signals and sy stem s in th e fre q u e n c y d o m ain .
F o u rie r se ries an d th e F o u rie r tra n sfo rm a re p re s e n te d fo r b o th co n tin u o u s-tim e
an d d isc rete-tim e signals. L in e a r tim e -in v a ria n t (L T I) d isc rete sy stem s are c h a r
a c terized in th e fre q u e n c y d o m a in by th e ir freq u e n c y resp o n se fu n c tio n an d th e ir
re sp o n se to p e rio d ic an d a p e rio d ic signals is d e te rm in e d . A n u m b e r of im p o rta n t
ty p es o f d isc re te -tim e system s are d esc rib e d , in clu d in g re s o n a to rs , n o tc h filters,
co m b filters, all-p ass filters, a n d o scillato rs. T h e desig n of a n u m b e r of sim ple
F IR a n d IIR filters is also co n sid ered . In a d d itio n , th e stu d e n t is in tro d u c e d to
th e co n c e p ts o f m in im u m -p h a se , m ix ed -p h ase, an d m a x im u m -p h a se system s an d
to th e p ro b le m o f d e c o n v o lu tio n .
T h e D F T . its p ro p e rtie s an d its a p p licatio n s, a re th e topics c o v e re d in C h a p
te r 5. T w o m e th o d s a re d e sc rib e d fo r using th e D F T to p e rfo rm lin e a r filtering.
T h e use o f th e D F T to p e rfo rm fre q u e n c y analysis o f signals is also d escrib ed .
C h a p te r 6 co v ers th e efficient c o m p u ta tio n o f th e D F T . In c lu d e d in this c h a p
te r are d e sc rip tio n s o f radix-2, ra d ix -4, a n d sp lit-ra d ix fast F o u rie r tra n sfo rm (F F T )
alg o rith m s, a n d a p p lic a tio n s o f th e F F T a lg o rith m s to th e c o m p u ta tio n o f c o n v o
lu tio n a n d c o rre la tio n . T h e G o e rtz e l alg o rith m a n d the ch irp -z tra n sfo rm are
in tro d u c e d as tw o m e th o d s fo r c o m p u tin g th e D F T using lin e a r filtering.
C h a p te r 7 tre a ts th e re a liz a tio n o f I I R an d F IR system s. T h is tre a tm e n t
in clu d es d irect-fo rm , cascad e, p a ra lle l, lattice, a n d la ttic e -la d d e r re a liz a tio n s. T h e
c h a p te r in clu d es a tr e a tm e n t o f sta te -sp a c e analysis an d s tru c tu re s fo r d isc rete-tim e
system s, an d ex am in es q u a n tiz a tio n effects in a d igital im p le m e n ta tio n o f F IR and
I IR system s.
T e c h n iq u e s fo r d esign o f digital F IR a n d IIR filters are p r e s e n te d in C h a p
te r 8. T h e d esign te c h n iq u e s in clu d e b o th d irect design m e th o d s in d isc re te tim e
an d m e th o d s involv in g th e co n v ersio n o f an a lo g filters in to digital filters by v ario u s
tra n sfo rm a tio n s. A lso tre a te d in this c h a p te r is th e d esig n o f F I R a n d IIR filters
by le a st-sq u a re s m e th o d s.
C h a p te r 9 fo cu ses o n th e sam pling o f c o n tin u o u s-tim e sig n a ls a n d th e r e
c o n s tru c tio n o f such signals fro m th e ir sam ples. In th is c h a p te r, w e d eriv e th e
sam p lin g th e o re m fo r b a n d p a ss co n tin u o u s-tim e -sig n a ls an d th e n co v e r th e A /D
an d D /A co n v ersio n te c h n iq u e s, including o v e rsam p lin g A /D a n d D /A co n v erters.
C h a p te r 10 p ro v id e s an in d e p th tre a tm e n t o f sa m p lin g -ra te c o n v ersio n and
its a p p lic a tio n s to m u ltira le d ig ital signal p ro cessin g . In a d d itio n to d escrib in g d e c
im atio n a n d in te rp o la tio n by in te g e r facto rs, we p re s e n t a m e th o d o f sa m p lin g -rate
Preface
xv
Introduction
Introduction
Chap. 1
(1.1.1)
S2(t) = 20 r
d escrib e tw o signals, o n e th a t varies lin early w ith the in d e p e n d e n t v ariab le t (tim e)
an d a seco n d th a t v aries q u a d ra tic a lly w ith t. A s a n o th e r ex a m p le , co n sid e r the
fu n ctio n
v) = 3x + 2 x y + 1 0 y 2
(1.1.2)
T his fu n ctio n d escrib es a signal o f tw o in d e p e n d e n t v a riab les x a n d y th a t could
r e p re s e n t th e tw o sp a tia l c o o rd in a te s in a p lan e.
T h e signals d e sc rib e d by (1.1.1) an d (1.1.2) b e lo n g to a class o f signals th a t
are p recisely d efin ed by specifying th e fu n c tio n a l d e p e n d e n c e on th e in d e p e n d e n t
v ariab le. H o w ev er, th e re are cases w h ere such a fu n c tio n a l re la tio n sh ip is u n k n o w n
o r to o highly c o m p licated to be o f any p ractical use.
F o r ex am p le, a sp e ech signal (see Fig. 1.1) c a n n o t be d e s c rib e d fu n ctio n ally
by ex p ressio n s such as (1.1.1). In g e n eral, a se g m e n t o f sp e ech m ay be re p re se n te d
to a high d eg re e o f accu racy as a sum of se v era l sin u so id s o f d iffe re n t am p litu d e s
a n d freq u e n cies, th a t is, as
N
A j ( t ) s i n [ 2 ; r f } ( r ) f + #,(/)]
(1.1.3)
i=i
w h ere {/!,(/)}, {F ,(r)j, a n d {t9,(r)} a re th e se ts of (p o ssib ly tim e -v a ry in g ) a m p litu d es,
freq u e n cies, an d p h a se s, resp ectiv ely , o f th e sinusoids. In fact, o n e w ay to in te rp re t
th e in fo rm a tio n c o n te n t o r m essag e co n v ey ed by an y sh o rt tim e se g m e n t o f th e
Sec. 1.1
#
S
i j ^
Th
... ^
ft
'r r m
'
w m
' W W W ......................
1
Figure 1.1
Introduction
Chap. 1
Analog
input
signal
Analog
signal
processor
Analog
output
signal
Figure 1.2
Sec. 1.1
5
Analog
output
signal
Analog
input
signal
Digital
input
signal
Figure 1.3
Digital
output
signal
Introduction
Chap. 1
Sec. 1.2
Classification of Signals
is co m p lex v alu ed .
In so m e a p p lic a tio n s, signals a re g e n e ra te d by m u ltip le so u rces or m u ltip le
sen so rs. Such signals, in tu rn , can be re p re s e n te d in v e c to r fo rm . F ig u re 1.4 show s
th e th re e c o m p o n e n ts of a v e c to r signal th a t re p re se n ts th e g ro u n d a c c e le ra tio n
d u e to an e a r th q u a k e . T h is a c c e le ra tio n is the re su lt of th re e basic ty p es of elastic
w aves. T h e p rim a ry (P ) w aves an d th e se co n d a ry (S) w aves p ro p a g a te w'ithin th e
b o d y o f rock a n d a re lo n g itu d in al a n d tra n sv e rsa l, resp ec tiv ely . T h e th ird ty p e
o f elastic w ave is called th e su rface w ave, b e c a u se it p ro p a g a te s n e a r th e g ro u n d
su rface. If $*(/). k = 1. 2. 3. d e n o te s th e electrical signal from th e th se n so r as a
fu n ctio n o f tim e, th e se t of p = 3 signals can be re p re se n te d by a v e c to r S?(f )< w h ere
r si (O '
S;,(r) =
Si(t)
-Sl(t) J
W e re fe r to such a v e c to r o f signals as a m u ltich a n n el signal. In e le c tro c a rd io g ra
p hy. for ex am p le, 3 -lead an d 12-lead e le c tro c a rd io g ra m s (E C G ) are o ften used in
p ractice, w hich resu lt in 3 -ch an n el a n d 12-channel signals.
L e t us n o w tu rn o u r a tte n tio n to th e in d e p e n d e n t v a ria b le (s). If the signal is
a fu n ctio n o f a single in d e p e n d e n t v ariab le, th e signal is called a o ne-d im en sio n a l
signal. O n th e o th e r h a n d , a signal is called M -d i m e n s i o n a l if its v alu e is a fu n ctio n
of M in d e p e n d e n t v ariab les.
T h e p ic tu re sh o w n in Fig. 1.5 is an ex am p le of a tw o -d im e n sio n al signal, since
th e in ten sity o r b rig h tn e ss I ( x . y) a t each p o in t is a fu n ctio n of tw o in d e p e n d e n t
v ariab les. O n th e o th e r h a n d , a b la c k -a n d -w h ite telev isio n p ic tu re m ay be r e p
r e se n te d as I ( x . y . t ) since th e b rig h tn e ss is a fu n ctio n of tim e. H e n c e th e T V
p ic tu re m ay b e tr e a te d as a th re e -d im e n s io n a l signal. In c o n tra st, a co lo r T V p ic
tu re m ay b e d e sc rib e d by th re e in te n sity fu n ctio n s of th e fo rm Ir (x, y. ?), Is (x. y. t ),
a n d I i , ( x . y , t ) , c o rre sp o n d in g to th e b rig h tn e ss of the th re e p rin cip al colors (red .
g re e n , b lu e) as fu n ctio n s o f tim e. H e n c e th e co lo r T V p ic tu re is a th re e -c h a n n e l,
th re e -d im e n s io n a l signal, w hich can b e re p re s e n te d by th e v e c to r
-/,(* ,> . O '
I U , y. t)
. l b(x, v ,r ) _
In this b o o k we d e a l m ainly w ith sin g le-ch an n el, o n e -d im e n sio n a l real- or
co m p lex -v alu ed signals a n d w e re fe r to th e m sim ply as signals. In m a th e m a tic a l
Introduction
Chap. 1
Up
/ % East
7jJL______
South
bouth
I____ i
]____ I.
f S waves
_4 P waves
1____ 1____ I
t Surface waves
i_______ I ,
10
r1 -2
12
14
16
18
20
22
24
26
28
30
Time (seconds)
(b)
Figure 1.4 Three components of ground acceleration measured a few kilometers
from the epicenter of an earthquake. (From Earthquakes, by B. A . Bold. 1988
by W. H. Freeman and Company. Reprinted with permission of the publisher.)
Sec. 1.2
Classification of Signals
Figure 1.5
if n > 0
o th erw ise
( 1 .2 . 1 )
10
Introduction
Chap. 1
x{n)
I I T
Figure 1.6 Graphical representation of the discrete time signal x[n) = 0.8" for
n > 0 and x(n) = 0 for n < 0.
Year
Figure 1.7
Sec. 1.2
Classification of Signals
11
Figure 1.8
12
Introduction
Chap. 1
3>4 1
---------------------------------------------------------- 1
200
400
600
-------*-------------------
800
1000
1200
1400
1600
(a)
350 r
300 -
-j
250 <200 -
150 100 -
(b)
Figure 1.9
tograms.
Two random signals from the same signal generator and their his
Sec. 1.2
Classification of Signals
13
----- '
200
<c)
Figure 1.9
C ontinued
Introduction
14
Chap. 1
by th e follow ing
(1.3.1)
(1.3.2)
(1.3.3)
Sec. 1.3
15
(1.3.4)
(1.3.5)
eJ(Q,+f>) + ~ e - J(a+9)
(1.3.6)
16
Introduction
Chap. 1
Re
(1.3.7)
(1.3.8)
(1.3.9)
Sec. 1.3
17
fo r all n
(1.3.10)
(1.3.11)
(1.3.12)
k = 0 ,1 ,2 ,...
(1.3.13)
w h ere
Wk = cl>c + 2k n ,
Introduction
18
Chap. 1
Figure 1.13
cdq.
Sec. 1.3
19
(1.3.14)
= A c o s (coqii) x \ (h)
H e n ce ur is an alias o f w\. If we h ad u sed a sine fu n ctio n in stea d o f a cosine fu n c
tio n , th e resu lt w ou ld basically be th e sam e, ex cep t fo r a 180' p h a se d ifferen ce
b etw een th e sin u so id s A]() and xi ( n ) . In any case, as we increase th e re lativ e
freq u e n cy coo o f a d isc re te -tim e sin u so id from tt to 27r. its ra te of o sc illatio n d e
creases. F o r coo = 2 tt th e re su lt is a c o n sta n t signal, as in th e case fo r oju = 0.
O b v io u sly , fo r co{) = tt (o r f = k) w e h ave th e hig h est ra te o f oscillation.
A s fo r th e case o f co n tin u o u s-tim e signals, n eg ativ e fre q u e n c ie s can be in
tro d u c e d as w ell for d isc rete-tim e signals. F o r this p u rp o se w e use th e id en tity
A
x (n ) = Acos(con + 0) = (>Jiwn+0) +
(1.3.15)
Continuous-time exponentials.
jt = 0 . l . 2 . . . .
(1.3.16)
20
Introduction
Chap. 1
SC
=
x ( ' ) =
Ckelkiltit
k oc
( 1 -3 -1 7 )
k ~ oc
(1.3.18)
sk(n) = ejl n k n / s .
(1.3.19)
\-l
x ( n ) = c * s * ( n ) = Y L ckei2nkn' N
k= 0
Jt= 0
x ( n ) = sin I
+ 6
Sec. 1.4
21
(a) Determ ine how this table of values can be used to obtain values of harmonically
related sinusoids having the same phase.
(b) D eterm ine how this table can be used to obtain sinusoids of the same frequency
(a) Let
2 tt ( k n )
= x(kn)
Thus we observe that ,vt (0) = .v(0). **(1) = x ( k ) . x k (2) = x ( 2 k ) . and so on.
Hence the sinusoidal sequence
can be obtained from the table of values
of x ( n ) by taking every k th value of * ( ) . beginning with .v(0). In this m anner we
can generate the values of all harmonically related sinusoids with frequencies
fk = k / N for k = 0. 1....... N - 1.
(b) We can control the phase 8 of the sinusoid with frequency j\ k / N by taking
the first value of the sequence from memory location q 9 N/ 2 tt. where q is
an integer. Thus the initial phase 6 controls the starling location in the table
and we wrap around the table each time the index (kn) exceeds N.
Introduction
22
Chap. 1
A/D converter
01011...
"7
Analog
signal
Discrete-time
signal
Quantized
signal
Digital
signal
Sec. 1.4
Original
Signal
23
Staircase
Approximation
/
/
/
V
*o
/
/
/
-/
I
I
o
67Time
Figure 1.15
o c < n < c c
(1.4.1)
(1.4.3)
24
Introduction
*(n) = xa(nT)
Analog
signal
Fs = 1IT
Chap. 1
Discrete-time
signal
Sampler
Figure 1.16
(1-4.4)
Is
or, eq u iv alen tly , as
co = Q T
(1.4.5)
Fs=sampling frequency
F=frequency of analoa
f=frequency of digital signal
(1.4.6)
=relative or normalized frequency
( I .4 .7 )
c / < \
2
(1.4.8)
n < co < n
Sec. 1.4
25
th e ra n a e
(1.4.9)
or, e q u iv alen tly .
. -Q < _Ti F,
n F, <
-----------=
(1.4.10)
Continuous-time sienals
co = 2,t f
radians
cycles
sample
sample
F
u ..
\
'
Q =
radians
sec
1A
5
IA
TA B LE 1.1
- /
= to/T.F~f- Fs
.................. - ..... ..
- o c < fi < oc
oc < f-' < oc
_J_
~ 2T
(1.4.11)
^max ft Fs
T h e re fo re , sa m p lin g in tro d u c e s an am b ig u ity , since th e h ig h est fre q u e n c y in a
co n tin u o u s-tim e signal th a t can be u n iq u ely d istin g u ish ed w h en such a signal is
sa m p le d at a ra te Fs = l / T is Fm&li F J 2 , o r Qmax = n F s. T o see w h at h a p p e n s
to fre q u e n c ie s a b o v e F J 2, let us co n sid er the follow ing ex am p le.
Example 1.4.1
The implications of these frequency relations can be fully appreciated by considering
the two analog sinusoidal signals
xi (!) cos 2ji(l0)t
xi(t) cos2;r(50)f
(1.4.12)
26
Introduction
Chap. 1
(1.4.13)
(1 .4 .1 4 )
(1.4.15)
c o s (27 z F kt
+ 6)
(1.4.16)
w h ere
Fk = F0 + k F s .
k = l. 2 .
(1.4.17)
= A
c o s (27zn F o / F s
+ 6 + 2nkn)
A c o s ( 2 n f o n + 6)
Sec. 1.4
27
Figure 1.18
Illustration of aliasing.
28
Introduction
Chap. 1
(b) Suppose that the signal is sampled at the rate Fs = 200 Hz.
What is the
discrete-time signal obtained after sampling?
(c) Suppose that the signal is sampled at the rate Fs ~ 75 Hz. W hat is the discretetime signal obtained after sampling?
(d) What is the frequency 0 < F < FJ2 of a sinusoid that yields samples identical
to those obtained in part (c)?
Solution
(a) The frequency of the analog signal is F 50 Hz. Hence the minimum sampling
rate required to avoid aliasing is Ff = 100 Hz.
(b) If the signal is sampled at Fs = 200 Hz. the discrete-time signal is
lOOtf
TT
x{n) = j cos n j cos n
200
2
(c) If the signal is sampled at F, = 75 Hz. the discrete-time signal is
100?r
A tt
x(n) 3 cos j ^ n 3 cos n
3 cos ~n
3
(d) For the sampling rate of Fs ~ 75 Hz. we have
F = f F, = 7 5 /
The frequency of the sinusoid in part (c) is / |. Hence
F = 25 Hz
Clearly, the sinusoidal signal
ya(i) 3 cos I n Ft
3 cos 507ti
sampled at Fs 75 samples/s yields identical samples. H ence F 50 Hz is an
alias of F = 25 Hz for the sampling rate Fs = 75 Hz.
Sec. 1.4
29
(1.4.18)
w h ere N d e n o te s th e n u m b e r o f freq u e n cy c o m p o n e n ts. A ll signals, such as speech
an d v id eo , len d th em se lv e s to such a re p re s e n ta tio n o v er an y sh o rt tim e segm ent.
T h e a m p litu d e s, freq u e n cies, a n d p h ases usually ch an g e slow ly w ith tim e from one
tim e se g m en t to a n o th e r. H o w e v e r, su p p o se th a t th e fre q u e n c ie s do n o t exceed
som e k n o w n fre q u e n c y , say Fmax. F o r ex am p le, F max = 3000 H z fo r th e class
o f sp e ech signals a n d Fmax = 5 M H z fo r telev isio n signals. Since th e m ax im u m
freq u e n cy m ay v ary slightly fro m d iffe re n t re a liz a tio n s am o n g signals of any given
class (e.g., it m ay vary slightly from s p e a k e r to sp e a k e r), w e m ay wish to e n su re
th a t Fmax d o e s n o t ex ceed som e p re d e te rm in e d v alue by passin g th e an a lo g signal
th ro u g h a filter th a t se v ere ly a tte n u a te s freq u e n cy c o m p o n e n ts ab o v e Fmax. T hus
we a re c e rta in th a t no signal in the class co n tain s fre q u e n c y c o m p o n e n ts (having
significant a m p litu d e o r p o w e r) above Fmax. In p ra c tic e , such filtering is com m only
u sed p rio r to sam p lin g .
F ro m o u r k n o w led g e o f Fmax, w e can se lect th e a p p ro p ria te sam pling rate.
W e k n o w th a t th e h ig h est freq u e n cy in an an alo g signal th a t can be u n a m b ig u
ously re c o n s tru c te d w h en th e signal is sa m p le d a t a ra te F, = 1 / T is F J 7. A ny
fre q u e n c y a b o v e Fsf 2 o r b elo w - F J 2 resu lts in sa m p le s th a t a re id en tical w ith a
c o rre sp o n d in g fre q u e n c y in th e ra n g e F J 2 < F < Fs/2. T o avoid th e am b ig u ities
re su ltin g fro m aliasin g , we m u st se lect th e sa m p lin g ra te to be sufficiently high.
T h a t is, w e m u st select F J 2 to be g re a te r th an Fmax. T h u s to avoid th e p ro b le m
o f aliasin g , Fs is se le c te d so th a t
Fs > 2 Fmax
(1.4.19)
30
Introduction
Chap. 1
Fs ~ 2
(1.4.20)
o r, eq u iv alen tly ,
tt < a)j = 2n f < 7r
(1.4.21)
2n B t
_ ,
(
T h u s jcfl(f) m ay be e x p ressed as
* . ( ) * ( ' - )
(1-4.23)
/ n \ sin2nB (t n flB )
(
zb)
, ,
(1'4 2 4 )
Sec. 1.4
31
sample of ,v(n
(/[ ^ /
{ri l )l
fll
\t -r l 11
F: = 150 Hz.
F, = 50 Hz
stth
sin f>)
= lOsin 6 cos nn
Example 1.4.4
Consider the analog signal
*a(t) = 3cos2000irf + 5 sin6000;rr + lOcos 12.000;?;
Introduction
Chap. 1
(b) Assume now that we sample this signal using a sampling rate Fs = 5000
samples/s. What is the discrete-time signal obtained after sampling?
(c) What is the analog signal y(r) we can reconstruct from the samples if we use
ideal interpolation?
= 2.5 kHz
2
and this is the maximum frequency that can be represented uniquely by the
sampled signal. By making use of (1.4.2) we obtain
= Fj Fs = 1 kHz
Sec. 1.4
33
(c) Since only the frequency components at 1 kHz and 2 kHz are present in the
sampled signal, the analog signal we can recover is
x(t)
which is obviously different from the original signal xU). This distortion of the
original analog signal was caused by the aliasing effect, due to the low sampling
rate used.
A lth o u g h aliasin g is a pitfall to be av o id ed , th e re are tw o useful p ractical
a p p licatio n s b ased on th e ex p lo itatio n of the aliasing effect. T h e se a p p licatio n s
are th e stro b o sc o p e an d the sam pling oscilloscope. B o th in stru m e n ts are d esigned
to o p e ra te as aliasin g devices in o rd e r to re p re se n t high fre q u e n c ie s as low f re
q u en cies.
T o e la b o ra te , co n sid er a signal w ith h ig h -freq u en cy c o m p o n e n ts confined to
a given fre q u e n c y b an d B\ < F < B2. w h ere Bz B\ = B is d efined as the
b a n d w id th o f th e signal. W e assum e th a t B < < B\ < B 2. T h is co n d itio n m ean s
th a t th e fre q u e n c y c o m p o n e n ts in the signal are m uch larg er th an th e b an d w id th
B of th e signal. Such signals are usually called p a ssb a n d or n a rro w b a n d signals.
N ow . if this signal is sa m p le d at a rate Fs > 2B. b u t F^ << B\. th e n all th e f re
q u en cy c o m p o n e n ts c o n ta in e d in the signal will be aliases of fre q u e n c ie s in the
ran g e 0 < F < F J 2 . C o n seq u en tly , if we o b se rv e the freq u e n cy c o n te n t of the
signal in th e fu n d a m e n ta l range 0 < F < F J 2 . we k now precisely the freq u e n cy
co n te n t o f th e an a lo g signal since we k now the fre q u e n c y b an d B\ < F < B2 u n d e r
c o n sid e ra tio n . C o n se q u e n tly , if the signal is a n a rro w b a n d (p a ss b a n d ) signal, we
can re c o n stru c t th e o riginal signal from the sam p le s, p ro v id e d th a t the signal is
sa m p le d at a ra te Fs > 2 B. w h ere B is th e b an d w id th . T h is s ta te m e n t c o n stitu te s
a n o th e r fo rm o f th e sam pling th e o re m , w hich we call the p a s s b a n d f o r m in o rd e r
to d istin g u ish it fro m th e p rev io u s form o f the sa m p lin g th e o re m , w hich ap p lies in
g en eral to all ty p es of signals. T he la tte r is so m e tim es called th e bas e ban d f or m.
T h e p a s s b a n d f o r m o f th e sam pling th e o re m is d escrib ed in d e ta il in S ectio n 9.1.2.
= Q[x(n)]
34
Introduction
Chap. 1
(1.4.25)
L e t us co n sid e r the
(a)
Figure 1.20
Illustration of quantization.
Sec. 1.4
35
TA B LE 1.2
S IG N IF IC A N T D IG IT USING T R U N C A T IO N O R R O UN DING
x,(n )
(Truncation)
(Rounding)
1
0.9
1.0
0.9
1.0
0.9
3
4
5
6
7
0.81
0.729
0.6561
0.59049
0.531441
0.4782969
0.8
0.7
0.8
0.7
0.7
8
9
0.43046721
0.387420489
0.4
x ( n)
n
0
1
2
D iscrete-tim e signal
.voi)
0.6
0.5
0.5
0.4
0.3
(Rounding)
0.0
0.0
0.01
0.029
0.0439
0.00951
0.031441
0.6
0.5
0.5
0.4
0.4
0.0217031
0.03046721
0.012579511
be p ro cessed by u sing a c a lcu lato r o r a digital c o m p u te r since only the first few
sam p les can be sto re d an d m a n ip u la te d . F o r ex am p le, m ost c alcu lato rs process
n u m b e rs w ith only eig h t significant digits.
H o w e v e r, let us assum e th a t w e w an t to use only o n e significant digit. To
elim in ate th e excess digits, w e can e ith e r sim ply d iscard th em (tru n ca tion ) o r dis
card th e m bv ro u n d in g th e resu ltin g n u m b e r (ro un din g). T h e resu ltin g q u an tized
signals x q (n) a re show n in T ab le 1.2. W e discuss only q u a n tiz a tio n by ro u n d in g ,
alth o u g h it is ju st as easy to tr e a t tru n c a tio n . T h e ro u n d in g p ro c e ss is g raphically
illu stra te d in Fig. 1.20b. T h e values allo w ed in th e digital signal are called the
quan tizatio n levels, w h ereas the d istan c e A b etw een tw o successive q u a n tiz a tio n
levels is called th e q uantization step siz e o r resolution. T h e ro u n d in g q u a n tiz e r
assigns each sa m p le of x ( n ) to th e n e a re s t q u a n tiz a tio n level. In c o n tra st, a q u a n
tizer th a t p e rfo rm s tru n c a tio n w ould have assigned each sa m p le of jc(/z) to the
q u a n tiz a tio n level b elo w it. T h e q u a n tiz a tio n e r ro r eq (n) in ro u n d in g is lim ited to
th e ra n g e of A /2 to A /2 , th a t is,
A
- y <<?,()<f
(1A26)
(1.4.27)
36
Introduction
Chap. 1
Time
Figure L21
Sec. 1.4
37
< t <
t.
e{!)cJl = 7 j
(1.4.28)
we have
If th e q u a n tiz e r has b bits of accuracy an d the q u a n tiz e r co v ers the e n tire range
2A . th e q u a n tiz a tio n step is A = 2 A / 2 h. H en ce
A 2/ 3
P., =
(1.4.30)
(1.4.31)
T h e q u ality o f th e o u tp u t o f the A /D c o n v e rte r is usually m e a s u re d by th e signalto- quanti zati on noise ratio ( S Q N R ) . w hich pro v id es th e ratio o f th e signal p o w er
to th e no ise po w er:
S Q N R = = - 22b
P
">
' i/
E x p re s se d in d ecib els (d B ), th e S Q N R is
S Q N R (d B ) = 101og1(l S Q N R = 1.76 + 6.026
(1.4.32)
Figure 1.22
38
Introduction
Chap. 1
th e n u m b e r of bits re q u ire d by a specific a p p lic a tio n to assu re a given signal-ton o ise ratio . F o r ex am p le, m o st co m p a c t disc p lay ers use a sa m p lin g freq u e n cy
o f 44.1 k H z an d 16-bit sa m p le re so lu tio n , w hich im plies a S Q N R of m o re th an
96 dB .
Am plifude
Sec. 1.5
39
40
Introduction
Chap. 1
PROBLEMS
LI Classify the following signals according to whether they are (1) one- or multi
dimensional; (2) single or multichannel, (3) continuous time or discrete time, and
(4) analog or digital (in amplitude). Give a brief explanation.
(a) Closing prices of utility stocks on the New York Stock Exchange.
(b) A color movie.
(c) Position of the steering wheel of a car in motion relative to cars reference frame.
(d) Position of the steering wheel of a car in motion relative to ground reference
frame.
(e) Weight and height measurem ents of a child taken every month.
1.2 D eterm ine which of the following sinusoids are periodic and com pute their funda
mental period.
30n \
( 62m
(a) cosO.OIjt/i
(b) cs n - I
(c) cos 3
(d) sin3
(e) sin
105 /
'
'
V 10
1 3 Determ ine whether or not each of the following signals is periodic. In case a signal
is periodic, specify its fundamental period.
(a) xu(r) 3cos(5r + 7r/6)
(b)
= 3 cos(5n + ;r/6)
(c) j:(h) = 2 e x p [j(n /6 - 7i)]
(d) x(n) = cos(/8) cos(?rn/8)
(e) x(n) = cos(7rn/2) sin(7rn/8) + 3cos(jrn/4 + 7t / 3)
1.4 (a) Show that the fundamental period Nr of the signals
,s>() = ei2nkr,IN.
* = 0 .1 .2 ,...
Chap. 1
41
Problem s
(c) Explain the statement: ,r(n) is periodic if its fundamental period Tr . in seconds,
2 cos 1800jt /
The link is operated at 10.000 bits/s and each input sample is quantized into 1024
different voltage levels.
(a) W hat is the sampling frequency and the folding frequency?
( b ) W hat is the Nvquist rate for the signal .*(;)?
(c) What are the frequencies in the resulting discrete-time signal x(n)7
(d) W hat is the resolution A?
1.11 Consider the simple signal processing system shown in Fig. P I.11. The sampling
periods of the A/D and D /A converters are T = 5 ms and T' = 1 ms. respectively.
Determ ine the output vU) of the system, if the input is
a:(n = 3 cos 100;rf -+- 2 sin 250;rt
(t in seconds)
Figure P l . l l
1.12 (a) Derive the expression for the discrete-time signal .r(n) in Example 1.4.2 using the
periodicity properties of sinusoidal functions.
(b) W hat is the analog signal we can obtain from x(n) if in the reconstruction process
we assume that Fs = 10 kHz?
42
Introduction
Chap. 1
1.13 The discrete-time signal x(n) = 6.35cos(jr/10)n is quantized with a resolution (a) A =
0.1 or (b) A = 0.02. How many bits are required in the A/D converter in each case?
1.14 D eterm ine the bit rate and the resolution in the sampling of a seismic signal with
dynamic range of 1 volt if the sampling rate is Fs = 20 samples/s and we use an S-bit
A/D converter? W hat is the maximum frequency that can be present in the resulting
digital seismic signal?
1.15* Sampling o f sinusoidal signals: aliasing Consider the following continuous-time si
nusoidal signal
XoO) = sin 2jr/r0f,
oc < t < oo
Since xa(t) is described m athematically, its sampled version can be described by values
every T seconds. The sampled signal is described by the formula
44
Figure 2-1
Chap. 2
f 1,
x(n)
I4,
[ 0,
(2 . 1.1)
2. T a b u la r r e p re s e n ta tio n , such as
n
-2
x ( n)
-1
0
3. S eq u en ce re p re s e n ta tio n
A n in fin ite -d u ra tio n signal o r se q u e n c e w ith th e tim e o rig in (n = 0) in d ic a te d
by th e sy m b o l | is re p re s e n te d as
*<n) = { . . . 0 . 0 . 1 . 4 , 1 . 0 , 0 , . . . }
T
(2.1.2)
= { 0 ,1 .4 .1 .0 .0 ....}
T
(2.1.3)
Sec. 2.1
45
Discrete-Time Signals
x i n) = {3. - 1 . - 2 . 5 .0 .4 . -1 }
(2.1.4)
w h ereas a fin ite -d u ra tio n se q u e n c e th a t satisfies the c o n d itio n x(/i) ~ 0 for n < 0
can be r e p re s e n te d as
jc(n) = { 0 .1 .4 . 1)
(2.1.5)
0.
for n - 0
for n ^ 0
( 2 . 1. 6 )
1.
0.
fo r n > 0
fo r n < 0
(2.1.7)
fo r n > 0
fo r n < 0
( 2 . 1.
46
Chap. 2
u(n)
12
3 4 5 6 7
ur(n)
4. T h e exponent i al signal is a se q u e n c e o f th e fo rm
jr(n) = a
fo r all n
(2.1.9)
(2 . 1. 10 )
= r n (cos On -j- y s in # n )
TiinilU
Figure 2.5
Sec. 2.1
47
Discrete-Time Signals
(2.1.11)
(2.1.12)
(2.1.13)
_ v (/;) = <f>{n) = Bn
(2.1.14)
an d th e p h ase fu n ctio n
T h e en e rg y of a signal x( n ) is
d efin ed as
OC
E=
|jc(n)|2
(2.1.15)
n=-oc
Figure 2.6
signal.
G raph of the real and im aginary com ponents of a com plex-valued exponential
Sec. 2.1
49
Discrete-Time Signals
-1 0
1 2
11
~ S
( b t G r a p h ol
n . m o d u l o 2ir p l o n e d in t h e r a n g e It t , it I
1
lim
** 2 N -j- 1 n -
-,\
(2 .1.1 6)
lim /v'
,\ oc
(2.1.18)
an d th e a v erag e p o w e r o f th e signal x ( n ) as
1
En
P = lim
n -+x 2 N + 1
(2.1.19)
50
Chap. 2
N + 1
lim --------------
A1-** 2 N
1 + l/N
1
lim ------------- --- 4- l / N
2
a9c 2
Consequently, the unit step sequence is a power signal. Its energy is infinite.
Sim ilarly, it can b e show n th a t th e co m p lex e x p o n e n tia l se q u e n c e x(n') =
A e JUJan h as av erag e p o w e r A 2, so it is a p o w e r signal. O n th e o th e r h an d , th e unit
ra m p se q u en ce is n e ith e r a p o w e r signal n o r an en e rg y signal.
(2 . 1.20 )
( 2 . 1 .21 )
w h ere k an d N a re integers.
T h e e n erg y o f a p erio d ic signal x ( n ) o v e r a single p e rio d , say. o v er th e in terv al
0 5 n < N - 1, is fin ite if x () ta k e s on finite v alu es o v e r th e p e rio d . H o w ev er, the
e n e rg y o f th e p e rio d ic signal fo r oc < n < oo is infinite. O n th e o th e r h an d , the
a v e ra g e p o w e r o f th e p erio d ic signal is finite an d it is e q u a l to th e av erag e p o w er
o v e r a single p e rio d . T h u s if x () is a p e rio d ic signal w ith fu n d a m e n ta l p e rio d N
an d ta k e s o n fin ite v alues, its p o w e r is g iven by
(2.1.23)
n=0
C o n s e q u e n tly , p erio d ic signals are p o w e r signals.
Sec. 2.1
Discrete-Time Signals
51
A real v a lu ed sig
()
(2.1.24)
(2.1.25)
(2.1.26)
.v(n]
<'
4
!I
j T
] !
l M ! ....................
ll
-4-3-2-I
12
3 4
i,
(a)
.r(n)
- 5 - 4 - 3 - 2 -1
.ill'
12
3 4 5
<>
(b)
Figure 2.8
rt
52
Chap. 2
Clearly, x e(n) satisfies the sym m etry con d ition (2.1.24). Sim ilarly, w e form an odd
signal com p onent x(n) according to the relation
x(n) = j[.x(n) - * ( - / i ) ]
(2.1.27)
(2.1.28)
Example 2.L2
A signal x ( n ) is graphically illustrated in Fig. 2.9a. Show a graphical representation
of the signals x ( n 3) and x ( n -I- 2).
Solution The signal x (/i 3) is obtained by delaying ;t(n) by three units in time. The
result is illustrated in Fig. 2.9b. On the other hand, the signal x(n + 2 ) is obtained by
advancing x ( n ) by two units in time. The result is illustrated in Fig. 2.9c. Note that
delay corresponds to shifting a signal to the right, whereas advance implies shifting
the signal to the left on the time axis.
If the signal x ( n ) is stored on m agnetic tape or on a disk or, perhaps, in the
m em ory o f a com puter, it is a relatively sim ple operation to m odify the base by
introducing a delay or an advance. O n the other hand, if the signal is not stored but
is b ein g generated by som e physical p h en om en on in real tim e, it is not p ossible
to advance the signal in tim e, since such an op eration in volves signal sam ples
that have not yet b een generated. W hereas it is alw ays possib le to insert a delay
into signal sam ples that have already b een generated, it is physically im possible
to view the future signal sam ples. C on sequ en tly, in real-tim e signal processing
applications, the operation o f advancing the tim e base o f the signal is physically
unrealizable.
A n o th er useful m odification o f the tim e base is to replace th e in d ep en dent
variable n by n. T h e result o f this op eration is a f o l d i n g or a reflection o f the
signal about the tim e origin n = 0.
Sec. 2.1
53
Discrete-Time Signals
xin)
4 i
j 1
I 4 3 2 1 0
1 2
x i n - 3)
il
T -l
1 2
3 4
S 6
(b)
xin +2)
- 6 - 5 - 4 -3 - 2 - 1
Example 2.1.3
Show the graphical representation of the signal x { - n ) and x i - n + 2). where x ( n ) is
the signal illustrated in Fig. 2.10a.
The new signal yin) = x ( n) is shown in Fig. 2.10b. Note that y(0) = *(0).
v ( l ) = x( 1). y(2) = _t( 2). and so on. Also, y (1) = jc(1 ) , v(2) = x(2), and so on.
Solution
Therefore, yin) is simply xin) reflected or folded about the lime origin n = 0. The
signal yin) x ( n
+
2) is simply x ( n) delayed by two units in time. The resulting
signal is illustrated in Fig. 2.10c. A simple way to verify that the result in Fig. 2.10c
is correct is to compute samples, such as y(0) = *(2), y (l) = jc(1 >, v(2) = ;t(0),
v(1) = jr(3). and so on.
k > 0
(2.1.29)
FD [jc(/j)] = x ( n)
N ow
T D A(FD[.r(n)]l = T D *[.t(-n)] = x ( - n + k)
(2.1.30)
54
Chap. 2
y(n) = x(-n + 2)
-2 -1
in
0 1 2 3 4 5
(c)
w hereas
F D {T D i[j:(n )]} = FD[j:(/i &)] = x ( n k )
(2.1.31)
N o te that becau se the signs o f n and k in x { n k) and Jt(-n + ik ) are different, the re
sult is a shift o f the signals x ( n ) and x ( n) to the right by k sam p les, corresponding
to a tim e delay.
A third m odification o f the in d ep en dent variable in volves replacing n by fin,
w here /x is an integer. W e refer to this tim e-b ase m odification as time scaling or
dow nsam pling.
Example 2.L4
Show the graphical representation of the signal y(n) = x(2n), where x(n) is the signal
illustrated in Fig. 2.11a.
Solution We note that the signal y(n) is obtained from x(n) by taking every other
sample from jc(), starting with x(0). Thus y(0) = x(0), y{l) = x(2), y(2) = jc(4),
and y ( - l ) = x(~ 2 ), y ( -2 ) = jc(4), and so on. In other words, we have skipped
Sec. 2.1
55
Discrete-Time Signals
v(n) = .v(2n)
-4
! -2
0 I 2 3
(b)
Figure 2.11
the odd-num bered samples in *() and retained the even-num bered samples. The
resulting signal is illustrated in Fig. 2.11b.
If th e signal ,\ () w as o riginally o b ta in e d by sa m p lin g an a n a lo g signal x a(t),
th e n jc() = Xa(nT), w h ere T is the sa m p lin g in terv al. Nowr. v(n) = x ( 2n) =
x a(2Tn). H e n c e th e tim e-scalin g o p e ra tio n d escrib ed in E x a m p le 2.1.4 is e q u iv a le n t
to ch an g in g th e sam p lin g ra te from 1 /T to 1/27". th a t is, to d e c re a s in g the ra te by
a facto r o f 2. T h is is a d o w n s a mp l i n g o p e ra tio n .
oc < fi < oc
oc < n < oc
oo < n < oo
56
Chap. 2
x (n J
Input signal
or excitation
Figure 2.12
Discrete-time
System
Output signal
or response
Sec. 2.2
57
Discrete-Time Systems
y(n)
(2.2.2)
-3 < n < 3
otherwise
y(n) = x{n)
v() = x in i)
y(n) = x i n 4- i)
y i n ) = j[A-(n + 1) + x ( n ) + x i n - D]
(e) y ( n) = m a x { x( n + 1), x ( n ) . x ( n 1)1
(0 y ( n ) = Z L . x x ( k ) = x ( n ) + x ( n 1) + x{n 2) -t
(a)
(b)
(c)
(d)
Solution
(2.2.3)
First, we determ ine explicitly the sample values of the input signal
xin) = ( ....0 .3 ,2 .1 .0 .1 .2 , 3 ,0 ,...)
T
Next, we determ ine the output of each system using its input-output relationship.
(a) In this case the output is exactly the same as the input signal. Such a system is
known as the identity system.
(b) This system simply delays the input by one sample. Thus its output is given by
x{n) = { ...,0 ,3 .2 .1 ,0 ,1 .2 .3 ,0 ,..,)
t
(c) In this case the system advances the input one sample into the future. For
example, the value of the output at time n = 0 is y(0) = *(1). The response of
this system to the given input is
x(n) = { ...,0 ,3 . 2 .1 .0 ,1 ,2 . 3 ,0 ....}
t
(d) The output of this system at any time is the mean value of the present, the
im m ediate past, and the immediate future samples. For example, the output at
time n = 0 is
y(0) =
R epeating this com putation for every value of n, we obtain the output signal
>() = { ...0 ,1 , f , 2 , l j . l . 2 , , 1 .0 ,...)
t
58
Chap. 2
(e> This system selects as its output at time n the maximum value of the three input
samples x(n - l.l, .v(n). and ,r(n + 1). Thus the response of this system to the
input signal .\{n) is
v(n) = {0.3. 3. 3. 2 .1 .2 . 3, 3, 3 . 0 . . . . )
t
(f) This system is basically an accumulator that computes the running sum of all
the past input values up to present time. The response of this system to the
given input is
v(n) = {.. ..0 .3 . 5. 6. 6, 7, 9. 1 2 .0 ....}
T
W e o b se rv e th a t fo r several of th e sy stem s c o n sid e re d in E x a m p le 2.2.1 the
o u tp u t at tim e n no d e p e n d s n ot only on th e v alu e of the in p u t at n = n (, [i.e.,
jc(o)]- b u t also on th e values o f the in p u t a p p lie d to th e system b e fo re an d after
n = n (). C o n sid er, fo r in stan ce, th e a c c u m u la to r in th e ex a m p le . W e see th at the
o u tp u t at tim e n = ?i() d e p e n d s n ot only on th e in p u t a t tim e n = no. b u t also on
x ( n ) a t tim es n = no 1. no - 2, and so on. By a sim ple a lg e b ra ic m a n ip u latio n
th e in p u t-o u tp u t re la tio n o f th e a c c u m u la to r can b e w ritte n as
= y(/i - 1) + x(ti)
w hich justifies th e te rm accumul at or. In d e e d , th e system c o m p u te s th e c u rre n t
v alu e o f th e o u tp u t by a d d in g (a ccu m u latin g ) th e c u rre n t v alu e o f th e in p u t to th e
p rev io u s o u tp u t value.
T h e re are so m e in te re stin g co n clu sio n s th a t can be d raw n by tak in g a close
lo o k in to this a p p a re n tly sim ple system . S u p p o se th a t we are given th e in p u t signal
x(rt ) fo r n > no. a n d we wish to d e te rm in e th e o u tp u t v(/i) o f th is system fo r n > no.
F o r n = no. no + 1........ (2.2.4) gives
v (n n) = v(o - 1) -f x (/i0)
_v(no + l l
v ( o ) + x ( n o + 1)
x(k)
k X .
th a t is. y(no - 1) sum m arizes* th e effect on th e system from all the in p u ts w hich
h ad b e e n ap p lied to th e system b efo re tim e no- T h u s th e re sp o n s e of th e system
fo r n > no to th e in p u t x(/7j th a t is a p p lie d a t tim e no is th e c o m b in e d resu lt of this
in p u t an d all in p u ts th a t h ad b e e n a p p lie d p re v io u sly to th e sy stem . C o n seq u en tly .
y(/i), n > no is n o t u n iq u ely d e te rm in e d by th e in p u t x ( n ) fo r n > no.
Sec. 2.2
59
Discrete-Time Systems
T he additional inform ation required to d eterm ine y ( n) for n > no is the initial
condi t i on y(no - 1). T his value sum m arizes the effect o f all p reviou s inputs to the.
system . Thus the initial con d ition y(o - 1) togeth er with the input seq u en ce x ( n )
for n > no uniquely d eterm ine the output sequ en ce y(n ) for n > n0.
If the accum ulator had no excitation prior to n 0, the initial con d ition is y(no
1) = 0. In such a case w e say that the system is initially relaxed. S ince y(no 1) = 0,
the output seq u en ce y(n) d ep en d s only on the input seq u en ce x ( n ) for n > n0.
It is custom ary to assum e that every system is relaxed at n = oo. In this
case, if an input x ( n ) is applied at n = co, the corresponding output y( n) is solely
and uni qu e l y determ ined by the given input.
Example 2.2.2
T he accum ulator described by (2.2.3) is excited by the sequence x(n) = nu(n). D e
term ine its output under the condition that:
*=-oc
r
i= < l
x(k)
= y (-l) +
k=o
But
n(n -f 1)
-------- 2 --------
"
n > 0
An adder. F igure 2.13 illustrates a system (adder) that perform s the addi
tion o f tw o signal seq u en ces to form another (th e sum ) seq u en ce, w hich w e d en ote
60
Chap. 2
x|(n )
v(n) = o i( n )
v(n) = jT|(n)Ai(n)
---- -0 ^
x2( n )
y (n ) = jr ( n 1)
_____
Sec. 2.2
Discrete-Time Systems
61
y( n ) = x( n + I )
x( n)
where x(n) is the input and y(n) is the output of the system.
Solution According to (2.2.5), the output v(n) is obtained by multiplying the input
x(n) by 0.5, multiplying the previous input jr ( n - l) by 0.5. adding the two products, and
then adding the previous output v(n 1) multiplied by j. Figure 2.18a illustrates this
block diagram realization of the system. A simple rearrangem ent of (2.2.5). namely.
v ( ) =
.v(n -
)+
[jc(k) + x ( n -
)|
( 2 . 2 .6 )
leads to the block diagram realization shown in Fig. 2.18b. Note that if we treat "the
system from the viewpoint of an input-output or an external description, we are
not concerned about how the system is realized. On the other hand, if we adopt an
Black box
0.5
-i
x( n )
(a)
Black box
-i
x( n)
62
Chap. 2
internal description of the system, we know exactly how the system building blocks
are configured. In terms of such a realization, we can see that a system is relaxed at
time n = no if the outputs of all the delays existing in the system are zero at n = n{)
(i.e., all memory is filled with zeros).
(2.2.7)
y ( n ) = nx ( n ) + b x 3(n)
(2.2.8)
(2.2.9)
(2.2.10)
y( n) = J 2 x ( n - k )
Jt=0
(2.2.11)
are dynamic systems or systems with memory. The systems described by (2.2.9)
Sec. 2.2
63
Discrete-Time Systems
(2.2.12)
a n d th e y do n o t in clu d e d elay e le m e n ts (m em o ry ).
(2.2.13)
Definition.
o n ly if
x( n)
y(n)
im p lies th a t
x {n k)
y( n k)
(2.2.14)
64
Chap. 2
xin )
D ifferentiator"
- B
x(/t)
Time" multiplier
v( n ) = xl - n )
Folder"
Example 2.2.4
Determ ine if the systems shown in Fig. 2.19 are time invariant or time variant.
Solution
(a) This system is described by the input^output equations
y(7i) = T\ xin)} = x(n\ x(n - 1)
(2.2.15)
Nov, if the input is delayed by k units in time and applied to the system, it is
clear from the block diagram that the output will be
y i n . k) = x i n - k) x i n k 1)
(2.2.16)
On the other hand, from (2.2.14) we note that if we delay y (n) by k units in
time, we obtain
yin k) = x(n k) xin k 1)
(2.2.17)
Since the right-hand sides of (2.2.16) and (2.2.17) are identical, it follows that
v(n. k) = yin - k). Therefore, the system is time invariant.
Sec. 2.2
Discrete-Time Systems
65
(2.2.18)
(2.2.19)
(2.2.21)
(2.2.22)
Now, if we delay the output ;y(n), as given by (2.2.21), by k units in time, the
result will be
y(n - k) = x ( - n + k)
(2.2.23)
Since y(n, k) ^ y{n - it), the system is time variant.
(2.2.24)
(2.2.25)
Linear versus nonlinear systems. The general class o f system s can also
be subdivided into linear system s and nonlinear system s. A linear system is one
that satisfies the su pe rp ositio n princ iple. Sim ply stated, the principle o f su p erp osi
tion requires that the resp onse o f the system to a w eighted sum o f signals b e equal
to the corresponding w eighted sum of the responses (outp u ts) of the system to each
of the individual input signals. H en ce w e have the follow ing definition o f linearity.
Definition.
A r e la x e d T s y s te m is lin e a r if a n d only if
T [ a i x i ( n ) + azx2{n)] = a\ T [ x \ ( n ) ] + a i T [ x 2{n)]
(2.2.26)
for any arbitrary input seq u en ces x\ ( n) and x 2(n), and any arbitrary constants aj
and 0 2 Figure 2.20 gives a pictorial illustration of the superposition principle.
66
Chap. 2
(2.2.27)
w h ere
vi (fl) = T [ x x(n)}
T h e re la tio n (2.2.27) d e m o n s tra te s the mul ti pli cat i ve o r scaling p r o p e r t y of a lin ear
system . T h a t is, if th e re sp o n se o f th e system to th e in p u t x i ( n ) is vi(n ), the
re sp o n se to a\X](n) is sim ply a i j i(n ). T h u s any scaling of th e in p u t resu lts in an
id en tical scaling o f th e c o rre sp o n d in g o u tp u t.
S eco n d , su p p o se th a t ai = a2 = 1 in (2.2.26). T h e n
T [ x \ ( n ) + x 2 (n)] = T [ x \ { n ) ] + T [ x \ ( n ) }
(2.2.28)
= yi ( n) + yz(n)
T his re la tio n d e m o n s tra te s th e additivity pr ope r t y o f a lin e a r sy stem . T h e ad ditivity
an d m u ltip lic ativ e p ro p e rtie s c o n stitu te th e su p e rp o s itio n p rin c ip le as it ap p lies to
lin ear system s.
T h e lin earity co n d itio n em b o d ie d in (2.2.26) can b e e x te n d e d a rb itra rily to
any w eig h ted lin e a r c o m b in a tio n o f signals by in d u ctio n . In g e n e ra l, we h av e
M- 1
x( n) = ^ 2 GkXk(n)
M- 1
y ( n ) = ^ akyk (n)
k=l
(2.2.29)
i= l
w h ere
^ ( n ) = T [ x k(n)}
k = 1, 2, , . . , M 1
(2.2.30)
Sec. 2.2
67
Discrete-Time Systems
<d) y( n) = Ax{n) + B
Solution
(a) For two input sequences jti(n) and
Vi(n) = n.ifi(n)
(2.2.31)
y2{n) = nx2(n)
A iinear combination of the two input sequences results in the output
Vj() = T[a\Xy (n) + oijMh)] =
() +
(/i)]
(2.2.32)
(2.2.33)
Since the right-hand sides of (2.2.32) and (2.2.33) are identical, the system is
iinear.
(b) As in part (a), we find the response of the system to two separate input signals
*i(n) and x 2(n). The result is
v,(n) = X\(n2)
(2.2.341
y2(rt) = X2(n2)
The output of the system to a linear combination of Xi(n) and *;(?) is
y3(n) = T\a\X\ () + a 2x 2(n)] = a hx,(n2) + a2x2(n2)
(2.2.35)
(2.2.36)
68
Chap. 2
(2.2.37)
The response of the system to a linear combination of these two input signals is
>'3<n ) = T[a 1*1 (n) + a2x2(n)}
= [fli*i(n) + a2x2(n)]2
(2.2.38)
On the other hand, if the system is linear, it would produce a linear combination
of the two outputs in (2.2.37). namely,
ai_Vi(n) + fl2.V2(n) =
(rt) + a2x2(n)
(2.2.39)
Since the actual output of the system, as given by (2.2.38). is not equal to
(2.2.39), the system is nonlinear.
(d) Assuming that the system is excited by x\(n) and x2in) separately, we obtain
the corresponding outputs
V](n) = AX](rt) + B
(2.2.40)
y2(n) = A x 2(n) + B
A linear combination of X\(n) and x 2{n) produces the output
V i( ) =
T[u^X ]
(/i) + a 2x 2(n>]
= A[a,x,(/i) + a 2x 2(n)} + B
(2.2.41)
On the other hand, if the system were linear, its output to the linear com bina
tion of Ji(n) and x 2 (n) would be a linear combination of vj i n) and y2(n). that is.
ai yi (n ) + a 2y 2(n) = a ] A x ] { n ) + a \ B
a 2A x 2{ n ) + a 2 B
(2.2.42)
Clearly. (2.2.41) and (2.2.42) are different and hence the system fails to satisfy
the linearity test.
The reason that this system fails to satisfy the linearity test is not that the
system is nonlinear (in fact, the system is described by a linear equation) but
the presence of the constant B. Consequently, the output depends on both the
input excitation and on the param eter B ^ 0. Hence, for B ^ 0. the system is
not relaxed. If we set B = 0, the system is now relaxed and the linearity test is
satisfied.
(e) Note that the system described by the input-output equation
y(n) = e,1',)
(2.2.43)
Sec. 2.2
69
Discrete-Time Systems
D e fin itio n ,
a system is said to b e causal if th e o u tp u t o f th e system at any
tim e n [i.e., v(n)] d e p e n d s oniy on p re s e n t an d p ast in p u ts [i.e., x { n ), x(tt - 1),
x(rt 2 ) , . . . ] , b u t d o e s n o t d e p e n d on fu tu re in p u ts [i.e., x( n + 1), x ( n + 2 ) , . . . ] . In
m a th e m a tic a l te rm s, th e o u tp u t o f a cau sal sy stem satisfies an e q u a tio n o f th e form
v(n) = F[x{n), x ( n - 1), x ( n - 2 ) , . . . ]
(2.2.44)
(b) y(n) =
(e) y(n) = x( n2)
x(k)
(g) }'(n) = x ( -n )
Solution The systems described in parts (a), (b), and (c) are clearly causal, since the
output depends only on the present and past inputs. On the other hand, the systems
in parts (d). (e), and (f) are clearly noncausal, since the output depends on future
values of the input. The system in (g) is also noncausal, as we note by selecting, for
example, n = - 1 , which yields v(1) = * 0 ) Thus the output at n = - 1 depends on
the input at n = 1, which is two units of time into the future.
70
Chap. 2
say M x an d M v. such th at
j.v(ri)! < M K < oc
< M x < dc
(2.2.45)
1)
,V(/i )
y (l) = C \
y(2) = Cd............
y(n) = C : "
Clearly, the output is unbounded when ] < ICl < oc. Therefore, the system is BIBO
unstable, since a bounded input sequence has resulted in an unbounded output.
xin)
(2.2.46)
y(n)
:
r
T\
T,
7,
(a)
v | (n )
(b)
Sec. 2.2
Discrete-Time Systems
71
an d th e o u tp u t o f th e second system is
v(n) = T2[\\(n)]
(2.2.47)
=
(2.2.48)
vi(/i - k)
an d
Vi(n - k) '+ y( n - k)
Thus
x{n k) Tf
y( n k )
an d th e re fo re , Tc is tim e in v arian t.
In th e p a ra lle l in te rc o n n e c tio n , th e o u tp u t of th e sy stem T\ is ^ ( n ) an d the
o u tp u t o f th e sy stem T2 is y2(n). H e n c e th e o u tp u t o f th e p a ra lle l in te rc o n n e c tio n is
v3(n) = .V] ( n) + >>2(n)
= Ti[x{n)\ + T2[x(n)\
= (T\ + T2)[x(n)}
= Tp[x(n)\
w h e re Tp = T\ + T2.
In g e n e ra l, w e can u se p a rallel an d cascade in te rc o n n e c tio n o f sy stem s to
c o n s tru c t la rg e r, m o re com plex system s. C o n v e rsely , w e can ta k e a la rg e r system
a n d b re a k it d o w n in to sm a ller su b sy stem s fo r p u rp o se s o f an aly sis a n d im p le
m e n ta tio n . W e sh all u se th e s e n o tio n s la te r, in th e design a n d im p le m e n ta tio n of
d ig ital filters.
72
Chap. 2
M
(2.3.1)
w h ere
an d {b*,.} are c o n sta n t p a ra m e te rs th a t specify th e sy stem an d a re in
d e p e n d e n t o f x( n) a n d y( n) . T h e in p u t-o u tp u t re la tio n sh ip in (2.3.1) is called
a d ifferen ce e q u a tio n a n d re p re se n ts o n e w ay to c h a ra c te riz e th e b e h a v io r of a
d isc re te -tim e L T I system . T h e so lu tio n o f (2.3.1) is th e su b je ct o f S ection 2.4.
T h e seco n d m e th o d fo r analyzing th e b e h a v io r o f a lin e a r sy stem to a given
in p u t signal is first to d e c o m p o se o r reso lv e th e in p u t signal in to a sum o f e le
m e n ta ry signals. T h e e le m e n ta ry signals a re se le c te d so th a t th e re sp o n se o f the
system to each signal c o m p o n e n t is easily d e te rm in e d . T h e n , u sin g th e lin earity
p ro p e rty o f th e sy stem , th e re sp o n se s o f th e sy stem to th e e le m e n ta ry signals are
ad d e d to o b ta in th e to ta l re s p o n s e of th e sy stem to th e given in p u t signal. T h is
seco n d m e th o d is th e o n e d e sc rib e d in th is se ctio n .
Sec. 2.3
73
(2.3.3)
(2.3.4)
k = 0. l , . . . , i V - l
(2.3.5)
(2.3.6)
74
Chap. 2
x k(n) = 8{n - k)
(2.3.8)
Jt(n)
T TT 111 i l l
i
[ -2-10113
(a)
i , 1 I , Tt I
i
i 1
JC(Jc)
6(/i-Jt)
(b)
*(*) 6(n k )
k
0
Figure 2.22
Sec. 2.3
75
is a se q u e n c e th a t is z e ro e v e ry w h e re ex cep t at n = k , w h e re its v a lu e is x( k ) . If we
w ere to re p e a t th e m u ltip lic a tio n of x ( n ) w ith <5(a? m ), w h ere m is a n o th e r d elay
(im =6 k), th e re su lt will b e a se q u en ce th a t is z e ro e v e ry w h e re e x cep t at n = m,
w h ere its v alu e is x ( m ) . H e n c e
x( n ) 5 ( n m) = x ( m) 8( n m)
(2.3.9)
(2.3.10)
su m m a tio n of an
se q u e n c e 6(n - k)
(2.3.10) gives th e
w e ig h te d (scaled)
= (2, 4, 0,3)
T
(2.3.11)
Ckh(n, k) = x(k)h(n, k)
(2.3.12)
76
Chap. 2
x( k ) S( n k)
x ( k ) T [ 5 (m - k)]
(2.3.14)
ii= oc
C learly , (2.3.14) follow s from th e su p e rp o sitio n p ro p e rty of lin e a r system s, and is
k n o w n as th e superposit i on s u mma t i o n .
W e n o te th a t (2.3.14) is an e x p ressio n for th e resp o n se o f a lin e a r system to
any a rb itra ry in p u t se q u e n c e x( n) . T his ex p ressio n is a fu n ctio n of b o th .v() and
th e resp o n ses h(n. k) of the system to th e unit im pulses Sin k) fo r oc < k < oc.
In d eriv in g (2.3.14) w e used th e lin earity p ro p e rty o f th e system but not its tim ein v arian ce p ro p e rty . T h u s th e ex p ressio n in (2.3.14) ap p lies to any relax ed lin ear
(tim e -v a ria n t) system .
If. in a d d itio n , th e system is tim e in v a ria n t, th e fo rm u la in (2.3.14) sim plifies
c o n sid erab ly . In fact, if the resp o n se o f th e L T I system to th e u n it sa m p le seq u en ce
<5(rc) is d e n o te d as h(n). th a t is.
h(n) = T [ b( n ) \
(2.3.15)
(2,3.16)
Sec. 2.3
77
response h(n) to yield the output y in ). W e shall now explain the procedure for
com puting the resp onse y (n ). both m athem atically and graphically, given the input
x ( n ) and the im pulse response h(n) o f the system .
Suppose that we wish to com pute the output of the system at som e time
instant, say n = n 0. A ccordin g to (2.3.17), the resp onse at n = no is given as
OC
y (n 0) =
^ 2 x ( k ) h ( n 0 - k)
(2.3.18)
Jc=-oc
O ur first observation is that the index in the sum m ation is k , and h en ce both the
input signal x ( k ) and the im pulse resp onse h(no - k) are fun ction s o f k. Second,
w e ob serve that the sequ en ces x ( k ) and h(nQ k) are m ultiplied togeth er to form
a product seq u en ce. T h e output >(o) is sim ply the sum over all valu es o f the
product sequ en ce. T he seq u en ce h ( n 0 k) is ob tain ed from h ( k ) by, first, folding
h (k) about k = 0 (the tim e origin), w hich results in the seq u en ce h ( k). The
folded seq u en ce is then shifted by no to yield h(no k). T o sum m arize, the process
o f com p utin g the con volu tion b etw een x ( k ) and h (k) in volves the follow in g four
steps.
1. Folding. F old h(k) about k = 0 to obtain h ( ~ k ) .
2. Shifting, Shift h ( k) by n 0 to the right (left) if n o is p ositive (n egative), to
obtain h(no ).
3. Multiplication. M ultiply
v Jk) = x ( k ) h ( n 0 - k).
4. S u m m a t i o n . Sum all the values o f the product seq u en ce vnt)( k ) to obtain the
value o f the output at tim e n = n 0.
W e note that this p rocedure results in the resp onse o f the system at a sin
gle tim e instant, say n = n 0. In gen eral, we are interested in evaluating the
response o f the system over all tim e instants - o o < n < oo. C onsequently,
steps 2 through 4 in the sum m ary m ust be rep eated , for all p ossible tim e shifts
oo < n < oo.
In order to gain a b etter understanding o f the procedure for evaluating the
convolution sum , w e shall dem onstrate the p rocess graphically. T he graphs will
aid us in explaining the four steps in volved in the com p utation o f the convolution
sum.
Example 2.3.2
The impulse response of a linear time-invariant system is
/!() = [1 .2 ,1 ,-1 }
(2.3.19)
(2.3.20)
Chap. 2
Solution We shall com pute the convolution according to the formula (2.3.17). but
we shall use graphs of the sequences to aid us in the com putation. In Fig. 2.23a we
illustrate the input signal sequence x(k) and the impulse response h{k) of the system,
using k as the time index in order to be consistent with (2.3.17),
The first step in the com putation of the convolution sum is to fold h(k). The
folded sequence h(~k) is illustrated in Fig. 2.23b. Now we can compute the output
at n = 0. according to (2.3.17), which is
v(0) =
(2.3.21)
*=-cx
Since the shift n = 0, we use h( k) directly without shifting it. The product sequence
= x(k)h(-k)
(2.3.22)
h(k)
x(k
3
4i
T
1
* -i
-1 0 ! j
10
h(-k)
1 2 3
L'n(k 1
2
.
. -2
T t . . .
-1 0 1 2
.
(b)
Shift
vAk)
Product
,,.
L |{t)
Product
sequence
h(\-k)
111
To
Br
T
7
(c)
T
.
~3 T !
j-2 -1 0 1
1
k
0 12
(d)
Figure 2.23
Sec. 2.3
79
is also shown in Fig. 2.23b. Finally, the sum of all the terms in the product sequence
yields
() =
vott) = 4
(2.3.24)
is also illustrated in Fig. 2.23c. Finally, the sum of all the values in the product
sequence yields
y(l) =
ui(*) = 8
for n 5 2
Now we have the entire response of the system for oc < n < oc. which we
summarize below as
y(n) =
0 ,0,1, 4. 8, 8. 3, - 2 , - 1 , 0 . 0 . . . .)
t
(2.3.26)
80
Chap. 2
y(n) =
^2
x( n m ) h { m )
(2.3.27)
x(n-k)h(k)
(2.3.28)
v(n) =
CC
~ k)
koc
oc
Sec. 2.3
81
h{k\
x(k)
TT i f
1
(b)
I'oCA')
x(- k)
l
* 1
-3
-2 -1
-1
0
A(1
(c)
-k)
>
i'i(i-)
a
1
- 1 0
v( 2k)
1
1':(!>
II
- 2 - 1 0 1 2 3 4 5
Figure 2.24
sequences h(k), x(k). and x{k) are shown in Fig. 2.24. The product sequences vo(k).
v\(k), and v2(k) corresponding to x ( k)h(k), x (l k)h(k), and x(2 - k)h(k) are illus
trated in Fig. 2.24c, d. and e. respectively. Thus we obtain the outputs
v(0) = 1
y(l) = 1 + a
y( 2) = 1 + a + a 1
82
Chap. 2
(2.3,29)
=
1-a
On the other hand, for n < 0, the product sequences consist of all zeros. Hence
v(n) = 0
n < 0
A graph of the output y(n) is illustrated in Fig. 2.24f for the case 0 < a < 1.
Note the exponential rise in the output as a function of n. Since |a| < 1, the final
value of the output as n approaches infinity is
v(oo) = lim v(n) = ------n-*oc '
1 a
(2.3.30)
y( n) = x{n) * h(n) = ^
x ( k ) h ( n k)
(2.3.31)
Jt = - O C
>>(n) = h{n) * x( n) = ^
k=-oc
h ( k ) x ( n - k)
(2.3.32)
Sec. 2.3
83
<
>
v(n )
xin)
Commutative law
jf(n) * h{n) = h(n) * x( n)
(2.3.33)
V iew ed m a th e m a tic a lly , the c o n v o lu tio n o p e ra tio n also satisfies th e asso cia
tive law , w hich can be sta te d as follow s.
Associative law
[-v(/i) * /?[()] * h 2(/i) x( n) * [/*!() *
(2.3.34)
84
jr(n)
y()
h(n) =
Chap. 2
y{/i)
h\(n) * h2(n)
(a)
x(n)
h,(n)
y</i)
v(n)
h2(n)
h t(n)
(b)
Figure Z 2 6
Example 2.3.4
D eterm ine the impulse response for the cascade of two iinear time-invariant systems
having impulse responses
h \ () = ( j W " )
and
Solution To determ ine the overall impulse response of the two systems in cascade,
we simply convolve h}{n) with h2(n). Hence
= Hr
= (i)"(2"+l - 1 )
Sec. 2.3
85
(2.3.35)
Distributive law
xin) *
4-
(2.3.36)
I n te rp r e te d physically, this law im plies th a t if we h ave tw o lin ear tim ein v a ria n t sy stem s w ith im p u lse re sp o n se s h \ i n ) a n d /?;() ex cited by the sam e
in p u t signal .r(/;), th e sum of the tw o resp o n ses is identical to the resp o n se of an
o v erall system w ith im pulse resp o n se
h i n ) = )i\ in) 4- //:(/;)
T h u s th e o v erall system is view ed as a p arallel co m b in a tio n of the tw o linear
tim e -in v a ria n t sy stem s as illu stra te d in Fig. 2.27,
T h e g e n e ra liz a tio n o f (2.3.36) to m o re th an tw o lin e a r tim e-in v arian t sys
tem s in p a rallel follow's easily by m a th e m a tic a l in d u ctio n . T h u s th e in te rc o n n e c
tio n of L lin ear tim e -in v a ria n t system s in p a ra lle l w ith im p u lse resp o n ses h\ i n) .
h z i n ) .........h L{n) a n d ex cited by the sa m e in p u t x i n ) is e q u iv a le n t to o n e overall
system w ith im p u lse re sp o n se
L
h(n) ^ hj i n)
(=i
(2.3.37)
C o n v e rsely , an y lin ear tim e -in v a ria n t system can be d e c o m p o se d into a p arallel
in te rc o n n e c tio n o f su b sy stem s.
(n) + k2{n).
86
Chap. 2
^2
h ( k ) x (n o ~ k )
k - o c
OC
-I
y (n u) ^ h ( k ) x ( n o - k) +
i=0
h( k) x( nu - k)
^
k oc
= [/ ?(0)x (n ()) + h( \ ) x( r tu -
1) + h ( 2 ) x ( n 0 - 2 ) + ]
+ [/?( 1 )x((] + 1) + h ( - 2 ) x ( n o + 2) + ]
n < 0
(2.3.38)
y ( n ) = ^ h ( k ) x ( n - k)
Jt=0
n
= ^
x{k) h{n k)
k=~oc
(2.3.39)
(2.3.40)
Sec. 2.3
87
\a\ < 1
Solution Since the input signal is a unit step, which is a causal signal, and the system
is also causal, we can use one of the special forms of the convolution formula, either
(2.3.41) or (2.3.42). Since x(n) = 1 for n > 0. (2.3.41) is simpler to use Because of the
simplicity of this problem, one can skip the steps involved with sketching the folded
and shifted sequences. Instead, we use direct substitution of the signals sequences in
(2.3.41) and obtain
y(n) = y ~ v
*=(I
1 - a"*1
1 -ci
and y(n) = 0 for n < 0. We note that this result is identical to that obtained in Ex
ample 2.3.3. In this simple case, however, we computed the convolution algebraically
without resorting to the detailed procedure outlined previously.
88
Chap. 2
If x ( n ) is b o u n d e d , th e re exists a c o n s ta n t M x such th a t
<00
l* (n )l < M x
fo r all n.
N ow , given such a b o u n d e d in p u t se q u e n c e x ( n ) to a lin e a r tim e -in v a ria n t
sy stem , le t us in v e stig a te th e im p licatio n s of th e d efin itio n o f sta b ility o n th e c h a r
acteristics o f th e system . T o w a rd th is en d , w e w o rk again w ith th e c o n v o lu tio n
fo rm u la
OO
y( n) =
h{k) x{n - k )
k=oc
If w e ta k e th e a b so lu te value of b o th sides o f th is e q u a tio n , w e o b tain
h( k ) x ( n k)
Lv()| =
* = -O C
\y(n)\ < Y
IM*)II*(/1 - fc)l
i = oc
|y (n )| < M X Y
W * )l
k = -o c
Sh =
Y
k = -o c
IAWI < 00
<2-3-43)
\h*(-n)\
0,
h{n) ? 0
h(n) = 0
;
*= 00^
k = (x. 1 v /l
Thus, if Si, = 00, a bounded input produces an unbounded output since y(0) = 00.
Sec. 2.3
^
h ( k ) x ( n 0 + N - k) + ^
*-=-oc
89
zero
zero
this,
+ N,
h { k ) x ( n 0 + N - k)
y (0 + AO| =
sc
h( k)x(no + N )j <
< Mx
|/i(/:)||jf(no + N )|
W *)!
k=N
N ow , as N a p p ro a c h e s infinity.
an d hen ce
is stable.
Solution First, we note that the system is causal. Consequently, the lower index on
the summation in (2.3.43) begins with k = 0. Hence
provided that \a\ < 1 . Otherwise, it diverges. Therefore, the system is stable if |a| < 1.
Otherwise, it is unstable. In effect, h(.n) must decay exponentially toward zero as n
approaches infinity for the system to be stable.
90
Chap. 2
Example 23.7
D eterm ine the range of values of a and b for which the linear time-invariant system
with impulse response
...
( a", n > 0
h(-n) = [ iw.f , n < n0
is stable.
Solution This system is noncasual. The condition on stability given by (2.3.43) yields
OC
t :
-1
OC
i*()f=
n= -o c
ia i" +
fi=s(J
y i
|fe,n
n= -o c
From Example 2.3.6 we have already determ ined that the first sum converges for
|a| < 1. The second sum can be manipulated as follows:
= p( l + p + p 2 + ) =
I - p
where p = \f\b\ must be less than unity for the geometric series to converge. Conse
quently, the system is stable if both \a\ < 1 and |fc| > 1 are satisfied,
The con volu tion form ula for such a system reduces to
u-1
? ( n ) = H h ^ x(^n ~ k )
t=0
A useful interpretation o f this exp ression is ob tain ed by ob serving that th e output
at any tim e n is sim ply a w eigh ted iinear com b ination o f the in p ut signal sam ples
x (n ), x { n - 1 ) , , x ( n - M + 1). In other words, the system sim ply w eigh ts, by
the values o f the im pulse resp onse h(k), k = 0, 1,
1, the m ost recent
M signal sam ples and sum s the resulting M products. In e ffe ct, th e system acts
as a w in d o w that view s on ly the m ost recent M input signal sam p les in form ing
the output. It n eg lects or sim ply forgets all prior input sam p les [i.e., x ( n M ),
Sec. 2.4
91
92
Chap. 2
(2.4.2)
x(k) + x(n)
= ny( n - 1) + x {n)
a n d h en ce
y( n) =
1
-x(n)
y(n - 1) +
n + 1'
n + 1'
(2.4.3)
Figure 2.28
Sec. 2.4
93
jc(0)
v (l) = 5.v(0) + U ( l )
y(2) = y ( l ) + i* ( 2 )
an d so on. If o n e grow s fatig u ed w ith this c o m p u ta tio n an d w ishes to pass the
p ro b le m to so m e o n e else at som e tim e, say n = no. th e only in fo rm a tio n th a t one
n e e d s to p ro v id e his o r h e r su ccesso r is the p a st value y(o - 1) a n d the new' input
sa m p le s jr(n), j (/j + 1 )........ T h u s the successor b eg in s w ith
Square-Root Algorithm
Many computers and calculators compute the square root of a positive number A.
using the iterative algorithm
where j_i is an initial guess (estimate) of \/~A. As the iteration converges we have
= J~A.
Consider now the recursive system
(2.4.4)
which is realized as in Fig, 2.29. If we excite this system with a step of amplitude
A [i.e.. x(n) = A u ( n )] and use as an initial condition y(1) an estimate of
the
response v() of the system will tend toward
as n increases. Note that in contrast
to the system (2.4.3), we do not need to specify exactly the initial condition. A rough
estim ate is sufficient for the proper perform ance of the system. For example, if we
94
Chap. 2
-0---- -0
4n)
v(n - I)
Figure Z 2 9
(2.4.5)
(2.4.6)
y ( n) =
- *)
i=0
= h( 0 ) x ( n ) -)- h ( \ ) x ( n 1) + - + h ( M ) x ( n M )
F [j:(n ), x( n 1), . . . , x ( n M )]
w h ere th e fu n ctio n F[-] is sim ply a lin e a r w eig h ted su m o f p re s e n t a n d p ast in p u ts
a n d th e im p u lse re sp o n s e values h( n), 0 < n < M , c o n s titu te th e w eig h tin g c o e f
ficients. C o n se q u e n tly , th e cau sal lin e a r tim e -in v a ria n t F IR sy stem s d e s c rib e d by
th e c o n v o lu tio n fo rm u la in S ectio n 2.3.7, a re n o n re c u rsiv e . T h e b a sic d ifferen ces
b e tw e e n n o n re c u rsiv e a n d re c u rsiv e system s a re illu stra te d in Fig. 2.30. A sim ple
in sp e ctio n o f th is figure re v e a ls th a t th e fu n d a m e n ta l d iffe re n c e b e tw e e n th e s e tw o
Sec. 2.4
x(n)
95
V(H )
x{n)
1
^
|
|
........ ti n - .Wl]
K n ) ........... v(/i -
y{n)
M)\
]
1--------------------------------- 1
(b)
system s is the fe e d b ack loop in th e recu rsiv e system , w hich feed s b ack th e o u tp u t
o f the system in to th e in p u t. T h is feed b ack loop co n tain s a d e la y ele m e n t. T he
p resen c e o f this d elay is crucial for the realizab ility of the system , since the ab sen ce
of this d e la y w ould force the system to c o m p u te yi n) in term s o f v(n). w hich is
n o t po ssib le fo r d isc re te -tim e system s.
T h e p re se n c e o f the fe ed b ack loop o r, eq u iv alen tly , the recu rsiv e n a tu re of
(2.4.5) c re a te s a n o th e r im p o rta n t d ifferen ce b etw een recursive an d n o n re c u rsiv e
system s. F o r e x am p le, su p p o se th a t we wish to c o m p u te th e o u tp u t y(o) of a
system w h en it is ex cited by an in p u t ap p lied at tim e n = 0. If th e system is
recu rsiv e, to co m p u te y ( 0). we first n e e d to c o m p u te all the p re v io u s v alu es y(0).
y ( l ) ........ y(o - 1)- In c o n tra st, if the system is n o n recu rsiv e. we can c o m p u te the
o u tp u t y (n 0) im m e d ia te ly w ith o u t having y(no - 1), y(o 2 )........ In co n clu sio n ,
th e o u tp u t o f a recu rsiv e system sh o u ld be c o m p u te d in o rd e r [i.e., v(0), y ( l) ,
y ( 2 ) . . . w h e re a s for a n o n re c u rsiv e system , th e o u tp u t can b e c o m p u te d in any
o rd e r [i.e., y(200). y (15). y{3). y(300). etc.]. T his fe a tu re is d e sira b le in so m e
p ractical a p p licatio n s.
96
Chap. 2
<*>
Figure 131 Block diagram realization
of a simple recursive system.
(2.4.7)
y( n) = a y( n - 1) + x( n)
= e " +1y ( - l ) + a" x( 0) + fl" 1Jt(l) + + a x ( n - 1) + x( n)
o r, m o re co m p actly ,
n > 0
(2.4.8)
Sec. 2.4
97
n > 0
(2.4.9)
(2.4.10)
>
(2.4.11)
(2.4,12)
a0 m 1
(2.4.13)
98
Chap. 2
Sec. 2.4
To check for the second requirem ent, let us assume that ,t(n) =
Then (2.4.9) gives
99
+
*={}
vi (1)4-
v; ( 1)
100
Chap. 2
Example 2.43
Determ ine if the linear tim e-invariant recursive system described by the difference
equation given in (2.4.7) is stable.
Solution
i*(n)l <
Let us assume that the input signal x(n) is bounded in amplitude, that is,
< oc for all n > 0. From (2.4.8) we have
j v{n J | < |a',+l_y(1)| + ^
akx(n - k) ,
n>0
If n is finite, the bound M v is finite and the output is bounded independently of the
value of a. However, as n -* oo, the bound My remains finite only if |aj < 1 because
|a |B - 0 as n -* oc. Then M y = Ms j(\ - |o|).
Thus the system is stable only if \a\ < 1.
For the sim ple first-order system in E xam ple 2.4,3, w e w ere able to express
the con d ition for B IB O stability in term s o f the system param eter a. nam ely \a\ < 1.
W e should stress, how ever, that this task b ecom es m ore difficult for higher-order
system s. F ortunately, as we shall see in su bsequent chapters, other sim ple and
m ore efficient tech n iqu es exist for investigating the stability o f recursive system s.
Sec. 2.4
101
(2.4.14)
(2.4.15)
q n \ k
+ aw) = 0
(2.4.16)
(2.4.17)
(2.4.18)
102
Chap. 2
(2.4.19)
The zero-input response of the system can be determ ined from (2.4,18) and
(2.4.19). With x(n) = 0, (2.4.18) yields
v(0) =
-a, v ( - l )
n >0
(2.4.20)
With a = ai, this result is consistent with (2.4,11) for the first-order system, which
was obtained earlier by iteration of the difference equation.
Example 2AS
Determ ine the zero-input response of the system described by the homogeneous
second-order difference equation
y() - 3y(n - 1) - 4y(n - 2) = 0
(2.4.21)
Solution First we determ ine the solution to the homogeneous equation. We assume
the solution to be the exponential
yh(n) = X"
U pon substitution of this solution into (2.4.21), we obtain the characteristic equation
a"
- 3xn- ' - 4 r ~ 2 = o
A"-2(X2 3A 4) = 0
Therefore, the roots are X = - 1 , 4, and the general form of the solution to the
homogeneous equation is
}7i(n) = CjX" + C 2X2
(2.4.22)
= C1( - i r + C2(4)"
The zero-input response of the system can be obtained from the homogenous
solution by evaluating the constants in (2.4.22), given the initial conditions y (1) and
y ( ~ 2). From the difference equation in (2.4.21) we have
y(0) = 3y(1) + 4y(2)
y(l) = 3v(0) + 4_y(1)
= 3 [3 y (-l)+ 4y(-2)] + 4y(-l)
= 13y(1) + l 2y( 2)
Sec. 2.4
103
V( 1 I = -C l +4C;
By equating these two sets of relations, we have
C i + C ; = 3_v( 1) + 4y(2)
- C , + 4 C ; = 13 v{ 1) + 12 y( 2)
The solution of these two equations is
Ci = 7 v( 1 ) + ? v ( - 2 )
C; = X .V (-l) + T.v( -2 )
Therefore, the zero-input response of the system is
+ [ x . v ( - l + t.v(-2)](4>"
n >0
' Y ^ a ky p (n - k) ' Y ^ b kx ( n - k)
A-0
*=0
an 1
(2.4.25)
| f l i | <l
(2,4.26)
104
Chap. 2
Solution Since the input sequence x(n) is a constant for n > 0. the form of the solu
tion that we assume is also a constant. Hence the assumed solution of the difference
equation to the forcing function x(n), called the particular solution of the difference
equation, is
vr (n) = Ku(n)
where A- is a scale factor determined so that (2.4.26) is satisfied. U pon substitution
of this assumed solution into (2.4.26). we obtain
Ku i n ) + d]Ku{,n 1) = u ( n )
To determine K, we must evaluate this equation for any n > 1. where none of the
terms vanish. Thus
K -t- O] K 1
1
K = -------l+^i
Therefore, the particular solution to the difference equation is
v (n) = --------u(n)
'
1 +fii
(2.4.27)
Input Signal,
x(n)
Particular Solution,
vr (n)
A (constant)
AM"
AnM
K
KM"
Kan + K ^ " - ' 1 + . . . + KM
A cos Wf>n
A sin a>on
AnnM
An(Ki)nM+ K\ttM 1
Sec. 2.4
Solution
105
n >0
1)
- I K 2 n- 2u(n - 2 ) + 2 " ( )
To determ ine the value of K, we can evaluate this equation for any n > 2, where
none of the terms vanish. Thus we obtain
4A" = \ ( 2K) - i f f + 4
and hence K =
n > 0
v() =
y h(n)
+ \ p( n)
(2.4.28)
when x( n) is a unit step sequence [i.e., x(n) = ()] and y (1) is the initial condition.
Solution
y*(n) = C(-fli)"
and from (2.4.26) of Example 2.4.6, the particular solution is
n >0
(2.4.29)
106
Chap. 2
y(0) = 1
On the other hand, (2.4.29) evaluated at n = 0 yields
v(0) = C 4- i
1 + ax
Consequently.
1
C + -------- = 1
1 + i
ai
1 + ai
Substitution for C into (2.4.29) yields the zero-state response of the system
l-f-fli)" * '
Vi*(/i) = ---- -----
1 + i
n >0
If we evaluate the param eter C in (2,4.29) under the condition that y( 1) ^ 0. the
total solution will include the zero-input response as well as the zero-state response
of the system. In this case (2.4.28) yields
y(0) + a]V( 1) = 1
y (0) = fliy( 1) 4- 1
C = -g ] v( 1) +
-
1 4- a ]
^
1 + a)
n >0
(2.4.30)
Vzs( n)
Sec. 2.4
107
obtain the zero-state resp onse only, w e sim ply solve for C under th e con d ition
that y ( - l ) = 0, as d em onstrated in E xam ple 2.4.8.
W e further ob serve that the particular solution to the d ifferen ce equation can
b e o b tain ed from the zero-state resp onse o f the system . In d eed , if |o]| < 1, which
is the con d ition for stability o f the system , as w ill be show n in S ection 2.4.4, the
lim iting valu e o f >zs() as n approaches infinity, is the particular solu tion , that is,
1
( n ) = lim >zs() = --------n-*Oo
1+ai
Since this com p onent o f the system response d o es not go to zero as n approaches
infinity, it is usually called the steady-state re spons e o f the system . T his response
persists as lon g as the input persists. T he com p onent that d ies out as n approaches
infinity is called the transient re sponse o f the system .
Example 2.4.9
D eterm ine the response y(n), n > 0, of the system described by the second-order
difference equation
v(n) - 3y(n - 1) - 4v(n - 2) = x( n ) + 2x(n - 1)
(2.4.31)
Solution We have already determ ined the solution to the homogeneous difference
equation for this system in Example 2.4.5. From (2.4.22) we have
y*(n) = C , ( - l ) n + C 2(4)n
(2.4.32)
(2.4.33)
yP{n) |rt(4)n(/l)
(2.4.34)
108
Chap. 2
n > 0
(2.4.35)
where the constants C\ and C2 are determined such that the initial conditions are
satisfied. To accomplish this, we return to (2.4.31), from which we obtain
v(0) = 3 y (- l) + 4y (2) + 1
y (1) = 3v(0) + 4_v(-l) + 6
= 1 3 y (- l) + 12y(-2) + 9
O n the other hand, (2.4.35) evaluated at n = 0 and n = 1 yields
y(0) = Ci + C2
y (l) = -C] + 4C2 + f
W e can now equate these two sets of relations to obtain C\ and C 2. In so doing, we
have the response due to initial conditions y (1) and y (2) (the zero-input response),
and the zero-state or forced response.
Since we have already solved for the zero-input response in Exam ple 2.4.5. we
can simplify the computations above by setting v (1) = y (2) = 0. Then we have
C, + C; = 1
- C l + 4 C2 + f
=9
Hence C : = ^ and C 2 =
Finally, we have the zero-statc response to the forcing
function
= (4)"(n) in the form
vB(n) =
+5<4)" +H 4)"
nZ0
(2.4.36)
The total response of the system, which includes the response to arbitrary initial
conditions, is the sum of (2.4.23) and (2.4.36).
(2.4.37)
*=o
W ith jr(n) = i ( ) is substituted into (2.4.37), we obtain
n
yzs(n) = Y 2 a k8(n - k)
=
an
n > 0
Sec. 2.4
109
(2.4.38)
as in d ic a te d in S ectio n 2.4.2.
In th e g e n e ra l case o f an a rb itra ry , lin e a r tim e -in v a ria n t rec u rsiv e system , the
z e ro -s ta te re sp o n s e ex p re sse d in te rm s o f th e co n v o lu tio n su m m a tio n is
>zs(n) ^ 2 h ( k ) x ( n k)
n > 0
(2.4.39)
i=0
(2.4.40)
(2.4.41)
Solution W e have already determ ined in Example 2.4.5 that the solution to the
hom ogeneous difference equation for this system is
^ ( n ) = C, (-1 )" + C2(4)"
n > 0
(2.4.42)
Since the particular solution is zero when x(n) = 6(n), the impulse response of the sys
tem is simply given by (2.4.42), where C] and C2 must be evaluated to satisfy (2.4.41).
For n = 0 and n = 1, (2.4.41) yields
v(0) = 1
y (1) = 3 y (0 )+ 2 = 5
where we have imposed the conditions y (1) = y (2) = 0. since the system must be
relaxed. On the other hand, (2.4.42) evaluated at n = 0 and n = 1 yields
y (0) = C, + C2
y (1) = Ci + 4C2
110
Chap. 2
C: = 5
*=i
w h en th e ro o ts {a*} o f th e c h a ra c te ristic p o ly n o m ial are d istin ct. H e n c e th e im pulse
re sp o n se o f th e sy stem is id en tical in fo rm , th a t is.
(2.4.43)
w h ere th e p a ra m e te rs {Ctl are d e te rm in e d by se ttin g th e initial c o n d itio n s v ( 1) =
. . . = y ( - N ) = 0.
T h is fo rm o f h{n) allow s us to easily re la te th e stab ility of a system , d escrib ed
by an N th -o rd e r d iffe re n c e e q u a tio n , to th e values o f th e ro o ts o f th e ch a ra c te ristic
p o ly n o m ial. In d e e d , since B IB O sta b ility re q u ire s th a t th e im p u lse re sp o n s e be
ab so lu te ly su m m ab le, th e n , fo r a causal system , w e h av e
x
oc
N
N
oo
oo
> (* )! =
Y ^ C kXnk < | C * | | A * | "
=0
n
=0
n=0 Ik=-l
k=\
n=0
N ow if |
j < 1 fo r all k, th e n
an d h en ce
OC
IM*)[ < oo
Sec. 2.5
111
O n th e o th e r h an d , if o n e o r m o re o f th e
> 1, h{n) is n o lo n g e r ab so lu te ly
su m m ab le, an d c o n se q u e n tly , th e sy stem is u n sta b le . T h e re fo re , a n ecessa ry an d
sufficient c o n d itio n fo r th e sta b ility o f a causal IIR system d e sc rib e d by a lin ear
c o n s tan t-co efficien t d iffe re n c e e q u a tio n , is th a t al! ro o ts o f th e c h a ra c te ristic p o ly
n o m ial b e less th a n u n ity in m a g n itu d e. T h e re a d e r m ay verify th a t th is c o n d itio n
ca rrie s o v er to th e case w h ere th e system h as ro o ts o f m u ltip lic ity m.
(2.5.1)
(2.5.2)
(2.5.3)
112
Chap. 2
(2-5.4)
v(n) = t>nw(n) + b\ w{ n - 1)
(2.5.5)
b{,
r(n)
vim
-----------------~
(a)
(b.)
(c)
Figure 132 Steps in converting from the direct form I realization in (a) to the
direct form II realization in (c).
Sec. 2.5
113
y (n ) = - y ^ a ^ .y ( - k) +
*=l
- k)
(2.5.6)
k=0
(2.5.7)
i=U
y(n) = -
v(n ~ k) + v(n)
(2.5.8)
Figure 1 3 3
114
b0
Chap. 2
N
y(n )
-1
UJ{/1 - 1)
J
-1
Figure 2 3 4
w(n - 2)
b2
w(n - 3)
by
w( n) = ^
ai W(n - k ) -f x( n)
(2.5.9)
*=1
fo llo w ed by a n o n re c u rsiv e sy stem
M
v(n) =
vu(n - k )
(2.5.10)
Sec. 2.5
115
- k)
(2.5.11)
k=0
w hich is a n o n re c u rsiv e lin e a r tim e -in v a ria n t system . T his sy stem view s only the
m o st re c e n t M + 1 in p u t signal sa m p les a n d , p rio r to a d d itio n , w eights each sam ple
by th e a p p ro p ria te co efficien t bk from th e set {i^}. In o th e r w ords, th e system
o u tp u t is b asically a weight ed m o v i n g average of th e in p u t signal. F o r this reaso n
it is so m e tim e s called a m o v i n g average ( M A ) syst em. S uch a system is an F IR
sy stem w ith an im p u lse re sp o n s e h (k ) e q u a l to th e coefficients bk, th at is.
* '* ) = { o ! '
o to rw l"
'5 1 2
(2.5.13)
(2.5.15)
(2.5.16)
116
Chap. 2
(a)
----- -0
Y[n)
(b)
x i n)
-^-1 H
02
I _a'
-1
-1
<c)
Figure 2.35 Structures for the realization of second-order systems: (a) general
second-order system; (b) FIR system; (c) purely recursive system
(2.5.17)
y { n ) = - Y ak>(n ~ k ) + Y , bkX(n ~ k )
*=i
*=o
(2.5.18)
Sec. 2.5
117
(2.5.19)
(2.5.20)
- k)
(2.5.21)
0 < n < M
M + 1
. [x(n) ~ x ( n - 1 - M )]
M + 1
y(n - 1) +
Figure 2 3 6
1
M + V
[x(n) x (n 1 Af)]
(2.5.22)
118
Chap. 2
vt/> - 1)
Figure 2 3 7
(2.6.1)
Sec. 2.6
119
assum ed to be an integer m ultiple o f the sam pling interval, and w (n) represents
the additive n oise that is picked up by the antenna and any n oise generated by the
electron ic com p onents and amplifiers contained in the front end o f the receiver.
O n the other hand, if there is no target in the space searched by the radar and
sonar, the received signal y(n ) consists o f noise alone.
H avin g the tw o signal sequ en ces, x ( n ) , which is called the reference signal or
transm itted signal, and y ( n ) , the received signal, the problem in radar and sonar
d etection is to com p are y(n) and x ( n ) to determ ine if a target is present and, if
so, to determ in e the tim e d elay D and com p ute the distance to the target. In
practice, the signal x ( n D) is h eavily corrupted by the additive n oise to the point
w here a visual inspection o f y ( n ) d oes n ot reveal the p resen ce or absence o f the
desired signal reflected from the target. Correlation provides us with a m eans for
extracting this im portant inform ation from y( n).
D igital com m unications is an oth er area w here correlation is o ften used. In
digital com m unications the inform ation to be transm itted from on e p oin t to an
other is usually con verted to binary from , that is, a seq u en ce o f zeros and ones,
which are then transm itted to the in tend ed receiver. T o transm it a 0 w e can trans
m it the signal seq u en ce xo(n) for 0 < n < L 1, and to transm it a 1 w e can transmit
the signal seq u en ce jti(n) for 0 < n < L 1, w here L is som e integer that d en otes
the num ber o f sam p les in each o f the tw o sequ en ces. V ery often , x\ (n) is selected
to be th e negative o f xo(n). T h e signal received by the in tend ed receiver m ay be
represented as
y (n ) = x,-(n) + w (n )
* = 0 ,1
0 < n < L 1
(2.6.2)
w here now the uncertainty is w hether x 0(n) or *](n ) is the signal com p on en t in
>(n), and w (n ) rep resents the additive n oise and other interferen ce inherent in
120
Chap. 2
any co m m u n icatio n system . A g ain , such noise has its o rig in in th e e le ctro n ic
c o m p o n e n ts c o n ta in e d in th e fro n t e n d o f th e receiv er. In an y case, th e receiv er
k n o w s th e p o ssib le tra n sm itte d se q u e n c e s xo(n) a n d
(n) a n d is fa c e d w ith the task
o f co m p a rin g th e receiv ed signal y( n) w ith b o th xo(n) a n d Jti(n) to d e te rm in e w hich
o f th e tw o signals b e tte r m a tc h e s y(n). T h is c o m p a riso n p ro c e ss is p e rfo rm e d by
m ean s o f th e c o rre la tio n o p e ra tio n d e sc rib e d in th e follow ing su b se c tio n .
~ 0
l = 0. 1 , 2 , . . .
(2.6.3)
riy(t) Y , X ^n + 0 y ( )
1 = 0, 1 , 2 , . . .
(2.6.4)
n ~ x
n= -oc
ryx(I) =
y ( n ) x ( n I)
(2.6.5)
y ( n + l ) x ( n)
(2.6.6)
n=0C
o r, e q u iv alen tly ,
OC
ryx(l) = Y
n d c
(2.6.7)
Sec. 2.6
121
v(n) = { . . . . 0 . 0 . 1 . - 1 . 2 . - 2 . 4 . 1 . - 2 . 5 .0 .0 ,...]
t
Solution
x(ri)v(n)
rJV(2) = -1 8 .
r vv(3) = 16.
r,,(4 ) = - 7
rM5) = 5.
r ,v(6) = - 3 ,
rxy (/) = 0.
I >1
For / < 0, we shift y(n) to the left relative to jr(n) by / units, compute the product
sequence v/(n) = j(n ) v(n I), and sum over all values of the product sequence. Thus
we obtain the values of the crosscorrelation sequence
rIV(1) = 0,
riy( - 2 ) = 33.
rly{ - 3) = -1 4 .
rTV( - 4 ) = 36
rJV( -5 ) = 19,
fxv(-6) = - 9 ,
rIV( - 7) = 10,
rxv(l) = 0, I < - 8
122
Chap. 2
as in p u ts to th e p ro g ra m , th e se q u e n c e jc() an d th e fo ld ed se q u e n c e y ( n). T h e n
th e c o n v o lu tio n o f x ( n ) w ith y ( n) yields th e c ro ss c o rre la tio n r rv(/). th a t is,
rxv(D = x ( l ) * y ( - l )
(2.6.8)
OC
rXx(l)=
x(n)j:(n - 0
(2.6.9)
ft ~ OC
o r, eq u iv alen tly , as
OO
rxx{l) =
^ 2 , x (n +
(2.6.10)
n= oc
x(n)y(n-l)
(2.6.11)
an d
A'-1*1-1
rxx( l ) =
(2.6.12)
n=f
w h ere i = I, k = 0 fo r / > 0, a n d / = 0, k = I fo r / < 0.
bv( n I)
OC
Y
fj -oc
OC
OC
x 2( n ) + b 2 ^
n = oc
y 2{n - I)
/i oc
(2 '6 -13)
Sec. 2.6
123
(2.6.14)
(^)2
+ 2rxy(l) Q
+ r v_v(0) > 0
(2.6.15)
(2.6.16)
rixiO)
(2-6 -17)
r ' v(l)
:
v/ r xx(0 )rvv(0)
(2.6.18)
124
Chap. 2
W ith y(n) = x ( n) , th is re la tio n resu lts in th e follow ing im p o rta n t p ro p e rty fo r the
a u to c o rre la tio n se q u en ce
(2.6.19)
r { l ) = rx s ( . - l )
x ( n ) x ( n - /) =
' = a
n= l
n =i
1
n~l
I> 0
^ -V
1 a-
/ < 0
n=(l
a ' 1'.
rx,(!) =
,,a ,t:
oc < / < oc
1 a~
The sequence rxx(l) is shown in Fig. 2.42(d). We observe that
r i t (!)
can be combined
(2.6.20)
r ( ~ / | = rxAD
and
rlt(0) =
1 a2
(2.6.21)
lim
----- - Y ]
M -oc 2 M + 1
x(n)y(n~l)
( 2 .6 .2 2 )
Sec. 2.6
125
) i'
in .
-2-10123
(a)
xin-I)
/ >o
o
(b)
x(n - I )
l< 0
(c)
r(!) =
- 2 - 1 0
Figure 139
1 2
(d)
' , a1'1
1 - a2
a",
0 < a < 1.
If x ( n ) = y(tt), we have the definition o f the autocorrelation seq u en ce of a
p ow er signal as
1
M
rxx(I) = iim . . . , 1 Y ] x ( n ) x ( n - l )
(2.6.23)
Af-oo 2M + 1
In particular, if x ( n ) and y ( n ) are two periodic seq u en ces, each with period
the averages indicated in (2.6.22) and (2.6.23) o ver the infinite interval, are identical
126
Chap. 2
se q u e n c e s w ith p e rio d N .
facto r.
to id en tify p erio d icitie s in
ra n d o m in te rfe re n c e . F o r
y{n) = * (n ) + w(n)
(2.6.26)
M
j
M J
(2.6.28)
Sec. 2.6
127
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
21
16
6
4
7
14
34
45
43
48
42
28
10
8
2
0
1
5
12
14
35
46
41
30
24
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
16
7
4
2
8
17
36
50
62
67
71
48
28
8
13
57
122
138
103
86
63
37
24
11
15
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
40
62
9X
124
96
66
64
54
39
21
7
4
23
55
94
96
77
59
44
47
30
16
7
37
74
128
Chap. 2
Year
(a)
(A /2, A /2), where A is a param eter of the distribution. The observed sequence is
y(n) = x(n) + w(n). D eterm ine the autocorrelation sequence rvt(n) and thus determine
the period of the signal x(rt).
Solution The assumption is that the signal sequence x(n) has some unknown period
that we are attem pting to determ ine from the noise-corrupted observations {y(n)).
Although x(n) is periodic with period 10, we have only a ftmte-duration sequence of
Sec. 2.6
129
length M = 100 [i.e.. 10 periods of jcm )]. The noise power level P in the sequence
u'(n) is determ ined by the param eter A. We simply state that Pu = A: /12. The signal
power level is P, = I. Therefore, the signal-to-noise ratio (SNR) is defined as
P,
~P~U ~ A : /1 2 A :
J '
t
I l l
Lt ttIiIt. Tllrii!
ill ..tI
1. I i i h i
1
p p T T J ljw ^
IT
1 i ([Ijj-liii i|
4
* 4
i
j
la]
(c)
Figure 2.41
noise.
130
pp V|Vvli
w(n)
'
Chap. 2
ttT .1.
(a)
(b)
rM .
r![It
xij|il
rl It
i o1
r!lfit
1
tTT
1 [1* ?
(c)
Figure 2.42 Use of autocorrelation to detect the presence of a periodic signal
corrupted by noise.
r vv(/) is illustrated in Fig. 2.41c. W e observe that the periodic signal *(/?), embedded
in y(n), results in a periodic autocorrelation function rZI(l) with period N 10. The
effect of the additive noise is to add to the peak value at / = 0. but for I ^ 0, the
correlation sequence rwu,(l) = ^ 0 a s a result of the fact that values of w(ri) were gen
erated independently. Such noise is usually called white noise. The presence of this
noise explains the reason for the large peak at I = 0. The smaller, nearly equal peaks
at I = 10, 2 0 ,... are due the periodic characteristics of x(n).
Figure 2.42 illustrates the noise sequence w(n), the noise-corrupted signal y(n),
and the autocorrelation sequence r vv(/) for the same signal, within which is embedded
a signal at a smaller noise level. In this case, the SNR = 5 dB. E ven with this relatively
small noise level, the periodicity of the signal is not easily determ ined from observa
tion of y( n). However, it is clearly evident from observation of the autocorrelation
sequence ryy(n).
Sec. 2.6
131
(2.6.29)
Y ' , x ( n ) y ( n /),
0 < 1 < N M
(2.6.30)
x ( n ) v ( n - 1)
0 < 1< N -1
(2.6.31)
132
C j lD
Chap. 2
Sec. 2.6
133
o u tp u t signal
v(n) = h( n) * .x (/?) =
h(k)x(>i k)
k=oc
T h e c ro ss c o rre la tio n b e tw e e n th e o u tp u t a n d th e in p u t signal is
r VJ-(7) = y d ) * x ( - l ) h ( l ) * [*(/) * * ( - / ) ]
or
ryx(l) = /;(/) * rxx(l)
(2.6.32)
(2.6.34)
w hich p ro v id e s th e en e rg y (o r p o w er) of th e o u tp u t signal in te rm s o f a u to c o r re
latio n s. T h e se re la tio n sh ip s h o ld fo r b o th en erg y a n d p o w e r signals. T h e direct
d e riv a tio n o f th e s e re la tio n sh ip s for en erg y an d p o w e r signals, a n d th e ir e x ten sio n s
to co m p lex sig n als, are left as exercises fo r the stu d e n t.
Input
rxx<n )
LTI
SYSTEM
Output
ft(n)
rvr(n)
Figure 2.44 Input-output relation for
crosscorrelation ryx(n).
134
Chap. 2
Chap. 2
135
Problems
PROBLEMS
2.1 A discrete-time signal x(n) is defined as
l + j,
3 < n < 1
1.
0 < n < 3
0,
elsewhere
(a) Determ ine its values and sketch the signal .v(n).
(b) Sketch the signals that result if we:
(1) First fold x{n) and then delay the resulting signal by four samples.
(2) First delay xin) by four samples and then fold the resulting signal
(c) Sketch the signal x ( n + 4 ).
(d) Com pare the results in parts (b) and (c) and derive a rule for obtaining the signal
,v(n -t- k) from
(e) Can you express the signal ,r(n) in term s of signals S(n) and u{n)l
2.2 A discrete-time signal ,v(n) is shown in Fig. P2.2. Sketch and label carefully each of
the following signals.
.v(n)
J_
J_
L L _ ________ _
- 2 - 1 0 1 2 3 4
FigUre P2.2
(a ) x(n - 2)
8(k) =
2.4 Show that any signal can be decomposed into an even and an odd component. Is the
decomposition unique? Illustrate your arguments using the stgnal
x(n) = {2. 3, 4. 5. 6)
t
2.5 Show that the energy (power) of a real-valued energy (power) signal is equal to the
sum of the energies (powers) of its even and odd components.
2.6 Consider the system
vf) = T[x( n) ] = x ( n 2)
136
Chap. 2
(b) To clarify the result in part (a) assume that the signal
_fl,
\ 0,
O 5 /1 < 3
elsewhere
Can you use this result to make any statem ent about the time invariance of this
system? Why?
(d) Repeat parts (b) and (c) for the system
y(rt) = T [ x ( n )] = nx(n)
2.7 A discrete-time system can be
(1) Static or dynamic
(2) Linear or nonlinear
(3) Time invariant or time varying
(4) Causal or noncausal
(5) Stable o r unstable
Examine the following systems with respect to the properties above.
(a) v() = cos[jc(n)]
v(n) =
x(k>
v(n) = x(n)cos(^n)
y(n) ~ x ( n + 2)
y(n) = Trun[;c(n)], where Trun[jc(n)] denotes the integer part of x(n), obtained
by truncation
(f) y(n) = Round[jc(n)], where Round[;c(n)] denotes the integer part of Jt(n) obtained
by rounding
Remark: The systems in parts (e) and (f) are quantizers that perform truncation and
rounding, respectively.
(g) y(B) = |*(n)|
(h) v(rt) = x(n)u(n)
(I) y(n) = x(n) + nx{n + 1)
(j) y ( n ) = x ( 2 n )
(b)
(c)
(d)
(e)
(I) y( n) = x ( - n )
(m) y(n) = sign[j:(n)]
(n) The ideal sampling system with input xaU) and output x(n) = x a(nT), oc <
n < oo
2J8 Two discrete-time systems 7] and T2 are connected in cascade to form a new system
T as shown in Fig. P2.8. Prove or disprove the following statements.
Chap. 2
137
Problems
yin)
xin )
Ti
T;
T - T-. T 2
Figure P2.8
(a) If T\ and % are linear, then T is linear (i.e.. the cascade connection of two linear
systems is linear).
(b) If T\ and
are time invariant, then T is time invariant.
(c) If T[ and 7? are causal, then T is causal.
<d) If T] and T2 are linear and time invariant, the same holds for T .
(e) If 7] and T2 are linear and time invariant, then interchanging their order does not
change the system T.
(0 As in part (e) except that 7J, T2 are now time varying. (Hint: Use an example.)
(g) If 7] and T2 are nonlinear, then T is nonlinear.
(h) If T< and T2 are stable, then T is stable.
(i) Show by an example that the inverse of parts (c) and (h) do not hold in general.
2.9 Let T be an LTI, relaxed, and BIBO stable system with input x{n) and output y(n).
Show that:
(a) If x(n) is periodic with period N [i.e., jr(n) = x{n + N) for all n > 0], the output
y(n) tends to a periodic signal with the same period.
(b) If x(n) is bounded and tends 10 a constant, the output will also tend to a constant.
(c) If x{n) is an energy signal, the output y(n) will also be an energy signal.
2.10 The following in p u t-output pairs have been observed during the operation of a umeinvariam system:
x,(n) = {1.0,2} ^
t
x,(n) = {0.0,3} ^
t
x-\(n) = {0. 0, 0. 1}
vj(n) = (1,2, 1}
Can you draw any conclusions regarding the linearity of the system. W hat is the
impulse response of the system?
2.11 The following input-output pairs have been observed during the operation of a linear
system:
Xi(n) = {-1. 2. 1}
t
y,(/i) = (1, 2. - 1 , 0. 1}
t
\'2in) = {-1. 1, 0, 2}
t
x 3(n) = {0, 1, 1)
t
t
y i ( n) = {1, 2. 1}
r
Can you draw any conclusions about the time invariance of this system?
2.12 The only available information about a system consists of N input-output pairs, of
signals y,(rc) = T[xj(n)], / = 1, 2........N.
138
Chap. 2
(a) What is the class of input signals for which we can determ ine the output, using
the information above, if the system is known to be linear?
(b) The sam e as above, if the system is known to be tim e invariant.
2.13 Show that the necessary and sufficient condition for a relaxed LTI system to be BIBO
stable is
y .
for n < 0
2.15 (a) Show that for any real or complex constant a, and any finite integer num bers M
and N, we have
n
a M a h
. if * !
1 <3
N - M + 1,
if a = 1
y v
= - i -
l - a
/ .- where ^
_w
(b) Compute the convolution y(n) = x(n) * h(n) of the following signals and check
the correctness of the results by using the test in (a).
(1) jr(n) (1,2, 4), /)(n) = (1 ,1 ,1 ,1 ,1 }
(2) x(n) = {1, 2, - 1 ) , h(n) = x (n)
(3) x(n) = (0,1, - 2 , 3. - 4 ) . h(n) = {, i , 1, 1}
(4) jc(n )= :{1 .2 .3.4.5J.A (n) = {l)
(5) x(n) = (1, -2 ,3 } , h(n) = (0, 0 .1 .1 ,1 ,1 )
t
t
(6) x(n) = { 0 ,0 ,1 ,1 ,1 ,1 ), h(n) = { 1 ,-2 . 3}
t
t
(7) jr(u) = {0,1, 4, -31. h(n) = [1,0, - 1 , -1}
t
t
(8)
2.17 Compute and plot the convolutions x(n) * h(n) and h(n) *x(n) for the pairs of signals
shown in Fig. P2.17.
Chap. 2
139
Problems
trln)
b TI f
0 12 3
0 l 2 3 4 5 b
h\n)
j x(n)
Iiit.
1 2 3
-3-2-10 I 2 3
hin)
x(n)
i
..III!..
3 4 5 6
II
htnl
J (n )
]
111
II
2-1
2 3 4 5
<di
2.18
Figure P2.17
-V(/l) =
h(n) -
0 < Ji < 6
elsewhere
0.
1,
0.
2 < n < 2
elsewhere
(a) Graphicallv
(b) Analytically
h(n) =
o'".
3 < n < 5
0.
elsewhere
1,
0,
0< n< 4
elsewhere
1.
2,
. 0,
n = 2, 0, 1
n = 1
elsewhere
140
Chap. 2
(b)
(c)
(d)
(e)
Sketch x(n), yi(n), y 2(n) on one graph and *(). y3(n), y,j(n), y.s(n) on another
graph
W hat is the difference between yi() and \2(n). and between y^(n) and y^(n)?
Comment on the smoothness of v2(/?) and v4(n). Which factors affect the sm ooth
ness?
Compare y4(n) with ysfn). What is the difference? Can you explain it?
Let h(,(n) = {^, - j } . Com pute y6<n). Sketch v(n), y 2(n), and yft(n) on the same
figure and comment on the results.
n > 0
is at rest [i.e., v(1) = 0]. Check if the system is linear time invariant and BIBO stable.
2.24 Consider the signal y(n) = a"u(n), 0 < a < 1.
(a) Show that any sequence x{n) can be decomposed as
Chap. 2
Problems
141
2 2 1 D eterm ine the response yin). n > 0. of the system described by the second-order
difference equation
yin) - 3v(n 1) 4y(/i 2) = xin) + 2x(n 1)
to the input xin) = 4"w(n).
2.28 Determ ine the impulse response of the following causal system:
y(n) 3y(n 1) 4v(n 2) = jr(n) + 2x(n 1)
2.29 Let xin). A'i < n < N2 and h(n),
< n < M2 be two finite-duration signals.
(a) Determ ine the range L\ < n < L 2 of their convolution, in term s of N\, N2, M\
and M2.
(b) Determ ine the limits of the cases of partial overlap from the left, full overlap,
and partial overlap from the right. For convenience, assume that h(n) has shorter
duration than jc().
(c) Illustrate the validity of your results by computing the convolution of the signals
-2 < n < 4
elsewhere
-1 < n < 2
elsewhere
2.30 Determ ine the impulse response and the unit step response of the systems described
by the difference equation
(a) yin) = ().6y(;i - 1) - ().08v(n - 2) + xin)
(b) _v( ) = 0.7y(;; - 1) - 0.1 yin - 2) -f 2xin) - xin - 2)
231 Consider a svstem with impulse response
A,) = H r '
( 0.
- n - 4
elsewhere
Determ ine the input xin) for 0 < n < S that will generate the output sequence
v(n) = 1 1 .2 .2 .5 .3 .3 .3 .2 .1 .0 ....}
t
232 Consider the interconnection of LTI systems as shown in Fig. P2.32.
(a) Express the overall impulse response in terms of h \ (n), h2(n), h^in). and h^in).
(b) D eterm ine h{n) when
M ) = {j. 3 . 7 }
h2{n) hy(n) = (n + 1 )u(n)
fi4(n) = S(n 2)
Figure P 2J2
142
Chap. 2
2 3 3 Consider the system in Fig. P2.33 with h(n) = a"u(n), 1 < a < 1. Determ ine the
response y(n) of the system to the excitation
*(n) = (n + 5) u(n 10)
x(n)
Figure P233
2 3 4 Com pute and sketch the step response of the system
U_ 1
2 3 5 Determ ine the range of values of the param eter a for which the linear time-invariant
(Hint: The solution can be obtained easily and quickly by applying the linearity and
tim e-invariance properties to the result in Exam ple 2.3.5.)
2 3 7 D eterm ine the response of the (relaxed) system characterized by the impulse response
h(n) = ( l ) u(n)
to the input signal
| 1,
x(n) = { ^
10,
0 < n < 10
~
otherwise
2 3 8 D eterm ine the response of the (relaxed) system characterized by the impulse response
h(n) = ( j ) Hu{n)
to the input signals
(a) x(n) = 2nu(n)
(b) x(n) = u ( - n )
Chap. 2
143
Problems
239 T hree systems with impulse responses h\(n) 5(n) &(n 1). h2(rt) = h( n}. and
= u(n), are connected in cascade.
(a) W hat is the impulse response.
of the overall system?
(b ) Does the order of the interconnection affect the overall system?
2.40 (a) Prove and explain graphically the difference between the relations
x(n )5(n no) =
o)
and
N) = bi)v(n)
T
by solving the difference equation recursively.
2 .43 Determ ine the direct form II realization for each of the following LTI systems.
(a) 2v(n) + y(n 1 ) - 4 v(n 3) = x(n) + 3x(n 5)
(b) y(n) = Jr(n) x(n 1) + 2x(n 2) 3x(n - 4)
2 .4 4 Consider the discrete-time system shown in Fig. P2.44.
Figure P2.44
(c) Apply the input x(n) = { 1 .1 .1 ....} and com pute the first 10 samples of the output,
t
144
Chap. 2
(d) Com pute the first 10 samples of the output for the input given in part (c) by using
convolution.
(e) Is the system causal? Is it stable?
2 ^ 5 Consider the system described by the difference equation
y(n) = ay(n - 1) + bx(n)
(b ) Com pute the zero-state step response s(n) of the system and choose b so that
j(oo) = 1.
(c) Com pare the values of b obtained in parts (a) and (b). W hat did you notice?
2*46 A discrete-time system is realized by the structure shown in Fig. P2.46.
(a) D eterm ine the impulse response.
(b) Determ ine a realization for its inverse system, that is, the system which produces
x( n) as an output when y(n) is used as an input.
x in )
-o
-0
v(n)
0.8
Figure P2.46
v(n)
Figure P2^f7
(a) Com pute the first six values of the impulse response of the system.
(b ) Com pute the first six values of the zero-state step response of the system.
(c) Determ ine an analytical expression for the impulse response of the system.
1 4 8 D eterm ine and sketch the impulse response of the following systems for n 0,
1........9.
(a) Fig. P2.48(a).
(b ) Fig. P 2 .4 8 (b ).
(c) Fig. P2.48(c).
Chap. 2
Problems
145
Cc)
Figure P2.48
146
Chap. 2
v (n )
yin)
2.51 Com pute the sketch the convolution y,(n) and correlation r,(n) sequences for the
following pair of signals and comment on the results obtained.
(a) *,{) = (1.2.4)
A ,(n )= (1 ,1 .1 .1 . If
t
h2(n) = U. 1. 2 . 1 , i}
(c)
jt-j( b )
= (1.2. 3, 4}
t
A3 (u )
= (4. 3. 2, 1)
t
hA(n) = (1.2.3. 4)
t
2.52 The zero-state response of a causal LTI system to the input x ( n ) = {1,3, 3,1) is
y(n) = (1,4, 6 ,4 ,1 ). Determ ine its impulse response.
t
Chap. 2
Problems
147
2.53 Prove by direct substitution the equivalence of equations (2.5.9) and (2.5.10), which
describe the direct form II structure, to the relation (2.5.6), which describes the direct
form I structure.
2.54 D eterm ine the response y(n). n > 0 of the system described by the second-order
difference equation
y ( n) 4 y(n - 1) + 4v(/i 2) = x( n) x( n 1)
c(n) =
1.
I 0,
k) =
n >k
otherwise
2.57 Show that the output of an LTI system can be expressed in term s of its unit step
response v(n) as follows.
i'(n) = y " ' [,v(A:) x(k 1)]jr(fl k)
[x(AQ - x ( k - l) ] s ( /i - k)
c
2.58 Com pute the correlation sequences rIX(l) and rtv(l) for the following signal sequences.
j _
P nu - N < n < n {, + N
I 0,
f 1.
v(n)
10,
otherwise
-N <n < N
otherwise
148
Chap. 2
2.61 An audio signal j(r) generated by a loudspeaker is reflected at two different walls
with reflection coefficients r ] and r2. The signal *(/) recorded by a microphone close
to the loudspeaker, after sampling, is
x (n) = s(n) + rxs(n k\) + r2s(n k2)
where kt and k2 are the delays of the two echoes.
(a) Determ ine the autocorrelation rzx(I) of the signal x(n).
Can we obtain ri, r2, k\, and k2 by observing r,s (1)1
(c) W hat happens if r2 = 0?
(b)
2.62* Time-delay estimation in radar Let xa(t) be the transm itted signal and yfl(r) be the
received signal in a radar system, where
y(r) = axa(t - id) + vu(f)
and va(t) is additive random noise. The signals xa(t) and >(/) are sampled in the
receiver, according to the sampling theorem , and are processed digitally to deter
mine the time delay and hence the distance of the object. The resulting discrete-time
signals are
jr(n) = xa(nT)
y(n) = y(nT) = axu(nT - DT) + vu(nT)
= ax(n D) + u(n)
(a) Explain how we can measure the delay D by computing the crosscorrelation r*,.(/).
(b) Let x(n) be the 13-point Barker sequence
X
and u(n) be a Gaussian random sequence with zero mean and variance a 2 = 0.01.
Write a program that generates the sequence v(n), 0 < n < 199 for a = 0.9 and
D = 20. Plot the signals jt(), y(n), 0 < n < 199.
(c) Compute and plot the crosscorrelation rTV(/), 0 < / < 59. Use the plot to estimate
the value of the delay D.
(d) Repeat parts (b) and (c) for a 2 = 0.1 and a 2 = 1.
<e) Repeat parts (b) and (c) for the signal sequence
jt(n) = j _ l , _ l , - l , + i , + i , + i . + i , - i ,
+ 1 . - l . + l . + l , - 1 ,- 1 ,+ 1 }
which is obtained from the four-stage feedback shift register shown in Fig. P2.62,
Figure P2.61
register.
Chap. 2
Problems
149
Note that x(n) is just one period of the periodic sequence obtained from the
feedback shift register.
(f) Repeat parts (b) and (c) for a sequence of period N 27 1, which is obtained
from a seven-stage feedback shift register. Table 2.3 gives the stages connected
to the modulo-2 adder for (maximal-length) shift-register sequences of length
N =2"
TABLE 2.3 SHIFT-REGISTER
CONNECTIONS FOR GENERATING
MAXIMAL-LENGTH SEQUENCES
m
1. 2
1. 3
1. 4
S. 4
L6
1. 7
1, 5, 6. 7
1.6
1. K
1. 10
i. 7. y, 12
1. H), 11. 13
1. 5. 9. 14
1. 15
1. 5. 14, 16
1. 15
3
4
5
6
7
H
y
id
li
12
13
14
15
16
17
, .
1 h(n),
10.
0 < n < 19
elsewhere
where h(n) is the impulse response computed in part (a). W rite a program to
compute and plot its step response.
(d) Com pare the results obtained in parts (b) and (c) and explain their similarities
and differences.
150
Chap. 2
2jS4* W rite a com puter program that computes the overall impulse response h(n) of the sys
tem shown in Fig. P2.64 for 0 < n < 99. The systems TU T2, T 3, and % are specified by
Ti : hi(n) = {1 . 5 .
t
g.
55)
T2 : h 2(n) = {1,1,1,1,11
t
Ts :
+ 5*(" - 1) +
- 2)
Figure P2.64
152
Chap. 3
3.1.1 T h e D ire c t z - T r a n s f o r m
T h e ^ -tran sfo rm o f a d isc re te -tim e signal jt(fi) is d efin ed as th e p o w e r series
OC
X(z) =
n= oo
x { n ) z ~'
(3-u )
(3.1.2)
w h ereas th e re la tio n sh ip b e tw e e n x ( n ) a n d X ( z ) is in d ic a te d by
jc()
< -^ * (;)
(3.1.3)
(e) x j ( n ) = S( n)
(a) X](z) = 1 + 2z~' + 5z~2 + 7 z '3 + z~5, ROC: entire z-plane except z = 0
(b) X 2(z) = z2 + 2z + 5 + 7c-1 + z-3, ROC: entire z-plane except z = 0 and z = oo
(c) Xj(z) = z~2 + 2z-3 + 5z-4 + 7z-5 -I- z-7, ROC: entire z-plane except z = 0
(d) X4(z) = 2z2 -I- 4z -I- 5 4- 7z_1 -I- z-3, ROC: entire z-plane except z = 0 and z = oo
(e) X;(z) = l[i.e S(n)
(f) Xb(z) = z_ t[i.e &(n k) z_t], k > 0, ROC: entire z-plane except z = 0
(g) Xy(z) = zk[i.e &(n + k)
Sec. 3.1
153
The z-Transform
x(n)= ( l . a u ^ . U )'1....
The z-transform of x(n) is the infinite power series
X( z ) = 1 + U ' + ( ^) 2z - 2 + (| ) "z"" + ---
ft=<)
nail
1 A
Consequently, for | 1
if | A 1 < 1
X(z) converges to
jZ
We see that in this case, the z-transform provides a compact alternative representation
of the signal x(n).
L e t us e x p ress th e co m p lex v a ria b le z in p o la r fo rm as
z = r e }6
w h ere r = |z| a n d 6 = i^z- T h e n X ( z ) can be e x p ressed as
OC
X ( z ) \ t- r ' = Y
x ( n ) r ~ ne - j en
n*-00
(3.1.4)
154
Chap. 3
In th e R O C o f X U ). |X ( ;) | < oc. B ut
(3.1.5)
5
\ M n ) r - ne - ' * n \ =
\ x( n) r ~n\
(3.1.6)
Solution
If \az 11 < 1 or equivalently, |z| > |a |, this power series converges to 1/(1 - a ; -1).
Sec. 3.1
The z-Transform
155
Im(z)
Im(;)
Im(z)
156
Chap. 3
lm(;)
Figure 3.2 The exponential signal xi n) = txnu{n) (a), and the ROC of its
transform (b).
X (;) =
1 - a ;-1
(3.1.7)
The R O C is the exterior of a circle having radius |a |. Figure 3.2 shows a graph of the
signal .x(n) and its corresponding ROC. Note that, in general, or need not be real.
If we set or = 1 in (3.1.7), we obtain the z-transform of the unit step signal
x(n) - u(n)
X(z) =
(3.1.6
Example 3.1.4
Determ ine the z-transform of the signal
x(n) = a"u( n 1) =
Solution
n >0
n < -1
0,
oc
n---oc
/= i
A
1 - A
1
1 a ~ lz
l - a ; '1
provided that |cr_1z| < 1 or, equivalently, |z| < jar j. Thus
1
(3.1.9)
ROC: [z| < |a |
1-azThe R O C is now the interior of a circle having radius |a|. This is shown in Fig. 3.3.
x(n) = a"u( n 1)
X(Z) = -
Sec. 3.1
The z-Transform
157
Im(c)
Figure 3.3 Anticausal signal jt(h) = -crnu( n - 1) (a), and the ROC of its
transform (b).
1) ) -
------ --------
1 a c ' 1
X(z) =
n=0
n = oc
+ Y ib -'z)1
n=0
i= l
The first pow er series converges if locz-11 < 1 or |z| > |a |. The second power series
converges if \b~xz\ < 1 or |z| < |6j.
In determ ining the convergence of XCz), we consider two different cases.
158
Chap. 3
1 ccz 1
1 bz 1
b a
(3.1.10)
a + b z abz~l
The R O C of X(z) ts |cr| < \z\ < \b\.
T h is e x am p le show s th a t i f there is a R O C f o r an infinite durat i on two-si ded
signal, it is a ring ( annul ar region) in the z-plane. F ro m E x a m p le s 3.1.1, 3.1.3, 3.1.4,
an d 3.1.5. w e see th a t th e R O C of a signal d e p e n d s o n b o th its d u ra tio n (finite
or in fin ite) an d o n w h e th e r it is cau sal, a n tic a u sa l, o r tw o -sid ed . T h e se facts are
su m m a riz e d in T a b le 3.1.
O n e special case of a tw o -sid ed signal is a signal th a t h as infinite d u ra tio n
on th e rig h t sid e b u t n o t on th e left [i.e., x( n ) = 0 fo r n < (l < 0], A sec
on d case is a signal th a t has infinite d u ra tio n o n th e left side b u t n o t on the
plane
Im(;)
krl < IAI
ReU)
Sec. 3.1
159
The ^-Transform
TABLE 3.1
C O R R E S P O N D IN G ROC
Signal
ROC
Finite-Duration Signals
Two-sided
. . TTT l i t ,
Jnfinite-Duration
Causal
l l T t*
Anltcausal
T] T1
Two-sided
I . I t.....
rig h t [i.e., x{ n ) = 0 fo r n > n\ > 0]. A th ird sp ecial case is a signal th a t has
finite d u ra tio n o n b o th th e left a n d rig h t sides [i.e., x ( n ) = 0 fo r n < no < 0
a n d n > n\ > 0]. T h e se ty p e s o f signals a re so m e tim e s c alled right-sided, left
sided, a n d finite-d uration two-sided, signals, resp ec tiv ely . T h e d e te rm in a tio n o f th e
R O C fo r th e s e th r e e ty p es o f signals is left as an e x ercise fo r th e r e a d e r (P r o b
lem 3.5).
F in ally , w e n o te th a t th e z -tra n sfo rm d efin ed b y (3.1.1) is so m e tim e s re fe rre d
to as th e tw o-sided o r bilateral z-transform , to d istin g u ish it fro m th e o ne-sided o r
160
Chap. 3
(3.1.11)
Figure 3.5
(3.1.13).
Sec. 3.2
161
(3.1.13) b eco m es
x ( z ) z n- ' d z =
t= 00
x ( k ) ( h z n- l~kd z
*
(3.1.14)
N o w w e can in v o k e th e C a u ch y in te g ra l th e o re m , w hich s ta te s th a t
ftM5)
w h ere C is an y c o n to u r th a t en clo ses th e origin. B y ap p ly in g (3.1.15), th e righth a n d side o f (3.1.14) re d u c e s to 2 n j x ( n ) a n d h en c e th e d e sire d in v e rsio n fo rm u la
x ( n ) = ^ - ^ X ( z ) z n_I d z
(3.1.16)
Linearity.
If
Jt,(n)
Xi ( z )
an d
x 2(n) < -U X 2(z)
th e n
x( n) = a \ x \ ( n ) + a 2x 2(n)
X( z ) = a j Xj ( z ) -h o2X 2(z)
(3.2.1)
162
Chap. 3
Example 3.2.1
Determ ine the z-transform and the R O C of the signal
*() = [3(2") -4 (3 ")] ( )
Solution
and
x2(n) = 3"u(n)
then
jc()
can be written as
x(n) = 3xi(n) 4 x2(n)
1 - az
(3.2.2)
X,(z) = ^
x2(n) = 3nu(ri)
X 2(z) ~ ^ __
The intersection of the ROC of X,(z) and X2(:) is |z| > 3. Thus the overall transform
X (z) is
ROC: |;| > 3
Example 3.2.2
Determ ine the z-transform of the signals
(a) x(n) = (COSoon)u(n)
(b) x(n) = (sin w^n)u(n)
Solution
(a) By using E uler's identity, the signal .t(n) can be expressed as
x (n) = (cosa>on)u(n) = \ e Jaln"u(.n) + ^e~JUJnu(n)
Thus (3.2.1) implies that
X( z ) = \ Z { e ^ u ( n ) ) + ^ { g - ^ u i n ) }
Sec. 3.2
163
---------------
R O C : |z[ > 1
e - ,wnnu(n) ^
-------- T T T
R O C : l; l >
and
1-
Thus
X(z) = -------- ----------h I ------- - ------r
2 1 ^ f z -1
2 1 e~J^lz~I
RO C : |;1 > 1
A fter some simple algebraic manipulations we obtain the desired result, namely,
:
1 C_ ! COSW()
,, ,, ,
L r2.j)
Thus
X(-) = ^ - f - ------1------- - ------- ------- - |
2j \ 1
r _1
1
and finally.
z sm OH)
(sin coi,n)u(n) x - ^ ----- - -----------------1 - 2z_1 cos wo + z~-
Time shifting.
(3.2.4)
If
x( n)
X (c)
th e n
x{n - k ) z ~ kX{ z )
(3.2.5)
164
Chap. 3
and
*i(n) = j:i(n - 2)
Thus from (3.2.5) we obtain
X2(z) = z2X, (z) = r + 2; + 5 + 7z ' 1 + z3
and
X 3(z) = r 2X,(z) = z"2 + 2z"3 + 5z-4 + 7z"s + z-7
Note that because of the multiplication by z2, the R O C of X2(z) does not include the
point z = oc, even if it is contained in the R O C of A^i(z).
E x am p le 3.2.3 p ro v id es a d d itio n a l insight in u n d e rs ta n d in g th e m e an in g of
th e shiftin g p ro p e rty . In d e e d , if we recall th a t th e coefficient o f z ~ n is th e sam ple
v alu e at tim e n, it is im m e d ia te ly se en th a t d elay in g a signal by k( k > 0) sam ples
[i.e., x ( n )
x ( n A')] c o rre sp o n d s to m u ltip ly in g all te rm s o f th e z -tra n sfo rm by
z~ k. T h e co efficien t o f z~" b ec o m e s th e coefficient o f ~~tn+k).
Example 3.2.4
Determ ine the transform of the signal
f 1,
' " H o .
0 < n < jV - 1
e lse w h e r e
,
<316>
Solution We can determ ine the z-transform of this signal by using the definition
(3.1.1). Indeed,
* -i
f N,
if z = l
X(z) = ^ l z ^ = l + ; - ' + - - - + z - (Af- l l =
l - r *
-f . , ,
(3.2.7)
*=<'
I 1 - z-1' 1
Since .v(n) has finite duration, its R O C is the entire z-plane, except z 0.
Let us also derive this transform by using the linearity and time shifting prop
erties. Note that x in) can be expressed in terms of two unit step signals
x(n) = u(n) u(n N)
By using (3.2.1) and (3.2.5) we have
X(z) = Z{u(n)} - Z{u(n - N)) = (1 - z"*')Z{u ()}
(3.2.8)
If
X{z )
Sec. 3.2
165
th en
a nx ( n )
X (c ~ z)
(3.2.9)
Z{a" x( n) } =
OC
a nx ( n ) z " =
x( n) ( a z) n
w-plane
Im(-)
(W-C^o
0
Figure 3.6
o _ 1 Z,
Re(z)
Re(w)
a roe^.
166
Chap. 3
Solution
(a) From (3.2.3) and (3.2.9) we easily obtain
1 - a ; -1 cos wn
a
(C O S a i |, ) u ( r t )
(3.2.10)
1 l a z r 1 co s ton -f a
Time reversal.
|z! > la I
(3.2.11)
If
a (//) *-> X ( z )
R O C : r\ <
< r;
th en
j r ( - n ) <-i-> X { z ~ ])
R O C : < |z < r2
(3.2.12)
r\
Y
h= - x.
-x { - !i ) z~" Y
' ( h ( z ~ t )~l Ar (z~ ')
/= ->;
o r e q u iv alen tly
Solution
ROC:
|zl
> 1
* ------
ROC: |z < 1
If
(3.2.13)
167
Sec. 3.2
then
n x { n ) < >- z ^ ^ y
dz
(3.2.14)
n=oc
- z ~ l Z{nx(n)}
N o te that b oth transform s have the sam e RO C .
Example 3.2.7
D eterm ine the z-transform of the signal
jr(n) = na"u(n)
Solution The signal j:(n) can be expressed as njcitn), where Xj(n) = a"u(n). From
(3.2.2) we have that
jri(rt) = aKu(n) < - X,(z) = - ----- 1 az~'
dXji z)
a : '1
X(z) = - z ^ - = ----------- r-r
az
(1 - az~' V
(3.2.15)
ntt(n)
(3.2.16)
Example 3.2.8
D eterm ine the signal x(n) whose z-transform is given by
X(z) = log(l -t- o z '1)
= az
1 - (- a ) z ->
>
\a]
The inverse z-transform of the term in brackets is (-a) ". The multiplication by
z _1 implies a time delay by one sample (time shifting property), which results in
( - a ) " _ 1u(n 1). Finally, from the differentiation property we have
nx(n ) = a ( a)n~lu(n 1)
168
Chap. 3
x ( n) = ( - 1 } " +1 u(n - 1)
If
Xi (rt)
X^z)
x 2(n)
X 2 {z)
th e n
x( n) = jfi(n) * x 2 (n)
X ( z ) = X \ ( z ) X 2 (z)
(3.2.17)
x(n) =
x i ( k ) x 2(n - k)
i' = oc
T h e z-tra n sfo rm o f x( n ) is
oc
AT{;) =
oc
Y 2 x( n) z ~ " =
ac
Y ,
x \ ( k ) x 2(n - k)
n= - o c |_Jt = -cc
n- x
x 2(n k) z "
x ' {k)
= X 2 (z) Y
^ ( k ) z ~ k = X 2 ( z ) X ](z)
Example 3.2.9
Compute the convolution x(rt) of the signals
jt,(n) = { 1 .-2 ,1 )
_ f 1.
0 < n < 5
10 ,
elsewhere
Sec. 3.2
169
1 - ; -6
= 3 p
Then
- z "6 + :" 7
The reader is encouraged to obtain the same result explicitly by using the convolution
summation formula (tim e-domain approach).
T h e co n v o lu tio n p ro p e rty is o n e o f th e m o st p o w erfu l p ro p e rtie s o f th e ztra n sfo rm b ec a u se it c o n v e rts th e co n v o lu tio n o f tw o signals (tim e d o m a in ) to
m u ltip lic a tio n o f th e ir tra n sfo rm s. C o m p u ta tio n of th e c o n v o lu tio n o f tw o signals,
using th e z -tra n sfo rm , re q u ire s th e follow ing steps:
1. C o m p u te th e z -tra n s fo rm s o f th e signals to be co n v o lv ed .
X i(z) = Z{ x \ ( n ) \
(tim e d o m ain * -.-dom ain)
X 2 (z) = Z { x 2 (n) ]
(z-d o m ain )
If
xj(n)
X i(z)
x 2 (n)
X 2 (z)
th e n
OC
(3.2.18)
170
Chap. 3
a " u {n ).
1 <
< 1
(causal signal)
| = -....
1 - az
(anticausal signal)
Thus
= - = ------------ ------------ 1 az 1 1 - az
1 a (; + ; ) + fl
Since the R O C of Rxx(z) is a ring, rIX{i) is a two-sided signal, even if x(n) is causal.
To obtain rsJ l ) , we observe that the ^-transform of the sequence in Exam
ple 3.1.5 with b = 1 /a is simply (1 a1)Rxx(z). Hence it follows that
rXI(l) = -- a ^
oc < I < oo
\ a-
The reader is encouraged to compare this approach with the time-dom ain solution of
the same problem given in Section 2.6.
If
x \ ( n)
ATi(z)
x 2 (n)
X 2 {z)
th e n
r(n) = x i ( n ) x 2 (n)
X(z) =
( ) v~ ^ v
(3.2.19)
Sec. 3.2
171
OC
X(z) = Y
OC
x( n)z ~n = Y
x ] ( n) x 2 ( n) z ~n
n = oc
ft
" oc
X (z)= 2
v~ ^ v
H e n c e th e R O C fo r A"(z) is at least
r\ir2i < |z[ < r u r2u
(3.2.20)
X(z) =
v~ldv
(3.2.21)
Parsevals relation.
y
* i(n )x 2 (n) = l j ( j ^ X i ( v ) X 2
v ~ 'd v
(3.2.22)
p ro v id e d th a t r ^ r y < 1 < n ur2u, w h e re ry < |z| < r \ u a n d r ^ < |z| < r2u a re th e
R O C o f X ](z) a n d X 2(z). T h e p ro o f o f (3.2.22) follow s im m e d ia te ly by ev alu atin g
X ( z ) in (3.2.21) at z = 1.
172
Chap. 3
.r(0) = lim X ( z )
:*sc
(3.2.23)
J K ,) .
D( z)
ao + a i z 1 + ----- \ - aNz ~ h
= --------*
(3.3.1)
k=o
If ao / 0 an d bo ^ 0, w e can avoid th e n eg ativ e p o w e rs o f z by fa cto rin g o u t the
te rm s boz~M a n d a$z~N as follow s:
X(z)
N( z)
b 0z ~ M z M + {bx/ bo) z M~ x + + b M/ b 0
D( z)
TABLE 3.2
Property
Time Domain
z-Domain
R OC
Notation
Linearity
*(n)
xt (n)
^(n)
aixy(n) + a2x 2(n)
X(z)
Xi(z)
X 2(z)
<t\* l(z ) + 2X 2(z)
Time shifting
x{n - k)
z~kX(z)
a"x(n)
X(a~' z)
Time reversal
x(~rj)
X(z~')
Conjugation
Real part
Imaginary part
x'(rt)
Relx(n)}
lm{x(n))
X' ( z ' )
ROC
Includes ROC
Includes ROC
Differentiation in the
z-domain
Convolution
nx(n)
x i ( n ) * x 2(n)
Jf|(z)X 2(z)
Correlation
/ W z ) = Xi<z)* 2<z_l)
If x(n) causal
Multiplication
Xi(n)x 2(n)
2~J^X,(v)X2^ J v - ' d v
Parsevals relation
= 2? i i
r1
r2
174
Signal. x(n)
1
u(n)
a"u(n)
A ll ;
1:1 > 1
1 az~l
a:" 1
na"u(n )
( l - a z ^ )2
au(n 1)
na'u(n 1)
(cos aion)u(n)
(sin a>nn)u(n)
( a" cosiH ) n ) u ( n )
10
1 - r-1
1
ROC
: -Transform, X (c)
5{n)
Chap. 3
(a'1sini*in)u{n)
1
k l < la|
1 a : -1
a z~l
|;| < N
(1 - c : - 1)2
1 - Z '1 COSf^o
1 - 2; _1 costal + z ~2
sin
1-
kl > 1
\z\ > 1
1 2az~ cos wo + a 2z ~2
a ; -1 sinaiii
1-
a 2z ~2
Since N ( z ) and D( z ) are polynom ials in z, they can be expressed in factored form as
X (-)
b() - - M + N
D( z )
~
~ Z2) (Z ~
(z - p i ) ( z - P i ) (z -
Zm )
p n
u
n " z*}
(3.3.2)
X ( z ) = G z N~ M^A ------------
n<* ~ pjt)
*=i
w here G = 6o/ao- Thus X (r) has M finite zeros at z = z\, zi , . , z m (th e roots o f
the num erator p olyn om ial), N finite p oles at z = p \ , p i .........P n (th e roots o f the
d enom inator p olyn om ial), and \N M\ zeros (if N > M ) or p o le s (if N < M ) at
the origin z = 0. P o les or zeros m ay also occur at z = 0 0 . A zero exists at z = oc if
X ( 0 0 ) = 0 and a p o le exists at z = oc if X ( 0 0 ) = oc. If w e count the p oles and zeros
at zero and infinity, w e find that X (z) has exactly the sam e num ber o f p o les as zeros.
W e can represent X ( z ) graphically by a p o l e - z e r o p l o t (or pat t ern) in the
com plex plane, which show s the location o f p oles by crosses ( x ) and the location
o f zeros by circles (o). T he m ultiplicity of m ultipie*order p o les or zeros is indicated
by a num ber clo se to the corresponding cross or circle. O b viou sly, by definition,
the R O C o f a z-transform should not contain any poles.
Sec. 3.3
175
Rational z-Transform s
x(n) = a"u(n)
Solution
1_____
X(z) =
- a
1 a ; -1
Thus
has one zero at n = 0 and one pole at pi = a. The pole-zero plot is
shown in Fig. 3.7. Note that the pole p\ = a is not included in the R O C since the
z-transform does not converge at a pole.
Re(;)
Figure 3.7
Exam ple 3 3 .2
D eterm ine the pole-zero plot for the signal
1 0,
Of n < W - 1
elsewhere
where a > 0.
Solution
ln
l - t a ; ' 1) "
z - a u
1 - az 1 = Sz T T t--------T
(z - a)
1}" = - r r ^ ------ r
it
0 , 1 . . . . . . M
(Z - Z\ ) ( Z - Zl ) (Z - Z j t f - i )
which has M 1 zeros and M - 1 poles, located as shown in Fig. 3.8 for M = 8. Note
th at the R O C is the entire z-plane except z = 0 because of the M - 1 poles located
at the origin.
176
Chap. 3
Im(c)
Red)
Z(Z r C O S ttH i)
(; - Pi)(c - pi)
ROC:
C O S a><)
Xiz) = G-.
1 - 2 r - ~ l costou + r1
Sec. 3.3
177
Rational z - T ransforms
- - 2
(a)
178
Chap. 3
X ( z ) = ------ r
1 az
h av in g o n e z e ro a t zi = 0 an d o n e p o le a t pi a on th e re a l axis. F ig u re 3.11
x (n)
11
x(n )
1 1 ! TTt
x(n
x(n)
i l l
rt
I I I
x(n)
'1
n i
1
-oi
'
Sec. 3.3
179
Rational z-Transform s
<
T T ....
xin)
T
0
!
1
180
Chap. 3
Finally, Fig. 3.14 show s the b eh avior o f a causal signal w ith a d ou b le pair of
p o les on the unit circle. T his reinforces the corresponding results in Fig. 3.12 and
illustrates that m ultiple p o les on the unit circle should b e treated with great care.
T o sum m arize, causal real signals w ith sim ple real p oles or sim ple com plexconjugate pairs o f p oles, w hich are in sid e or on the unit circle are always bounded
in am plitude. Furtherm ore, a signal with a p o le (or a com p lex-con ju gate pair
o f p o les) near the origin decays m ore rapidly than on e a ssociated with a pole
n ear (but inside) the unit circle. Thus the tim e behavior o f a signal depends
strongly on the location o f its p o les relative to th e unit circle. Z eros also af
fect the behavior o f a signal but n ot as strongly as p oles. F or exam ple, in the
Sec. 3.3
181
Rational z-Transform s
(3.3.4)
(3.3.6)
182
Chap. 3
) = - J 2 a*Y ^ z ~k + E
b iX (z )r
M
Y(z)
X(z)
o r, eq u iv alen tly ,
> z-*
(3.3.8)
(3.3.9)
Sec. 3.3
183
Rational z-Transform s
an all -zero syst em. C learly, such a system h as a fin ite -d u ra tio n im p u lse resp o n se
(F IR ), a n d it is called an F IR system o r a m oving av erag e (M A ) system .
O n th e o th e r h an d , if bk 0 fo r 1 < k < M, th e system fu n c tio n re d u c e s to
A'
*= 1
k
(3.3.10)
boz"
<io = l
at*.
In this case H ( z ) co n sists of N poles, w hose v alu es are d e te r m in e d by th e system
p a ra m e te rs {a*} a n d an /V th-order zero at th e o rig in z = 0- W e usually do not
m a k e re fe re n c e to th e se trivial zeros. C o n se q u e n tly , th e sy stem fu n c tio n in (3.3.10)
c o n ta in s o n ly n o n triv ia l p o les an d th e c o rre sp o n d in g sy stem is called an all-pole
syst em. D u e to th e p re se n c e o f poles, th e im p u lse re sp o n s e o f such a system is
infinite in d u ra tio n , a n d h e n c e it is an I IR system .
T h e g e n e ra l fo rm o f th e sy stem fun ctio n given by (3.3.8) c o n ta in s b o th poles
a n d zero s, and h e n c e th e c o rre sp o n d in g sy stem is called a p o l e - z e r o s y s t e m , with
N p o le s a n d M z ero s. P o les a n d /o r zero s at c = 0 an d z = oc a re im p lied b u t are
n o t c o u n te d ex p licitly. D u e to th e p re se n c e o f p o les, a p o le - z e r o system is an IIR
system .
T h e fo llo w in g ex am p le illu strates th e p ro c e d u re fo r d e te rm in in g th e system
fu n ctio n a n d th e u n it sa m p le resp o n se from the d iffe re n c e e q u a tio n .
E xam ple 3.3.4
D eterm ine the system function and the unit sample response of the system described
by the difference equation
v(n) =
Solution
1y(n -
1) + 2 x ( n )
xt:l
I - Jz -1
This system has a pole at z = \ and a zero at the origin. Using Table 3.3 we obtain
the inverse transform
h(n) = 2(i)"u()
184
The z-T ransform and Its Application to the Analysis of LTI Systems
Chap. 3
(3.4.1)
- L (f) J ! d z
2njjcz-zo
= |^
<Zl,)'
10,
(3.4.2)
if zo is ou tsid e C
-!>'
0,
d k- ' f ( z )
04.3)
if zo is o u ts id e C
Sec. 3.4
Inversion of th e
2 - T ra n s fo rm
185
(3.4.4)
n
1=1
w h ere
f(z)
(3.4.5)
A l (z) = ( z - z i ) P{ z ) = ( z - z l) -J - 1x
g( z)
T h e v alu es (A, (-;,)} a re re sid u e s o f th e c o rre sp o n d in g p o le s at z =
/ = 1, 2 , . . . . n.
H e n c e th e v alu e o f th e c o n to u r in te g ra l is e q u a l to th e sum o f th e resid u es o f all
th e p o le s in sid e th e c o n to u r C.
W e o b se rv e th a t (3.4.4) w as o b ta in e d by p e rfo rm in g a p a rtia l-fra c tio n e x p a n
sion o f th e in te g ra n d an d ap p ly in g (3.4.2). W h en g(z) has m u ltip le -o rd e r ro o ts
as w ell as sim p le ro o ts inside th e c o n to u r, th e p a rtia l-fra c tio n e x p a n sio n , w ith a p
p ro p ria te m o d ifica tio n s, an d (3.4.3) can b e used to e v a lu a te th e resid u es at th e
c o rre sp o n d in g p o les.
In th e case o f th e in v erse z -tra n sfo rm , w e h ave
[resid u e of X (z )z n 1 a t z
a ll p o l e s
U t)
in s id e
(3.4.6)
kl > kil
We have
where C is a circle at radius greater than |a|. We shall evaluate this integral using
(3.4.2) with f ( z ) = z". We distinguish two cases.
186
Chap. 3
L If n > 0, f ( z ) has only zeros and hence no poles inside C. T he only pole inside
C is z = a. Hence
*(*) = /(zo) = a n
n > 0
1 S)
1
dz =
1
2 nj j c z ( z a)
z a
+ -
= 0
If n = 2, we have
2)
2 n j z H z - a ) dZ
dz ( z - f l )
= 0
By continuing in the same way we can show that *(n) = 0 for n < 0. Thus
x (n) = a"u(n)
X(z) =
cz~n
(3.4.7)
co
w hich con verges in the given R O C . T h en , by the u n iqu en ess o f the z-transform,
x ( n ) = c for all n. W hen X ( z ) is rational, the exp an sion can b e perform ed by
long division.
T o illustrate this tech n iqu e, w e w ill invert som e z-transform s involving the
sam e expression for X ( z ) , but different R O C . T his w ill also serve to em phasize
again the im portance o f the R O C in d ealing with z-transform s.
Exam ple 3A 2
D eterm ine the inverse z-transform of
1 1.5z_1 + 0.5z 2
when
(a) ROC: |z| > 1
(b) ROC: |z| < 0.5
Solution
(a) Since the R O C is the exterior of a circle, we expect x(n) to be a causal signal.
Thus we seek a power series expansion in negative powers of z. By dividing
Sec. 3.4
187
the num erator of X{z) by its denom inator, we obtain the power series
AUI = ! _ 3 _ -; +
= 1+
Note that in each step of the long-division process, we eliminate the lowestpower term of c~*.
(b) In this case the ROC is the interior of a circle. Consequently, the signal x(n)
is anticausal. To obtain a power series expansion in positive powers of c. we
perform the long division in the following way:
2: 2 + 6c3 + 14c4 + 30cs + 62c* +
+ ill
1 - 3: + 2c:
3c - 2z 2
3c - 9c: + 6c3
l z 2 - 6c3
7 r - 21 c3 + 14c4
15c3 - 14c4
15c3 - 45c4 + 30cs
31c4 - 30c5
Thus
X (c) =
1_
In this case x(n) = 0 for n > 0. By comparing this result to (3.1.1), we conclude
that
Jt(n) = {
188
Chap. 3
Example 3.4.3
Determ ine the inverse z-transform of
X(z) = log(l + az_1)
Solution
+ x ),
with
|jc| < 1,
we have
( - r v r "
Thus
n < 0
0,
Expansion of irrational functions into power series can be obtained from tables.
(3.4.8)
(3.4.9)
_ b +b,r' + -
+ t r
l + f l i Z - 1 H----- + a u z ~ N
1 + 6Z
+
in terms of a polynomial and a proper function.
Sec. 3.4
189
Solution First, we note that we should reduce the num erator so that the term s ; -2
and c- *' are eliminated. Thus we should carry out the long division with these two
polynomials written in reverse order. We stop the division when the order of the
rem ainder becomes
Then we obtain
= 1 + 2: - i +
(3 A ll)
(3.4.12)
w h ere
aN ^ 0
M < N
an d
_ y v -l
N -M
X{z) =
CA 4- a \ z N
(3.4.13,
+ ------(- <a/v
: w + tiic w- 1 + - - - + flW
z p\
z P2
+ -. - +
( 3 .
z Pn
T h e p ro b le m is to d e te rm in e th e coefficients A i , A 2 , . - . , A s - T h e re a re tw o w ays
to so lv e th is p ro b le m , as illu stra te d in th e follow ing exam p le.
190
Chap. 3
Example 3.4 .5
D eterm ine the partial-fraction expansion of the proper function
(3'U 6 ,
Solution First we elim inate the negative powers, by multiplying both num erator and
denom inator by z2. Thus
.2
X i z ) = zV2 - 11.5z
< +i 0n.5
The poles of X(z) are p\ = 1 and P2 = 0.5. Consequently, the expansion of the form
(3.4,15) is
X(z)
z
Cz l)(z 0.5)
A\
z
A2
z 0.5
(3.4.17)
A very simple method to determ ine A[ and A 2 is to multiply the equation by the
denom inator term (z - l)(z - 0.5). Thus we obtain
z = ( z - 0 .5 M i + ( z - 1 ) A 2
(3.4.18)
2
z- 1
1
z - 0.5
(3.4.19)
T h e exam ple given ab ove suggests that w e can determ ine the coefficients A \,
A i , . . . , Afj , by m ultiplying b oth sides o f (3.4.15) by each o f the term s (z - Pk).
k = 1 , 2 , , . . , N , and evaluating the resulting exp ression s at the corresp on d ing pole
p osition s, p \ , p i .........P n T h u s w e have, in general,
z - PI
( z ~ ^ )X (; )i
z
(3420)
z - Pn
Jtth coefficient as
k =
1, 2. .
(3.4.21)
\z-pl
,3A22)
Sec. 3.4
191
\ + J i
Pi
\ ~ j \
z2 - ; + 0.5
and
=
; + l
A]
Ai
(z-p i)(:-p 2)
z-P\
z-pi
; + 1 I
- P
( z - p 2)X(z)
A- = ------------
2 \ ^ P1
Pi
; + l
-
?+
3+ J5-5+./5
1
:=P2
Solution
in the form
* ( ;) =
z2
:
(z + 1)(; - l ) 2
X (z) has a simple pole at p\ = - 1 and a double pole pi = p$ = 1. In such a case the
appropriate partial-fraction expansion is
= ______ t ______ =
z
(z + l)(z - 1)2
z+ 1 z - l
(z -1 )2
The problem is to determ ine the coefficients A 1, A2, and A3.
(3424)
192
Chap. 3
We proceed as in the case of distinct poles. T o determ ine Aj, we multiply both
sides of (3.4.24) by (z + 1) and evaluate the result at z = - 1 . Thus (3.4.24) becomes
(z + l)X (z)
z+ 1
z+ 1
z-1
( z - 1)2
(z + 1)X(z)
A i = ------------------
<3.4.25,
z+ 1
= 1
*
Li
2
The remaining coefficient Az can be obtained by differentiating both sides of
(3.4.25) with respect to z and evaluating the result at z = 1. Note that it is not
necessary formally to carry out the differentiation of the right-hand side of (3.4.25),
since all term s except A2 vanish when we set z = 1. Thus
d
A2 =
dz
(z l ) 2X(z)
Alt
Z - Pk
( z - Pk)2
(z - Pk)1
P\Z~1
1 - PlZ
(3.4.27)
1 - P n Z~ 1
Sec. 3.4
193
(3.4.29)
(3.4.30)
(3.4.31)
Pi: =
(3.4.32)
+ e - -'(A"+ l]u(n)
(3.4.33)
T h u s w e co n clu d e th a t
Z - 1 ( - r + - ~ r ) = 2 \ A k \rR
k c o s ( f tn + a k) u(n)
\i - p kz ~ l
i - p;z~ v
(3.4.34)
if th e R O C is |zj > \ pk \ = rk .
F ro m (3.4.34) we o b se rv e th a t ea c h p a ir o f c o m p le x -c o n ju g a te p o le s in th e
z -d o m ain resu lts in a causal sin u so id al signal c o m p o n e n t w ith an e x p o n e n tia l e n
v elo p e. T h e d ista n c e rk o f th e p o le fro m th e o rig in d e te rm in e s th e e x p o n e n tia l
w eig h tin g (g ro w in g if r k > 1, d ecay in g if r k < 1, c o n s ta n t if rk = 1). T h e angle of
th e p o le s w ith re sp e c t to th e p o sitiv e re a l axis p ro v id e s th e fre q u e n c y o f th e sin u
so id a l signal. T h e zero s, o r e q u iv alen tly th e n u m e ra to r o f th e ra tio n a l tran sfo rm ,
affect o n ly in d ire c tly th e a m p litu d e an d th e p h a se o f x k (n) th ro u g h A k.
In th e case o f mul t i pl e p o les, e ith e r re a l o r co m p lex , th e in v erse tra n sfo rm
o f te rm s o f th e fo rm A j ( z p k)n is re q u ire d . In th e case o f a d o u b le p o le the
194
Chap. 3
= n p nu( n)
(3.4.35)
1
1 - 1 .5 ;-' +0.5z~ 2
<3-4-36>
To invert X(z) we should apply (3.4,28) for pi 1 and p 2 = 0.5. However, this
requires the specification of the corresponding ROC.
(a) In case when the R O C is |z| > 1, the signal x(n) is causal and both term s in
(3.4.36) are causal terms. According to (3.4.28), we obtain
x(n) = 2 (l)n(n) (0.5)"u(n) = (2 0.5 )u(n)
(3.4.37)
|z| < 0.5, the signal x(n) is anticausal. Thus both term s in
(3.4.36) result in anticausal components. From (3.4.28) we obtain
x(n) = [2 + (0.5)'I]u(n 1)
(3.4.38)
(c) In this case the ROC 0.5 < |z| < 1 is a ring, which implies that the signal x(n) is
two-sided. Thus one of the term s corresponds to a causal signal and the other
to an anticausal signal. Obviously, the given ROC is the overlapping of the
regions (z| > 0.5 and |z| < 1. Hence the pole p 2 = 0.5 provides the causal part
and the pole p\ = 1 the anticausal. Thus
x(n) = -2 (1 ) "u( - n - 1) - (0.5)"(n)
Example 3.4.9
D eterm ine the causal signal jc(n) whose z-transform is given by
(3.4.39)
Sec, 3.4
Solution
195
where
A, = Al = j - j
and
Pi = p = i
Since we have a pair of complex-conjugate poles, we should use (3.4.34). The
polar forms of Aj and p, are
Hence
Example 3.4.10
D eterm ine the causal signal x(n) having the ;-transiorm
X(z) =
Solution
(1 + ; - )(]
3
+
+ T
41
41
.-1
+ 2 ( 1 - ; - 1)2
3
w*l
+ - + u(n)
X( z) =
(3.4.40)
196
The z-T ransform and Its Application to the Analysis of LTI Systems
Chap. 3
(3.4.41)
(3.4.42)
A s w e h av e a lre a d y o b se rv e d , th e re m ay b e so m e c o m p le x -c o n ju g a te p airs of
p o le s in (3.4.42). S in ce we u su a lly d eal w ith real signals, w e sh o u ld av o id com plex
co efficien ts in o u r d eco m p o sitio n . T h is can b e ach iev ed by g ro u p in g a n d co m b in in g
te rm s co n ta in in g co m p lex -co n ju g ate p o les, in th e follow ing w ay:
A A p * z ~ l + A* - A * p z ~ l
1 - pz~]
1 /5*z-1
(3.4.43)
bo + b -iZ ~ l
1 + a i z ~ l + 02 z ~2
w h ere
>o = 2 R e ( A ) ,
a \ = 2 R e ( p )
b\ = - 2 Re (Ap*),
a 2 = \ p \2
(3.4.44)
a re th e d e sire d co efficients. O b v io u sly , a n y ra tio n a l tra n sfo rm o f th e fo rm (3.4.43)
w ith co efficien ts given by (3.4.44), w hich is th e case w h en a 2 4 a 2 < 0, can be
in v e rte d using (3.4.34). B y c o m b in in g (3.4.41), (3.4.42), a n d (3.4.43) w e o b ta in a
p a rtia l-fra c tio n e x p a n sio n fo r th e z -tra n s fo rm w ith distinct p o les th a t co n ta in s real
coefficients. T h e g e n e ra l re su lt is
MN
Xiz)
K\
= 3 C Z - * + E
1.
1 l.
, /
f'l
-2
t l l + a u z 1+auZ 2
<3 A 4 S >
1 + b\kZ~l + b u z ~2
(1 - />*z- 1 ) ( l - p*kz ~ l )
1 -I- a u z -1 + a u z ~2
(3.4.46)
w h ere
b\ k = - 2 R t ( z k ) ,
flu = 2 R e (p * )
b u = jz i l ,
02*
(3.4.47)
= \Pk\
Sec. 3.5
197
1 + a kz 1
1 + a u z 1+ axz 2
<3 -4 -48>
* + (;) n=0
X + (z)
198
The /-T ran sform and Its Application to the Analysis of LTI Systems
Chap. 3
Example 3.5.1
Determ ine the one-sided z-transform of the signals in Exam ple 3.1.1.
Solution
x,(n) = {1, 2 ,5 ,7 ,0 ,1 }
t
Jt:+ (z) = 5 + 7z ~l + z ~3
k > 0 -e*
k > 0
(z) = z~k
Xy (z) = 0
Note that for a noncausal signal, the one-sided z-transform is not unique. Indeed,
X 2 (z) = X^(z) but X2 (n) ^ x 4(n). Also for anticausal signals,
(z) is always zero.
A lm ost all properties we have studied for the tw o-sid ed z-transform carry o ver to
the on e-sid ed z-transform with the excep tion of the shi ft i ng property.
Shifting Property
C a se 1: T im e D e la y
If
x(n)
X +(z)
then
k
X (n - k ) X * z~*[Ar+(z) + ] [ ] j c ( - n ) z n]
k> 0
(3.5.2)
n=l
(3.5.3)
z~k X +(z)
f S ( 0 z -'+
Y t x( l ) z -
-k
Sec. 3.5
199
Example 3.5.2
Determ ine the one-sided ^-transform of the signals
(a) x( n ) = a nu(n)
(b) Ai(n) = xin 2) where x( n) = a "
Solution
(a) From (3.5.1) we easily obtain
+ <T2
x ( + 1 ); ' +
1 ); *+* ]
(3.5.4)
+ :.~kX +(.z)
k> 0
If
xin)
X +(z)
th e n
X+( z ) - Y x ( n ) z - n k > 0
x ( n + k) z
(3.5.5)
Z +[x(n + *)} =
oc
+ k)z~n = zk Y m z ~ l
n=0
l= k
200
Chap. 3
(3.5.1) w e o b ta in
* + (z) = j r * ( / ) : ' = Y x { l ) z ~l +
/=o
i=0
i=t
By co m b in in g th e last tw o re la tio n s, w e easily o b ta in (3.5.5).
Exam ple 3.5.3
With x(n), as given in Example 3.5.2, determ ine the one-sided ^-transform of the
signal
xi (n) = x(n + 2 )
Solution
obtain
If
x{n)
X +{z)
th e n
lim x( n ) = lim (z - l ) X + (z)
n- 00
7-l
(3.5.6)
Sec. 3.5
201
Example 3.5.4
The impulse response of a relaxed linear time-invariant system is k(n) = a"u(n),
| | < 1. D eterm ine the value of the step response of the system as n oo.
Solution
where
Jt(n) = u(n)
Obviously, if we excite a causal system with a causal input the output will be causal.
Since h(n), x(n), v(n) are causal signals, the one-sided and two-sided z-transforms are
identical. From the convolution property (3.2.17) we know that the z-transforms of
h(n) and *(n) must be multiplied to yield the z-transform of the output. Thus
= .
, .
1 - az 1 1 - z 1
(z - l ) ( z - cr)
Now
(z - l)y (z) -
Z a
Since |a | < 1 the R O C of (z - l)K(z) includes the unit circle. Consequently, we can
apply (3.5.6) and obtain
lim v(n) = lim - =
noc'
1 a
(3.5.7)
202
Chap. 3
(3.5.8a)
(3.5.8b)
From (3.5.8b) we have y (1) = 0. Then (3.5.8a) gives v(2) = 1. Thus we have to
determ ine y(n), n > 0, which satisfies (3.5.7), with initial conditions y (1) = 0 and
y(2) = 1.
By taking the one-sided ^-transform of (3.5.7) and using the shifting property
(3.5.2). we obtain
y+(z) = [ ; - 'y +(-) + y (1) ] + [z ~2Y ^ ( z ) + y (-2 ) + . v ( - l ) ; - 1]
or
1
K + (c) =
"
(3.5.9)
P2 =
Pi -
l-V s
and the corresponding coefficients are A i = p i/V 5 and A 2 = -/> ;/V 5 . Therefore,
v(n) =
1 - V5 / I - n / 5 \ "
2V5
u(rt)
2 ^5
or, equivalently.
u{n)
(3.5.10)
Example 3.5.6
Determ ine the step response of the system
v(n) = ay(n 1) + x(rt)
1<
<
(3.5.11)
Upon substitution for v ( - l ) and X+(;) and solving for y + (;). we obtain the result
Y+(z) =
1
(1 a ; - l )(l - ; _l)
1 a ; -1
(3.5.12)
,u(n)
1 or"+I
+ ;-------- u(n)
1 a
( l - a " +2) u ( n )
1 a
( 3 .5 . 13)
Sec. 3.6
203
(3.6.1)
Mz)Q(z)
(3.6.2)
N o w su p p o s e th a t th e sy stem c o n ta in s sim ple p o le s p \ , p j .........p s a n d th e ztra n sfo rm o f th e in p u t signal co n ta in s p o le s <71, qt, , q u w h e re p t ^ qm fo r all
it = 1, 2
a n d m = 1, 2 , . . . , L. In a d d itio n , w e a ssu m e th a t th e z e ro s o f
th e n u m e r a to r p o ly n o m ia ls B( z ) a n d N ( z ) d o n o t co in cid e w ith th e p o les {p t } an d
{<7i}, so th a t th e re is n o p o le - z e r o c a n c e lla tio n . T h e n a p a rtia l-fra c tio n ex p an sio n
o f K(z) yield s
t o 1 - PkZ 1
*-* 1 - qkZ 1
204
Chap. 3
y (n ) = Y A t ( P k ) n u ( n ) + 5 2 2*0?*)'1n (n)
*=i
*-i
(3.6.4)
W e o b se rv e th a t th e o u tp u t se q u e n c e y( n) can b e su b d iv id e d in to tw o p a rts. T he
first p a r t is a fu n ctio n o f th e p o les {pt} o f th e system an d is called th e natural
response o f th e sy stem . T h e in flu e n ce o f th e in p u t signal o n th is p a r t o f th e
re sp o n s e is th ro u g h th e scale facto rs {A*}. T h e se c o n d p a r t o f th e re sp o n se is a
fu n ctio n o f th e p o le s {qk} o f th e in p u t signal an d is called th e f o r c e d response of
th e sy stem . T h e in flu e n ce o f th e sy stem o n th is re sp o n s e is e x e rte d th ro u g h th e
scale facto rs { Qk } W e sh o u ld e m p h asize th a t th e scale fa c to rs {A*} an d { Q k } a re fu n ctio n s o f
b o th se ts o f p o le s {pk } a n d { ^ ) . F o r e x am p le, if AXz) = 0 so th a t th e in p u t is
zero , th e n K(z) = 0, a n d c o n s e q u e n tly , th e o u tp u t is z e ro . C lea rly , th e n , th e
n a tu r a l re sp o n se o f th e sy stem is zero . T h is im p lies th a t th e n a tu ra l re sp o n se of
th e sy stem is d iffe re n t fro m th e z e ro -in p u t re sp o n se .
W h en X (z) a n d H ( z ) h av e o n e o r m o re p o les in c o m m o n o r w h e n X (z)
a n d /o r H{ z ) c o n ta in m u ltip le -o rd e r p o les, th e n K(z) will h av e m u ltip le -o rd e r poles.
C o n se q u e n tly , th e p a rtia l-fra c tio n ex p a n sio n o f Y( z ) will c o n ta in fa c to rs o f th e form
1/(1 - p / z ~ l )t , k = 1, 2 , . . . , m, w h ere m is th e p o le o rd e r. T h e in v ersio n o f th ese
facto rs will p ro d u c e te rm s o f th e fo rm n k~ xp* in th e o u tp u t y( n ) o f th e system , as
in d ic a te d in S ectio n 3.4.2.
f t)
akz
+ f c * z - * X + (z)
(3.6.5)
52 ^
Y +(z) =
*=0
s
-X(z)-
1+52<:
= H(z)X(z) +
akz
No(z)
A (z)
(3.6.6)
Sec. 3.6
205
w h e re
N
No(z) = - 5 Z a *z_,t
k= 1
n=l
(3.6.7)
(3.6.8)
(z) = TTT
A(z)
a 6 9)
(3.6.10)
>'zi(n) =
52
(3.6.11)
k= 1
k=\
(3.6.12)
w h e re , by d efin itio n ,
A'k =
+ Dk
(3.6.13)
(b) y ( - 1) = y ( - 2 ) = 1
206
Solution
Chap. 3
1
1 - 0 . 9 : - 1 + 0 .8 1 ;- 2
p l = Q.9e^
1-z -1
Therefore,
1
(1 - 0 . 9 e j ^ z - l K l - 0 . 9 e - j '1z -'l ) ( l - z ~ ' )
0.542 - /0 .0 4 9
1 - 0 .9 e ^ f h ~ l
0.542 + y0.049
+ :---- r +
1 - 0 .9e->nPz - 1
1.099
1 - z~l
l.099
1.088(0.9)" cos
(~ n
- 5.2C) J
u(n)
(a) Since the initial conditions are zero in this case, we conclude that v(n) = >'is(fl).
(b) For the initial conditions v ( - l ) = v (-2 ) = 1, the additional com ponent in the
z-transform is
Mi(z)
A(z)
I'ziW
1-
= J ^ w + y^ u )
1.099
0.568 + y'0.445
0.568 - /0.445
+ :---- r +
1 - z "1
1 - Q.9eJ*Vz- 1
1 - 0.9e' ff/3; -1
Sec. 3.6
207
52 A k i p k ) nu{ n)
(3.6.14)
*=1
w h e re {pk), k = 1, 2,
N a re th e p o le s o f th e sy stem a n d {A*} a re sc ale fac
to rs th a t d e p e n d o n th e in itial c o n d itio n s an d on th e c h a ra c te ristic s o f th e in p u t
se q u en ce.
If |/>*| < 1 fo r all k, th e n , y nT(n) d ecay s to z e ro as n a p p ro a c h e s infinity. In
such a case w e re fe r to th e n a tu ra l re sp o n se of th e system as th e t ransient response.
T h e ra te a t w hich >'nr(n) d ecay s to w a rd z e ro d e p e n d s on th e m a g n itu d e o f th e p o le
p o sitio n s. I f all th e p o le s h av e sm all m a g n itu d e s, th e d ec a y is v ery ra p id . O n the
o th e r h a n d , if o n e o r m o re p o le s a re lo c a te d n e a r th e u n it circle, th e c o rre sp o n d in g
te rm s in >nr(n) w ill d e c a y slow ly to w a rd z e ro a n d th e tra n s ie n t will p ersist fo r a
relativ ely lo n g tim e.
T h e fo rc e d re sp o n s e o f th e system h as th e fo rm
i
Vfr() = 5 2 <2*(<?*)"()
k=\
(3.6.15)
and therefore the system has a pole at z = 0.5. The z-transform of the input signal is
(from Table 3.3)
10(1 ( l/y / 2 ) z ~ 1)
X (z ) ---------------f ---------------1 - y / 2 _1 + Z~1
208
Chap. 3
Consequently.
K (o = H (:)X (z )
10(1 - ( l / v '2 ) ; - 1)
(1 0.5~- )(1 - e - w 4; - 1)!!
6.78e~J2&1
6.3
1 - 0.5;- 1
,"T
1-
i)
6.7&ej2K1
1 - e-J*iAz~x
n < 0
do.
T h e stab ility o f a lin ear tim e -in v a ria n t system can also be e x p re ss e d in term s
o f th e ch a ra c te ristic s o f th e system fu n ctio n . A s w e recall fro m o u r prev io u s
d iscu ssio n , a n ecessa ry an d sufficient co n d itio n fo r a lin e a r tim e -in v a ria n t system
to b e B IB O sta b le is
52
n=- x
In tu rn , this c o n d itio n im plies th a tt H ( z ) m
u st c o n ta in th e u n it circle w ith in its R O C .
musi
In d e e d , since
OC
H (z) =
h (n)z
it follow s th a t
OC
OC
n oc
n= oc
\ h (z )\ <
52
Sec. 3.6
209
H en ce, if the system is B IB O stable, the unit circle is con tained in the R O C o f
H(z)- T h e con verse is also true. T h erefore, a linear tim e-in va ria n t sy stem is B IB O
stable i f a n d o n ly i f th e R O C o f the sy stem fu n c tio n includes the u n it circle.
W e should stress, how ever, that the con d ition s for causality and stability are
d ifferent and that o n e d oes not im ply the other. F or exam p le, a causal system
m ay b e stable or unstable, just as a noncausal system m ay b e stable or unstable.
Sim ilarly, an unstable system m ay be eith er causal or n oncausal, just as a stable
system m ay be causal or noncausal.
For a causal system , h ow ever, the con d ition on stability can be narrowed
to so m e exten t. In d eed , a causal system is characterized by a system function
H ( z ) having as a R O C the exterior o f som e circle o f radius r. For a stable
system , the R O C m ust include the unit circle. C on sequ en tly, a causal and sta
ble system m ust have a system function that con verges for |z| > r < 1. Since
the R O C cannot contain any p oles o f H ( z ) , it follow s that a causal linear tim ein va ria n t sy stem is B I B O stable i f a n d o n ly i f all the p o le s o f H ( z ) are inside the
u n it circle.
Example 3.63
A linear tim e-invariant system is characterized by the system function
3 - 4 z-'
H(z) ~ 1 - 3.5z-> + 1.5: ' 2
1
"
l - ' i z - 1 + 1 - 3 z- 1
Specify the R O C of H(z) and determ ine h(n) for the following conditions:
(a) The system is stable.
( b ) The system is causal.
(a) Since the system is stable, its R O C must include the unit circle and hence it is
\ < \z\ < 3. Consequently, h(n) is noncausal and is given as
h(n) = (i)"n() - 2(3)-it ( - n - 1)
(b) Since the system is causal, its R O C is jz| > 3. In this case
/i(n) = ( i r ( n)+ 2 (3 )"u (n )
This system is unstable.
(c) If the system is anticausal, its R O C is |z| < 0.5. Hence
h{n) = - { ( \ y + 2 ( 3 T ) u ( - n - l )
210
Chap. 3
1 - 5*-1 + 6z ' 2
(1 - i z - ') ( l - 2 z -
This system has poles at p\ = 2 and p x = ~, Consequently, at first glance it appears
that the unit sample response is
Y(z) = H( z) X( z) =
1 - 5 z ~ ' + 6z2
(1 - j z _ ,)(l - 2z_l
B =0
The fact that 5 = 0 indicates that there exists a zero at z = 2 which cancels
the pole at z = 2. In fact, the zeros occur at z = 2 and z = 3. Consequently, H{z)
Sec. 3.6
211
reduces to
H(z) =
1 - 3 : -1
1- k -1
2 .5 ;-1
= 1and therefore
h(rt) = S{n) -
2 .5 ( 5)"
~ ^
The reduced*order system obtained by canceling the common pole and zero is char
acterized by the difference equation
y(n) = iy(n - 1) + x(n) - 3x{n - 1)
Although the original system is also BIBO stable due to the pole-zero cancellation,
in a practical im plementation of this second-order system, we may encounter an
instability due to imperfect cancellation of the pole and the zero.
Example 3.6.5
D eterm ine the response of the system
v(n) = jjy(>i - 1) - y(n - 2) + x(n)
to the input signal x{n) = S(n) ^&(n 1).
Solution
(1 -
(1 - 1 c-1)
The ^transform of
X {z ) = 1 - j i ' 1
In this case the input signal contains a zero at ; = i which cancels the pole at ; =
Consequently,
Y(z) = HU) X( z )
m
i r p
212
Chap. 3
We note that the system contains a pole on the unit circle at c = 1. The ^-transform
of the input signal x(n) = u{n) is
which also contains a pole at ; = 1. Hence the output signal has the transform
K(=) = H {z)X {z)
(1 - ; - 1)2
Sec. 3.6
213
(3.6.16)
a m(0) = l
(3.6.17)
z-')
(3.6.18)
UmV"
k*=0
(3.6.19)
ATjV = a # ( N )
^ c
(3.6.20)
w h e re th e c o effic ie n ts K m a re d e fin ed as
Km = am{m)
(3.6.21)
214
Chap, 3
is stable.
Solution
1 -
lz~] -
k " 2
Hence
Now
#>(:) =
and
/\2(r) 1 - K;
Therefore.
Ki = - I
Since |ATi | > 1 il follows that the system is unstable. This fact is easily estab
lished in this example, since the denom inator is easily factored to yield the two poles
at pi = 2 and p 2
However, for higher-degree polynomials, the Schur-Cohn
test provides a simpler test for stability than direct factoring of //(- ) .
T h e S c h u r-C o h n sta b ility te s t can b e easily p ro g ra m m e d in a d igital c o m p u ter
an d it is very efficien t in te rm s o f a rith m e tic o p e ra tio n s. S pecifically, it req u ires
o n ly N 2 m u ltip lic a tio n s to d e te rm in e th e co efficien ts {Km}, m = 1 , 2 .........N. The
recu rsiv e e q u a tio n in (3.6.20) can b e e x p ressed in te rm s o f th e p o ly n o m ial coef
ficients by e x p a n d in g th e p o ly n o m ia ls in b o th sides o f (3.6.20) a n d e q u a tin g the
co efficien ts c o rre sp o n d in g to e q u a l p o w ers. In d e e d , it is easily e s ta b lis h e d that
(3.6.20) is e q u iv a le n t to th e follow ing alg o rith m : Set
a N (k) = ak
it
= 1 ,2 .........N
(3.6.23)
Kfj = a f j ( N)
T h e n , fo r m = N , N 1 , . . . , 1, c o m p u te
K m = a m(rn)
(3.6.22)
<jm_ i(0 ) = l
Sec. 3.6
215
it = 1, 2 , . . . , m 1
(3.6.24)
an d
w h ere
bm(k) = am(m k)
k = 0,1,...,m
(3.6.25)
(3.6.26)
T h e sy stem fu n ctio n is
X (z)
1 4- a i r 1 + a 2z ~ :
(3.6.27)
boz2
z 2 + a \z + 2
T h is sy stem h a s tw o z ero s at th e origin a n d p o les a t
(3.6.28)
T h e sy stem is B IB O sta b le if th e p o le s lie in sid e th e u n it circle, th a t is, if
|P i| < 1 a n d \ p2\ < 1. T h e se c o n d itio n s can b e re la te d to th e v alu es o f th e
co effic ie n ts a\ a n d a 2. In p a rtic u la r, th e ro o ts o f a q u a d ra tic e q u a tio n satisfy th e
re la tio n s
fil = (P5 + pi )
(3.6.29)
(3.6.30)
(3.6.31)
1 1 < 1 + 2
(3.6.32)
216
Chap. 3
T h e c o n d itio n s in (3.6.31) a n d (3.6.32) can also be d e riv e d fro m th e S c h u rC o h n stab ility te st. F ro m th e recu rsiv e e q u a tio n s in (3.6.22) th r o u g h (3.6.25), we
find th a t
(3.6.33)
an d
K 2 = 02
(3.6.34)
Sec. 3.6
217
1 - Piz 1
pi are re a l a n d p\ ^ p2. th e
A2
(3.6.35)
1 - P 2Z' 1
w h ere
koPi
Ai ~
-boP2
(3.6.36)
P 1 - P2
Pi - P2
C o n se q u e n tly , th e u n it sa m p le re sp o n se is
b
(3.6.37)
Pi P 2
T h e re fo re , th e u n it sa m p le re sp o n se is th e d ifferen ce of tw o d e c ay in g e x p o n e n tia l
se q u en ces. F ig u re 3.16 illu stra te s a ty p ical g rap h for h( n) w h en th e p o les are
distinct.
In th is case p\
P 2 p = a \ / 2. T he
system fu n ctio n is
( 1 - p z - 1)2
(3.6.38)
an d h e n c e th e u n it sa m p le re sp o n se o f th e system is
h{n) = b0(n + 1 ) p nu(n)
h(n)
Figure 3.16 Plot of h(n) given by (3.6.37) with p\ = 0.5, pz = 0.75; h(n) =
~ P2)](P+1 - P 2 +I)u(n).
(3.6.39)
218
Chap. 3
h(n)
Figure 3.17
ti(n) = (n + 1
1 p : -1
A
1 - re^'z' 1
1 p*z~l
(3.6.40)
A'
1 - r e ~ )tUi' z ~x
w h ere p = r e Jai an d 0 < coq < tt. N o te th a t w hen th e p o le s are co m p lex co n ju g ates,
th e p a ra m e te rs a\ a n d 02 a re re la te d to r an d a>o acco rd in g to
a\ = 2 r cos coo
(3.6.41)
az = r
T h e c o n stan t A in th e p a rtia l-fra c tio n ex p an sio n o f H( z ) is easily sh o w n to be
A =
bo p
boreJW"
p p*
r ( e i 0 e~JW0)
b 0eJ<I*
(3.6.42)
j 2 sin ti>o
C o n seq u en tly , th e u n it sa m p le re sp o n se o f a system w ith c o m p ie x -c o n ju g a te poles
is
h{n) =
sin coo
born
sin coo
2j
-(n)
(3.6.43)
Sec. 3.7
219
ft(n)
Figure 3.18
h(n) = [fcor"/(sin
220
Chap. 3
PROBLEMS
3.1 Determ ine the z-transform of the following signals,
(a) x(n) = {3. 0. 0. 0, 0, 6, 1. 4}
(} )\ > 5
0.
n <4
3.2 D eterm ine the z-transforms of the following signals and sketch the corresponding
pole-zero patterns.
(a) x ( n ) = (1 + n ) u ( n )
(b) x ( n ) = (a" + a ' ) u( n) , a real
(b) x(n) =
(c)
W)
(e )
(I)
x(n)
x(n)
x(n)
x (n)
=
=
=
=
( 1 )n2 -n u (r)
( n a " sinaon)w(rc)
(na" CQSwon) u( n)
Ar " c o s (w^n + <j>)u(n). 0 < r < 1
(g) *(n) = j( n : i ~
1)
(h) jr(rt) = ( i ) n[(n) - u(n - 10)]
Chap. 3
221
Problems
33 Determine the z-transforms and sketch the ROC of the following signals.
f(i)\
(a) x,(n)
1 ( f) " " .
n>
_0
"<
( i ) B- 2 \
0,
(c) *j() = x 1(n + 4 )
<d) x4(n) = j t , ( - n )
(b) x 2(n) =
n >0
n < 0
3.5 D eterm ine the regions of convergence of right-sided, left-sided, and finite-duration
two-sided sequences.
3.6 Express the z-transform of
y(n) = Y x(k)
k=*oc
in term s of X (-). [Him: Find the difference y(n) - y(n - 1).]
3.7 Com pute the convolution of the following signals by m eans of the z-transform.
*i(n)
= f ()".
1 ()"".
n >0
n<0
*2 (n) = ( j ) nH(n)
3.8 Use the convolution property to:
(a) Express the z-transform of
y(n) = 5 2 x
tt-oc
in terms of X(z).
(b) Determine the z-transform of x(n) = (n + l)u(n). [Hint. Show first that x ( n ) =
u(n) * n(n).]
3.9 The z-transform X(z) of a real signal x(n) includes a pair of complex-conjugate zeros
and a pair of complex-conjugate poles. What happens to these pairs if we multiply
x(n) by eJWnl (Hint. Use the scaling theorem in the z-domain.)
3.10 Apply the final value theorem to determine
1,
10,
jt( oo )
if n is even
otherwise
222
Chap. 3
*(z) =
1
( l - Z z - ' H l - z - 1)2
3.13 Let ;t(n) be a sequence with z-transform X(z)- Determ ine, in terms of X(z), the
z-transforms of the following signals.
i,n
(a) j:i(n) =
even
II
if n odd
0,
(b) x2(n) = x(2n)
3.14 D eterm ine the causal signal x (n) if its z-transform X(z) is given by:
l+ 3 z -
(a)
1 + 3 z- + 2 z-2
1
(b)
1 - z - ' + ^ z -2
II
><
II
(d)
><
II
z -6 + z^7
(c)
(e) X(z) =
(0 X(z) =
1 + 6z + z " 2
4 (1 - 2 ; - 1 + 2 z '2)(l - O.Sz"1)
2
1.5z-1
1 - 1.5--1 + C.5z^:
1 + 2z + z-2
II
(g)
11 + 2z-2
1+ :-2
II
(j)
II
1 + 4z_1 + 4z-2
(h) X(z) is specified by a pole-zero p atten
1- k -1
(i)
1 - a z -1
Figure P3.14
3.15 Determ ine all possible signals x(n) associated with the z-transform
X U ) = {1 - 2 z - ') ( 3 - z - ])
3.16 Determ ine the convolution of the following pairs of signals by means of the ztransform.
Chap. 3
(a) x\(ft) =
(b)
223
Problems
Xi(n)
= u(n),
- 1), x 2(n) = [1 +
jc2(n) = 5(n) + (i)"u (n )
(d)
ari(n) = nu(n),
*2(71) = c-Osnnu(n)
x 2(n) = 2 "u(n 1)
3.17 Prove the final value theorem for the one-sided z-transform.
3.18 If X(z) is the z-transform of x(n), show that:
(a) Z { x m(n)} = X ' ( z ' )
(b) Z{Re[jr(n}]} = j[X (z) + X*(z*)]
(c) Z{Im[jr()]l = |[X (z) - **(=*)]
(d) If
* * ( )= { * (? )
1 0,
if " A integer
otherwise
then
X t U) = X (z k)
(e)
= X(ze~Jw)
3.19 By first differentiating X(z) and then using appropriate properties of the z-transform.
determ ine x(n) for the following transforms.
\z\<{
0 < r < 1
(b) Com pute the z-transform A^tz), which corresponds to the pole-zero pattern in
part (a).
(c) Com pare X]{z) with X 2(z). Are they indentical? If not. indicate a m ethod lo
derive Xi(z) from the pole-zero pattern.
3.21 Show that the roots of a polynomial with real coefficients are real or form complexconjugate pairs. The inverse is not true, in general.
3.22 Prove the convolution and correlation properties of the z-transform using only its
definition.
|z|^0
3.24 D eterm ine, in closed form, the causal signals x(n) whose z-transforms are given by:
(a) X(z) = T T T 5 ^ T
o3
jt( oo)
by an alternative
3.25 D eterm ine all possible signals that can have the following z-transforms.
1
224
Chap. 3
+ z- 2
1-
Table 3.2.
3.29 In Example 3.4.1 we solved for .r(n), n < 0, by perform ing contour integrations for
each value of n. In general, this procedure proves to be tedious. It can be avoided by
making a transform ation in the contour integral from z-plane to the uj = 1/z plane.
Thus a circle of radius R in the z-plane is mapped into a circle of radius 1/ R in the wplane. As a consequence, a pole inside the unit circle in the z-plane is mapped into a
pole outside the unit circle in the m-plane. By making the change of variable w = 1/z
in the contour integral, determ ine the sequence x ( n ) for n < 0 in Example 3.4.1,
n < N 1 be a finite-duration sequence, which is also real-valued and
even. Show that the zeros of the polynomial X(z) occur in mirror-image pairs about
the unit circle. That is. if z = rej/> is a zero of X(z), then z = (1 / r ) e J" is also a zero.
3.31 Compute the convolution of the following pair of signals in the time domain and by
x 2(n) = (i)"u(n)
x 2(n) =
(4,
3, 2. 1}
Jr2 ( )
= {1.1,1}
(a) y(n) + \ y( n - 1) - \ y( n - 2) = 0;
y ( - l ) = y (-2 ) = 1
y ( - l ) = 1. v(2) = 0
(c) v(n) = \ y ( n - 1) + x ( n )
x ( n ) = ()"u(rt).
y(-l) = 1
>(1) = 0;
y(2) = 1
(b) _y{) = x ( n ) - 0 .1 x (n - 1)
Chap. 3
225
Problems
3.36 Consider the sequence xin) = ci"uin). 1 < a < 1. D eterm ine at least two sequences
that are not equal to xin) but have the same autocorrelation.
3.37 Com pute the unit step response of the system with impulse response
f3\
n < 0
n >0
3.38 Com pute the zero-state response for the following pairs of systems and input signals.
(a) hin) =
( ^ V m (i i )
1)
= in + 1)(j)"h<h)
H(Z) =
(c> =
(d) v(n) = 0.6y(n 1) 0.08v(n 2) -f- x(n)
(e) v() = 0.7y(n 1) 0.1y(/3 2) + 2xin) x(n 2)
3.42 Let xin) be a causal sequence with ;-transform X(z) whose pole-zero plot is shown
in Fig. P3.42. Sketch the pole-zero plots and the R O C of the following sequences;
(a) Xt(n) = x ( ~ n -)- 2)
(b) x 2(n) = eim/iu,x(n)
226
Chap. 3
Im(z)
Re(;)
Figure P3.42
3.43 W e want to design a causal discrete-time LTI system with the property that if the
input is
x( n ) = ( l ) nu ( n) -
- 1)
1 + o ir -1 + a2z~2
by computing its poles and restricting them to be inside the unit circle.
3.45 Consider the svstem
H{z) =
_L J?i-r-2
I1 _ l --1 +
Determine:
(a) The impulse response
(b) The zero-state step response
(c) The step response if y(1) = 1 and y ( -2 ) = 2
3 .4 6 D eterm ine the system function, impulse response, and zero-state step response of the
system shown in Fig P3.46.
3 .4 7 Consider the causal system
y in ) = - a i y i n - 1) + b0x(n) + b^xin - 1)
Determine:
(a) The impulse response
Chap. 3
227
Problems
Xi.fl)
y(n)
a
Figure P3.46
CO S a> u f!
<
<
oo
to the input
jt(n) = em 'nu{n)
W hat is the steady-state response of the system?
3.49 Consider the causal system defined by the pole-zero pattern shown in Fig. P3.49.
(a) Determ ine the system function and the impulse response of the system given that
W U )U i = 1.
(b) Is the system stable?
(c) Sketch a possible im plementation of the system and determ ine the corresponding
difference equations.
Im(;)
3.50 An FIR LTI system has an impulse response h(n), which is real valued, even, and
has finite duration of 2/V + 1. Show that if ;i = rejaJa is a zero of the system, then
d = ( l / r ) e j a *> is also a zero.
3.51 Consider an LTI discrete-time system whose pole-zero pattern is shown in Fig. P3.51.
(a) D eterm ine the R O C of the system function H(z) if the system is known to be
stable.
228
Chap. 3
Im(;)
Re<z)
-0 .5
Figure P3.51
(b ) It is possible for the given pole-zero plot to correspond to a causal and stable
3.53 A causal pole-zero system is BIBO stable if its poles are inside the unit circle. Con
sider now a pole-zero system that is BIBO stable and has its poles inside the unit
circle. Is the system always causal? [Hint: Consider the systems h\(n) = anu(n) and
ti2 (n) = anu{n + 3), |a| < 1.]
3 3 4 Let *(/i) be an anticausal signal [i.e., x (n) = 0 for n > 0]. Form ulate and prove an
initial value theorem for anticausal signals.
3.55 The step response of an LTI system is
J(w) =
+ 2)
(a) Find the system function H(z) and sketch the pole-zero plot.
(b ) D eterm ine the impulse response ft(n).
Chap. 3
229
Problems
; a
1 a:
1-
(: - i ) ( ; - 2)5<- + ?): (r + 3)
34
Sec. 4.1
231
Glass prism
Figure 4.1
F r a u n h o f e r ( 1 7 8 7 - 1 8 2 6 ) . in m a k in g m e a s u r e m e n ts o f lig h t
e m itt e d b y th e su n a n d s ta r s , d is c o v e r e d th a t th e s p e c tr u m o f th e o b s e r v e d lig h t
c o n s is ts o f d is tin c t c o l o r lin e s . A fe w y e a r s la te r ( m i d - ] 8 0 0 s ) G u s ta v K i r c h h o f f a n d
R o b e r t B u n s e n fo u n d th a t e a c h c h e m ic a l e le m e n t, w h e n h e a te d to in c a n d e s c e n c e ,
r a d ia te d its o w n d is tin c t c o lo r o f lig h t. A s a c o n s e q u e n c e , e a c h c h e m ic a l e le m e n t
c a n b e id e n tifie d b y its o w n lin e sp e ctru m .
F r o m p h y s ic s w e k n o w th a t e a c h c o lo r c o r r e s p o n d s to a s p e c ific f r e q u e n c y o f
th e v is ib le s p e c tr u m . H e n c e th e a n a ly sis o f lig h t in to c o lo r s is a c tu a lly a f o r m o f
fr e q u e n c y a n a ly s is .
F r e q u e n c y a n a ly s is o f a s ig n a l in v o lv e s th e r e s o lu tio n o f th e s ig n a l in to its
fr e q u e n c y ( s in u s o id a l) c o m p o n e n ts .
In s te a d o f lig h t, o u r s ig n a l w a v e fo r m s a re
th e F o u r ie r s e r ie s a n d th e F o u r i e r t r a n s f o r m .
The
r e c o m b in a tio n o f th e s in u s o id a l c o m p o n e n ts to r e c o n s tr u c t th e o r ig in a l s ig n a l is
b a s ic a lly a F o u r i e r s y n th e s is p r o b le m . T h e p r o b le m o f s ig n a l a n a ly s is is b a s ic a lly
th e s a m e fo r th e c a s e o f a s ig n a l w a v e fo rm a n d f o r th e c a s e o f th e lig h t f r o m h e a te d
c h e m ic a l c o m p o s itio n s .
J u s t a s in th e c a s e o f c h e m ic a l c o m p o s itio n s , d if f e r e n t
s ig n a l w a v e fo r m s h a v e d iffe r e n t s p e c tr a . T h u s th e s p e c tr u m p r o v id e s a n id e n tity
232
Chap. 4
o r a s ig n a tu r e f o r th e s ig n a l in th e s e n s e t h a t n o o t h e r s ig n a l h a s th e s a m e sp e c tru m .
A s w e w ill s e e , th is a ttr ib u te is r e la te d to th e m a th e m a tic a l t r e a t m e n t o f fre q u e n c y d o m a in te c h n iq u e s .
I f w e d e c o m p o s e a w a v e fo r m in to s in u s o id a l c o m p o n e n ts , in m u c h th e sa m e
w ay t h a t a p ris m s e p a r a te s w h ite lig h t in to d iffe r e n t c o lo r s , th e su m o f th e s e
s in u s o id a l c o m p o n e n ts re s u lts in th e o r ig in a l w a v e fo r m . O n th e o t h e r h a n d , if any
o f th e s e c o m p o n e n ts is m is s in g , th e r e s u lt is a d if f e r e n t s ig n a l.
I n o u r tr e a t m e n t o f fr e q u e n c y a n a ly s is , w e w ill d e v e lo p th e p r o p e r m a th e
m a tic a l to o ls ( p r is m s ) f o r th e d e c o m p o s itio n o f s ig n a ls ( l i g h t ) in to s in u so id a l
f r e q u e n c y c o m p o n e n ts ( c o l o r s ) . F u r t h e r m o r e , th e t o o ls ( in v e r s e p r is m s " ) f o r sy n
th e s is o f a g iv e n s ig n a l f r o m its f r e q u e n c y c o m p o n e n ts w ill a ls o b e d e v e lo p e d .
T h e b a s ic m o t iv a tio n f o r d e v e lo p in g th e fr e q u e n c y a n a ly s is to o ls is to p ro v id e
a m a th e m a tic a l a n d p ic to r ia l r e p r e s e n t a t io n f o r th e f r e q u e n c y c o m p o n e n ts th a t a re
c o n ta in e d in a n y g iv e n s ig n a l. A s in p h y s ic s , th e te r m s pe ct r um is u s e d w h e n r e f e r
rin g t o th e fr e q u e n c y c o n t e n t o f a s ig n a l. T h e p r o c e s s o f o b ta in in g th e s p e c tru m
o f a g iv e n sig n a l u sin g th e b a s ic m a th e m a tic a l t o o ls d e s c r ib e d in th is c h a p te r is
k n o w n a s f re q u e n c y o r spectral analysis.
In c o n tr a s t, th e p r o c e s s o f d e te r m in in g
th e s p e c tr u m o f a s ig n a l in p r a c tic e , b a s e d o n a c tu a l m e a s u r e m e n ts o f th e sig n a l,
is c a lle d spect rum estimation.
T h is d is tin c tio n is v e r y im p o r ta n t.
In a p r a c tic a l
p r o b le m th e s ig n a l to b e a n a ly z e d d o e s n o t le n d it s e lf to a n e x a c t m a th e m a tic a l
d e s c r ip tio n . T h e s ig n a l is u s u a lly s o m e i n f o r m a tio n - b e a r in g s ig n a l fr o m w h ich we
a r e a tte m p tin g t o e x t r a c t th e r e le v a n t in f o r m a tio n . I f th e in f o r m a tio n th a t w e wish
to e x t r a c t c a n b e o b ta in e d e i t h e r d ir e c tly o r in d ir e c tly fr o m th e s p e c tr a l c o n te n t o f
th e s ig n a l, w e c a n p e r fo r m spe ct rum est imation o n th e in f o r m a t io n - b e a r in g sig n a l,
a n d th u s o b ta in a n e s tim a te o f th e s ig n a l s p e c tr u m . In f a c t, w e c a n v iew s p e c tra l
e s tim a tio n as a ty p e o f s p e c tr a l a n a ly s is p e r fo r m e d o n s ig n a ls o b t a i n e d f r o m p h y si
ca l s o u r c e s (e .g ., s p e e c h , E E G , E C G , e t c .) . T h e in s tr u m e n ts o r s o f tw a r e p r o g ra m s
u se d t o o b ta in s p e c tr a l e s tim a te s o f s u c h s ig n a ls a r e k n o w n a s sp e c t r u m analyzers.
H e r e , w e w ill d e a l w ith s p e c tr a l a n a ly s is . H o w e v e r , in C h a p t e r 12 w e sh all
t r e a t th e s u b je c t o f p o w e r s p e c tr u m e s tim a tio n .
E x a m p le s o f p e r io d ic s ig n a ls e n c o u n te r e d in p r a c t i c e a r e s q u a re
w a v e s , r e c ta n g u la r w a v e s , tr ia n g u la r w a v e s , a n d o f c o u r s e , s in u s o id s a n d c o m p le x
e x p o n e n tia ls .
T h e b a s ic m a th e m a tic a l r e p r e s e n ta tio n o f p e r io d ic s ig n a ls is th e F o u r i e r s e
r ie s , w h ic h is a lin e a r w e ig h te d su m o f h a r m o n ic a lly r e la te d s in u s o id s o r c o m p le x
e x p o n e n tia ls . J e a n B a p t is t e J o s e p h F o u r i e r ( 1 7 6 8 - 1 8 3 0 ) , a F r e n c h m a th e m a tic ia n ,
u se d s u c h t r ig o n o m e t r ic s e r ie s e x p a n s io n s in d e s c r ib in g th e p h e n o m e n o n o f h ea t
c o n d u c tio n a n d te m p e r a tu r e d is tr ib u tio n th r o u g h b o d ie s . A lth o u g h h is w o r k was
m o t iv a te d b y th e p r o b le m o f h e a t c o n d u c tio n , th e m a th e m a tic a l te c h n iq u e s th a t
Sec. 4.1
233
x {r) =
cke j 2 * kF
( 4 .1 .1 )
i = -3C
is a p e r io d ic s ig n a l w ith f u n d a m e n t a l p e r io d Tp =
1/Fo.
H e n c e w e c a n th in k o f
th e e x p o n e n t ia l s ig n a ls
{ e i i x k p k = Q i i 2 l
a s th e b a s ic b u ild in g b lo c k s f r o m
w h ic h w e c a n c o n s t r u c t p e r io d ic s ig n a ls o f
v a r io u s ty p e s b y p r o p e r c h o ic e o f t h e fu n d a m e n ta l f r e q u e n c y a n d th e c o e f f ic ie n ts
( q ). F o d e te r m in e s th e f u n d a m e n ta l p e r i o d o f x ( t ) a n d th e c o e f f ic ie n t s { }
s p e c ify
th e s h a p e o f th e w a v e fo rm .
S u p p o s e th a t w e a r e g iv e n a p e r io d i c s ig n a l x { i) w ith p e r io d Tp .
W e ca n
Tp . T o d e te r m in e th e e x p r e s s io n t o r th e c o e f f i c i e n t s ( q ) , w e firs t m u ltip ly b o th
sid e s o f ( 4 .1 .1 ) b y th e c o m p le x e x p o n e n t i a l
Fltl!
w h e r e I is a n in t e g e r an d th e n in t e g r a t e b o th s id e s o f th e r e s u ltin g e q u a tio n o v e r
a s in g le p e r io d , s a y fr o m 0 to T r , o r m o r e g e n e r a lly , fr o m fo to r0 + T p, w h e r e i o is
a n a r b itr a r y b u t m a th e m a tic a lly c o n v e n i e n t s ta r t in g v a lu e . T h u s w e o b ta in
fh>+Tr
J'
r'o+Tr
x ( t ) e - j2*IF,''dt = J'
g- j t oi Kt /
oc
cke+J2nkF"' J di
(4.1.2)
T o e v a lu a te th e in te g r a l o n th e r ig h t- h a n d s id e o f ( 4 .1 .2 ) , w e in te r c h a n g e th e o r d e r
o f th e s u m m a tio n a n d in te g r a tio n a n d c o m b in e th e tw o e x p o n e n tia ls . H e n c e
rl
sc
,, + r .
c*
OC
ei2* F{k-'"dt =
i = oc
k= oc
Ck
- |'n + r ,
J l n F o i k - /)_
( 4 .1 .3 )
fJtn
di i
fJ /ft
x ( t ) e - j2 * ,Fo'd t = c ,T p
234
Chap. 4
a n d t h e r e f o r e th e e x p r e s s io n f o r th e F o u r i e r c o e f fic ie n ts in t e r m s o f th e g iv e n
p e r io d ic s ig n a l b e c o m e s
fto+TP
I
c, =
x ( l ) e - jlw,F"'dt
Tp
S in c e fo is a r b itr a r y , th is in te g r a l c a n b e e v a lu a te d o v e r a n y i n te r v a l o f le n g th Tp,
th a t is, o v e r a n y in te r v a l e q u a l t o th e p e r io d o f th e s ig n a l jr ( r ) . C o n s e q u e n tly , th e
in te g r a l fo r th e F o u r i e r s e r ie s c o e f f ic ie n t s w ill b e w r itte n as
c, = f
x ( t ) e ~ j2nlF,>'d t
( 4 .1 .4 )
Tp J t
A n im p o r ta n t is s u e th a t a r is e s in th e r e p r e s e n ta tio n o f th e p e r io d ic s ig n a l
x ( t ) b y th e F o u r ie r s e r ie s is w h e t h e r o r n o t th e s e r ie s c o n v e r g e s t o * ( f ) f o r e v e ry
v a lu e o f r, th a t is, if th e s ig n a l x (t ) a n d its F o u r ie r s e r ie s r e p r e s e n t a t io n
OC
c ke j2 * kFtt'
( 4 .1 .5 )
A=-oc
a r e e q u a l a t e v e r y v a lu e o f t.
T h e s o -c a lle d D ir ic h le t c o n d it io n s g u a r a n te e th a t
th e s e r ie s ( 4 .1 .5 ) w ill b e e q u a l to x ( t ), e x c e p t a t th e v a lu e s o f i f o r w h ich jc (r ) is
d is c o n tin u o u s .
A t th e s e v a lu e s o f r, ( 4 .1 .5 ) c o n v e r g e s t o th e m id p o in t (a v e r a g e
\x (t )\d t < oo
( 4 .1 .6 )
J Tr
A lt p e r io d ic s ig n a ls o f p r a c tic a l i n te r e s t s a tis fy th e s e c o n d itio n s .
T h e w e a k e r c o n d itio n , t h a t th e s ig n a l h a s fin ite e n e r g y in o n e p e r io d ,
\x ( t ) \2d i < o c
( 4 .1 .7 )
J tp
g u a r a n te e s th a t th e e n e r g y in th e d if f e r e n c e s ig n a l
OC
e (t) = x { t ) -
Ckej2kF"'
k=oc
is z e r o , a lth o u g h * ( ; ) a n d its F o u r i e r s e r ie s m a y n o t b e e q u a l f o r a ll v a lu e s o f t.
N o te th a t ( 4 .1 .6 ) im p lie s ( 4 .1 .7 ) , b u t n o t v ic e v e r s a .
A l s o , b o t h ( 4 .1 .7 ) a n d th e
Sec. 4.1
235
FR E Q U E N C Y A N A LY S IS O F C O N T IN U O U S -TIM E PE R IO D IC S IG N A LS
Synthesis equation
-vU) = ^
Analysis equation
ct =
(4.1.8)
cke,2~kl'"'
j
1r Jrp
(4.1.9)
In g e n e r a l, th e F o u r i e r c o e ff ic ie n ts c k a r e c o m p le x v a lu e d .
e a s ily sh o w n t h a t if th e p e r io d ic s ig n a l is r e a l, c k a n d
M o r e o v e r , it is
a r e c o m p le x c o n ju g a te s .
A s a r e s u lt, if
ct = \ck\e}b
th e n
C-U ~~
C o n s e q u e n tly , th e F o u r i e r s e r ie s m ay a ls o b e r e p r e s e n te d in t h e fo r m
rv
a (M =
(-(, +
k i I c o s 0 -7 1 k
F()t
6k )
( 4 .1 .1 0 )
n-i
w h e r e t,, is r e a l v a lu e d w h e n x ( i) is r e a l.
F in a lly , w e s h o u ld in d ic a te th a t y e t a n o th e r fo r m f o r th e F o u r ie r s e r ie s ca n
b e o b ta in e d by e x p a n d in g th e c o s in e fu n c tio n in ( 4 .1 .1 0 ) as
c o s ( 2 jt A / v + 0k) c o s 2 n k F o i c o s 0t s i n l n k F ^ r s in fy
C o n s e q u e n tly , w e c a n re w r ite ( 4 .1 .1 0 ) in th e fo rm
3t
ji ( r ) ao + Y 2 ( a ic c o $ 2 n k F o t bk s i n 2 -n k F o i)
( 4 .1 .1 1 )
1=1
w h ere
<3() = Co
fl* = 2|C|- [ c o s 0k
bk = 2|q| sin # *
T h e e x p r e s s io n s in ( 4 .1 .8 ) , ( 4 ,1 .1 0 ) , a n d ( 4 .1 ,1 1 ) c o n s t itu te t h r e e e q u iv a le n t fo r m s
f o r th e F o u r i e r s e r ie s r e p r e s e n ta tio n o f a re a l p e r io d ic s ig n a l.
Px = ~
f
P 'T .
\x ( t ) \2d t
( 4 .1 .1 2 )
236
Chap. 4
I f w e ta k e th e c o m p le x c o n ju g a te o f ( 4 .1 .8 ) an d s u b s t itu te f o r * * ( / ) in ( 4 .1 .1 2 ) . we
o b ta in
OC
( 4 .1 .1 3 )
DC
E
k~ 3C
T h e r e f o r e , w e h a v e e s ta b lis h e d th e r e la tio n
( 4 .1 .1 4 )
w h ich is c a lle d P a r s e v a l's re la tio n fo r p o w e r s ig n a ls .
T o illu s tr a te th e p h y s ic a l m e a n in g o f ( 4 .1 .1 4 ) , s u p p o s e th a t .v(r) c o n s is ts o f a
s in g le c o m p le x e x p o n e n tia l
x (t) = c , e j27!tFn'
In th is c a s e , all th e F o u r ie r s e r ie s c o e f f ic ie n ts e x c e p t c* a r e z e r o .
C o n s e q u e n tly ,
th e a v e r a g e p o w e r in th e sig n a l is
It is o b v io u s th a t |q |: r e p r e s e n ts th e p o w e r in th e Ath h a r m o n ic c o m p o n e n t o f th e
sig n a l. H e n c e th e to ta l a v e r a g e p o w e r in th e p e r io d ic sig n a l is s im p ly th e su m o f
th e a v e r a g e p o w e r s in a ll th e h a r m o n ic s .
I f w e p lo t th e |q|2 as a fu n c t io n o f th e f r e q u e n c ie s kF o, k = 0 , 1 , 2 ..........th e
d ia g r a m th a t w e o b ta in sh o w s h o w th e p o w e r o f th e p e r io d ic s ig n a l is d is tr ib u te d
a m o n g th e v a r io u s f r e q u e n c y c o m p o n e n ts .
T h is d ia g r a m , w h ic h is illu s tr a te d in
- 4 F 0 - 3 F 0 2Fn F0
Figure 4.2
lct P
Fn
Frequency. F
This function is also called the power spectral density or. simply, the power spectrum.
237
Sec. 4.1
p o w e r in a p e r io d ic s ig n a l e x is ts o n ly at d is c r e te v a lu e s o f f r e q u e n c ie s ( i .e .. F 0.
F o . 2 F q . . . . ) . th e s ig n a l is s a id to h a v e a lin e sp e ctru m . T h e s p a c in g b e tw e e n
tw o c o n s e c u tiv e s p e c tr a l lin e s is e q u a l to th e r e c ip r o c a l o f th e fu n d a m e n ta l p e rio d
Ck = \ck\eJhL
w h ere
6k = 4-Q
In s te a d o f p lo ttin g th e p o w e r d e n sity s p e c tr u m , w e c a n p lo t th e m a g n itu d e v o lta g e
s p e c tr u m {|ot|} a n d th e p h a s e s p e c tr u m {(?*} as a fu n c tio n o f f r e q u e n c y . C le a r ly , th e
p o w e r s p e c tr a l d e n s ity in th e p e r io d ic s ig n a l is s im p ly th e s q u a r e o f th e m a g n itu d e
s p e c tr u m . T h e p h a s e in fo r m a tio n is to ta lly d e s tr o y e d ( o r d o e s n o t a p p e a r ) in th e
p o w e r s p e c tr a l d e n s ity .
I f th e p e r io d ic sig n a l is re a l v a lu e d , th e F o u r ie r s e r ie s c o e f f ic ie n ts { c * } sa tis fy
th e c o n d itio n
c -k =
C o n s e q u e n tly . Ki|: = |q|: . H e n c e th e p o w e r s p e c tru m is a s y m m e tr ic fu n c tio n o f
f r e q u e n c y . T h i s c o n d itio n a ls o m e a n s th a t th e m a g n itu d e s p e c tr u m is s y m m e tr ic
( e v e n f u n c t io n ) a b o u t th e o rig in an d th e p h a s e s p e c tru m is a n o d d fu n c tio n .
As
a c o n s e q u e n c e o f th e s y m m e tr y , it is s u ffic ie n t to s p e c ify th e s p e c tr u m o f a re a l
p e r io d ic sig n a l f o r p o s itiv e f r e q u e n c ie s o n ly . F u r th e r m o r e , th e to ta l a v e r a g e p o w e r
c a n b e e x p r e s s e d as
Px
+ 2
1q |
( 4 .1 .1 5 )
( 4 .1 .1 6 )
w h ich fo llo w s d ir e c t ly fro m th e r e la tio n s h ip s g iv e n in S e c t io n 4 .1 .1 a m o n g { aa },
{bn }. a n d ( q ) c o e f fic ie n ts in th e F o u r ie r s e r ie s e x p r e s s io n s .
Example 4.1.1
Determ ine the Fourier series and the power density spectrum of the rectangular pulse
train sienal illustrated in Fie. 4.3.
x(t)
-T
238
Chap. 4
Solution The signal is periodic with fundam ental period Tp and. clearly, satisfies the
Dirichlet conditions. Consequently, we can represent the signal in the Fourier series
given by (4.1.8) with the Fourier coefficients specified by (4.1.9).
Since x(t) is an even signal [i.e.. x(t) = * ( - ;) ] , it is convenient to select the
integration interval from ~ T p/2 to Tp/2. Thus (4.1.9) evaluated for k = 0 yields
(4.1.17)
The term c(I represents the average value (dc com ponent) of the signal .r (r). For k ^ 0
we have
Tp l ~j2TTkFn\ _ jri
A
ej*yf-i,r
tt FkTp
(4.1.18)
)2
A t sin TrkF^r
Tp
_
k = 1 . 2 . ...
n k F\\T
It is interesting to note that the right-hand side of (4.1.18) has the form (sin 4>)/4>,
where <p = n k F ^ . In this case <t>takes on discrete values since F(, and r are fixed and
the index k varies. However, if we plot (sin $)/</> with 0 as a continuous param eter
over the range oc < <t> < oc, we obtain the graph shown in Fig. 4.4. We observe
that this function decays to zero as 0 < x . has a maximum value of unity at <p = 0,
and is zero at multiples of tt (i.e., at <
p= mn. m = 1, 2 ,...) . It is clear that the
Fourier coefficients given by (4.1.18) are the sample values of the (sin <p)/<p function
for <$> xkFut and scaled in amplitude by A t / T p.
Since the periodic function x{t) is even, the Fourier coefficients c* are real.
Consequently, the phase spectrum is either zero, when c* is positive, or t t when c k is
negative. Instead of plotting the m agnitude and phase spectra separately, we may sim
ply plot |c*} on a single graph, showing both the positive and negative values ck on the
graph. This is commonly done in practice when the Fourier coefficients {c*} are real.
Figure 4.5 illustrates the Fourier coefficients of the rectangular pulse train when
Tp is fixed and the pulse width t is allowed to vary. In this case Tp = 0.25 second, so
that F() = \ j T p = 4 Hz and t = 0.057),, t = 0.17},, and r = 0.27),. We observe that
the effect of decreasing r while keeping Tp fixed is to spread out the signal power
over the frequency range. The spacing between adjacent spectral lines is F{) = 4 Hz,
independent of the value of the pulse width r.
sin <p
- I n 6n -57T 4n 3jt 2n n
2n
3n
0
Figure 4.4
4k
5n
bn
In
<j>
Sec. 4.1
ck
,mTrnit
239
J lU jii "
vfffilllll I l k ,
t = 0.1 Tp
u -itrnrm-i.
JJiLLUTT
j ct
F
T
= 0.05 Tr
..................rrnTfniniiin|fnijnnfiiifiii........... ...
F
On the other hand, it is also instructive to fix t and vary the period Tp when
Tp > r. Figure 4 .6 illustrates this condition when T,, ~ 5r. Tr = lOr. and Tp = 2 0 t .
In this case, the spacing between adjacent spectral lines decreases as Tp increases. In
the limit as Tr
oc, the Fourier coefficients q approach zero due to the factor of
Tp in the denom inator of (4 .1 .1 8 ). This behavior is consistent with the faci that as
Tp < oc and r remains fixed, the resulting signal is no longer a power signal. Instead,
Cl
...... ...................IMn 1'
..,.((111111 lllllllli,..
0
Tp = 20r
'M illin '"
Figure 4.6 Fourier coefficient of a rectangular pulse train with fixed pulse width
t and varying period Tp .
240
Chap.
it becomes an energy signal and its average power is zero. The spectra of finite energy
signals are described in the next section.
We also note that if k / 0 and sm(7ikFnx) = 0. then ct = 0. The harmonics
with zero power occur at frequencies kF0 such that n{kFG)r = m n , m = 1, 2 ,.
o r at JtF0 = m jx. For example, if F() = 4 Hz and t = Q.2TP, it follows that the spectral
components at 20 Hz, 40 H z , . .. have zero power. These frequencies correspond
to the Fourier coefficients
k = 5, 10, 15........O n the other hand, if r = 0.1Tp,
the spectral components with zero power are k = 10, 20, 3 0 ........
The power density spectrum for the rectangular pulse train is
lim x p(t)
This interpretation im plies that w e should be able to obtain the spectrum of * (/)
from the spectrum o f x p(i) sim ply by taking the limit as Tp -* oo.
W e begin with the Fourier series representation o f x p(t).
xp{t) =
ckej l ^ ' 1
F0 = y
(4.1.20)
where
(4.1.21)
Sec. 4.1
241
,r(n
- T
-TJ2
TJ2
TJ2
Figure 4.7
(h)
1 'Tr /2
= /
x ( t ) e ~ )27' kF'', d t
Tp J-Trfl
( 4 .1 .2 2 )
ct =
x { t ) e ~ j2 * kF" d t
( 4 .1 .2 3 )
Tp J-oc
X (F) =
x (t)e ~ lln F , dt
( 4 .1 .2 4 )
J-oc
A' ( F )
F q.
is a fu n c t io n o f th e c o n tin u o u s v a r ia b le F .
I t d o e s n o t d e p e n d o n Tp o r
H o w e v e r , i f w e c o m p a r e ( 4 .1 .2 3 ) a n d ( 4 .1 .2 4 ) , it is c l e a r th a t th e F o u r ie r
c o e f f ic ie n t s ct c a n b e e x p r e s s e d in te r m s o f X ( F ) as
c* = ^ X ( k F o )
1p
o r e q u iv a le n tly .
Tpc k = X ( k F 0) = X
( 4 A .2 5 )
T h u s th e F o u r i e r c o e ff ic ie n ts a r e s a m p le s o f X ( F ) ta k e n a t m u ltip le s o f f o a n d
s c a le d b y F 0 (m u ltip lie d b y \ / T p).
S u b s titu tio n f o r c t f r o m ( 4 .1 .2 5 ) in to ( 4 .1 .2 0 )
y ie ld s
V O
= ^r 'jh x ( ^ r ) er M
(4 .1 .2 6 )
242
Chap, 4
F i r s t , w e d e fin e
xpU ) =
Y2
X (k & F )e
JlxkAFi
( 4 .1 .2 7 )
k=-x
I t is c l e a r th a t in th e lim it as Tp a p p r o a c h e s in fin ity , x p {t) r e d u c e s to jc(/ ). A ls o , A F
b e c o m e s th e d iff e r e n tia l d F a n d k A F b e c o m e s th e c o n tin u o u s f r e q u e n c y v a ria b le
F.
In tu r n , th e s u m m a tio n in ( 4 .1 .2 7 ) b e c o m e s a n in te g r a l o v e r th e fr e q u e n c y
v a r ia b le F . T h u s
( 4 .1 .2 8 )
T h is in te g r a l r e la tio n s h ip y ie ld s x ( t ) w h e n X ( F )
is k n o w n , a n d it is c a lle d th e
A lth o u g h th e d e r iv a tio n is
Synthesis equation
inverse transform
(4 .1 .2 9 )
Analysis equation
direct transform
( 4 .1 .3 0 )
I t is a p p a r e n t th a t th e e s s e n tia l d if f e r e n c e b e tw e e n th e F o u r i e r s e r ie s a n d th e
F o u r i e r tr a n s fo r m is th a t th e s p e c tr u m in th e l a t t e r c a s e is c o n tin u o u s a n d h e n c e
th e s y n th e s is o f an a p e r io d ic s ig n a l fr o m its s p e c tr u m is a c c o m p lis h e d b y m e a n s o f
in te g r a tio n in s te a d o f s u m m a tio n .
F in a lly , w e w ish to in d ic a te th a t th e F o u r ie r t r a n s f o r m p a ir in ( 4 .1 .2 9 ) and
( 4 .1 .3 0 ) c a n b e e x p r e s s e d in te r m s o f th e r a d ia n fr e q u e n c y v a r ia b le Q =
2nF.
S in c e d F = d S l / l n . ( 4 .1 .2 9 ) a n d ( 4 .1 .3 0 ) b e c o m e
( 4 .1 .3 1 )
( 4 .1 .3 2 )
T h e s e t o f c o n d itio n s th a t g u a r a n te e th e e x is t e n c e o f th e F o u r i e r tr a n s f o r m is th e
Sec. 4.1
243
D ir ic h le t c o n d it io n s , w h ich m a y b e e x p r e s s e d as:
1 . T h e s ig n a l v (r) h as a fin ite n u m b e r o f fin ite d is c o n tin u itie s .
2 . T h e s ig n a l x ( t ) h a s a fin ite n u m b e r o f m a x im a a n d m in im a .
3 . T h e s ig n a l x ( t ) is a b s o lu te ly in te g r a b le , th a t is.
\x (t )\d t < o c
i:
( 4 .1 .3 3 )
\ X(F)\
jj
x ( t ) e - J2 F ,dt
< j
\x ( t )\d t
( 4 .1 .3 4 )
|.v(/)!^r < o c
J CM
th e n
rx
|.v(/)i^/ < o c
H o w e v e r , th e c o n v e r s e is n o t tr u e .
( 4 .1 .3 5 )
m a y n o t b e a b s o lu te ly in te g r a b le . F o r e x a m p le , th e s ig n a l
sin 2 n t
x {t) = -
7
( 4 .1 .3 6 )
Tt
is s q u a r e in te g r a b le b u t is n o t a b s o lu te ly in te g r a b le .
T h is s ig n a l h a s th e F o u r i e r
tr a n s fo r m
f1
* ( F ) = { o ;
\FI < 1
(4 -1 .3 7 )
S in c e th is s ig n a l v io la te s ( 4 .1 .3 3 ) , it is a p p a r e n t th a t th e D i r i c h l e t c o n d itio n s a re
s u ffic ie n t b u t n o t n e c e s s a r y f o r th e e x is te n c e o f th e F o u r i e r tr a n s f o r m . In a n y c a s e ,
n e a r ly all fin ite e n e r g y s ig n a ls h a v e a F o u r ie r tr a n s f o r m , s o t h a t w e n e e d n o t w o rry
a b o u t th e p a th o lo g ic a l s ig n a ls , w h ich a r e s e ld o m e n c o u n t e r e d in p r a c tic e .
244
Chap. 4
x ( t ) x '( i) d t
J OC
1oo
X '( F ) d F \
r /*oc
/
x { t ) e ~ j2 n F 'd t
'OC
\ X ( F ) \ 2d F
(4.1.39)
which is the integrand in (4.1.38), represents the distribution of en ergy in the signal
as a function o f frequency. H en ce SXX( F ) is called the e n e rg y d e n sit y s p e ctru m of
x ( t ). T he integral o f S XX( F ) over all freq u en cies gives the total en ergy in the signal.
V iew ed in another way, the energy in the signal x ( t ) over a band o f frequencies
F \ < F < F [ + A F is
From (4.1.39) w e observe that S XX( F ) d o es not con tain any p h ase inform ation
[i.e., SXX( F ) is purely real and n on n egative]. Since the phase spectrum of ;t(r) is
not contained in SXX( F ) , it is im possible to reconstruct the signal given S XX( F ) .
Finally, as in the case of Fourier series, it is easily show n that if the signal
x (t ) is real, then
\X ( -F ) \ =
X { -F )
\X ( F ) \
(4.1.40)
= -* X (F )
(4.1.41)
Sec. 4.1
245
SXX( ~ F ) = S xA F )
In other words, the energy density spectrum o f a real signal has even sym m etry.
Exam ple 4.1.2
D eterm ine the Fourier transform and the energy density spectrum of a rectangular
pulse signal defined as
~>
2
(a)
X<F)
Ar
F
(b)
Figure 4.8
246
Chap. 4
periodically repeating the pulse with period Tp as in Fig. 4.3. In other words, the
Fourier coefficients ck in the corresponding periodic signal xp{t) are simply samples
of X( F) at frequencies kF0 = k/ Tp. Specifically,
From (4.1.44) we note that the zero crossings of X( F ) occur at multiples of 1 /r.
Furtherm ore, the width of the main lobe, which contains most of the signal en
ergy, is equal to 2/z. As the pulse duration t decreases (increases), the main
lobe becomes broader (narrow er) and m ore energy is moved to the higher (lower)
frequencies, as illustrated in Fig. 4.9. Thus as the signal pulse is expanded (com
pressed) in time, its transform is compressed (expanded) in frequency. This be
havior, between the time function and its spectrum, is a type of uncertainty
principle that appears in different forms in various branches of science and engi
neering.
Finally, the energy density spectrum of the rectangular pulse is
, /sm 7 rj
S ( F ) = ( A t )1 ( " ~ ' ^ T )
} ( ttF-
(4.1.46)
*(r)
X 0 I
x (r)
X(F)
- L
X(l)
Figure 4.9
Sec. 4.2
247
(4.2.1)
y '1
n=0
* = 0. N , 2 N, . . .
otherw ise
2 2
N o te the sim ilarity o f (4.2.2) with the con tinu ou s-tim e counterpart in (4.1.3). T he
p roof o f (4.2.2) follow s im m ediately from the application of the geom etric sum
m ation form ula
jv-i
a = l
248
Chap. 4
T h e e x p r e s s io n f o r th e F o u r i e r c o e f f ic ie n ts c* c a n b e o b t a i n e d b y m u ltip ly in g
b o th s id e s o f ( 4 .2 .1 ) b y th e e x p o n e n tia l e ~ j2nin//v a n d s u m m in g th e p r o d u c t fro m
= 0 t o n
= yV 1. T h u s
N 1 A- ]
A'-l
^ 2 x ( n ) e ~ il!rln /N
c ke J2n<k~ l)n/N
n=(J
(4 .2 .4 )
n=0 t=0
k - I = 0, N , 2 N , . . .
o th e r w is e
| N,
I 0,
w h e r e w e h a v e m a d e u se o f ( 4 .2 .2 ) .
(4 2 5)
T h e r e f o r e , th e rig h t-h a n d s id e o f ( 4 .2 .4 )
r e d u c e s to N c / a n d h e n c e
j A'-l
q = -
1 = 0. 1 .......... N - 1
(4 .2 .6 )
/T = (J
T h u s w e h a v e th e d e s ir e d e x p r e s s io n fo r th e F o u r i e r c o e f f ic ie n t s in te r m s o f th e
s ig n a l x ( ) .
T h e r e la tio n s h ip s ( 4 .2 .1 ) a n d ( 4 .2 .6 ) fo r th e f r e q u e n c y a n a ly s is o f d is c r e te *
tim e s ig n a ls a r e s u m m a r iz e d b e lo w .
FR E Q U E N C Y ANALYSIS O F D IS C R E TE -TIM E P E R IO D IC SIGN ALS
Synthesis equation
iW l
-1 %
II
Analysis equation
A'-l
X(/! ) = ^ Ck(j2jTt"!r'
*=0
(4.2.7)
(4.2.8)
0 . 1 .......... N 1 p r o v id e th e d e s c r ip tio n o f jc ( ) in
th e f r e q u e n c y d o m a in , in th e s e n s e th a t c k r e p r e s e n t s th e a m p litu d e a n d p h a s e
a s s o c ia t e d w ith th e fr e q u e n c y c o m p o n e n t
n=0
n=0
( 4 .2 .9 )
Sec. 4.2
249
T h e r e f o r e , th e F o u r i e r s e r ie s c o e f f ic ie n ts { q } fo r m a p e r io d ic s e q u e n c e w h e n e x
te n d e d o u ts id e o f t h e r a n g e k = 0 , 1 ..........jV 1. H e n c e
Ck+N = <^k
th a t is , { c t } is a p e r io d ic s e q u e n c e w ith f u n d a m e n ta l p e r io d N.
T hu s the s p e ctru m
o f a signa l x(n ), w h ich is per iod ic with p e r i o d N , is a p er io d ic s e qu en ce with p e r io d
N . C o n s e q u e n tly , a n y N c o n s e c u tiv e s a m p le s o f th e s ig n a l o r its s p e c tr u m p r o v id e
a c o m p le t e d e s c r ip tio n o f th e s ig n a l in th e tim e o r f r e q u e n c y d o m a in s .
A lth o u g h th e F o u r i e r c o e f fic ie n ts fo r m a p e r io d ic s e q u e n c e , w e w ill fo c u s o u r
a tte n tio n o n th e s in g le p e r io d w ith ra n g e k = 0 , 1 .......... N 1. T h i s is c o n v e n ie n t,
s in c e in th e f r e q u e n c y d o m a in , th is a m o u n ts to c o v e r in g th e f u n d a m e n ta l ra n g e
0 < a>t =
2 n k /N
In c o n t r a s t , th e f r e q u e n c y ra n g e
it < a)* = 2 7 i k / N
Example 4.2.1
D eterm ine the spectra of the signals
(a) jr() = cos -Ji nn
(b) x(n) = cos nn/ 3
(c) x( n ) is periodic with period N = 4 and
x(n) = {1, 1.0.0}
T
Solution
(a) For m = J i n , we have / = 1j - Jl . Since f , is not a rational number, the signal
is not periodic. Consequently, this signal cannot be expanded in a Fourier series.
N evertheless, the signal does possess a spectrum. Its spectral content consists
of the single frequency component at id = wo = -Jin.
(b) In this case / (l = | and hence x{n) is periodic with fundam ental period N = 6.
From (4.2.8) we have
5
It = 0 . 1 ........5
However, x(n) can be expressed as
x(n) = cos
" r =
+ \ e~i2*nib
6
*
which is already in the form of the exponential Fourier series in (4.2.7). In
comparing the two exponential terms in x{n) with (4.2.7), it is apparent that
ci = j. The second exponential in x(n) corresponds to the term Jt = 1 in
(4.2.7), However, this term can also be written as
- j 2 j r n / 6 _
^ j2jr (5 n> /6
which means that c_i = c$. But this is consistent with (4.2.9), and our previous
observation that the Fourier series coefficients form a periodic sequence of
250
Chap. 4
C(, =
c, = ^
A-= 0 . 1 ,2 ,3
Ck
or
Ct = l ( l + e - i ^ )
A-= 0 . 1.2.3
For k = 0, 1, 2, 3 we obtain
f'l j ( l j )
C'd = S
f'2 = 0
Cl = j { l + j }
ki
4-Co = 0
4 f| = --
2tr- = undefined
4_o =
4
4
Figure 4.10 illustrates the spectral content of the signals in (b) and (c).
P, = -
M )|
( 4 .2 .1 0 )
W e s h a ll n ow d e riv e a n e x p r e s s io n fo r P x in te r m s o f th e F o u r i e r c o e f f ic ie n t {c<J.
I f w e u se th e r e la tio n ( 4 .2 .7 ) in ( 4 .2 .1 0 ) , w e h a v e
j v -i
Pi =
x(rt)x*(n)
n = ()
A'-l
N
N o w . w e c a n in te r c h a n g e t h e o r d e r o f th e tw o s u m m a tio n s a n d m a k e u s e o f ( 4 .2 .8 ) ,
o b ta in in g
p * = Y , ct
*=<j
IV1
A'-l
, A-i
- y x ( n ) e - j2kn/N
-i A I
( 4 . 2 . 11 )
Sec. 4.2
251
(a)
Zc t
Jr
"4
-3
1
- 2
- 1
... t
2 3 4
71
4
Figure 4.10 Spectra of the periodic
signals discussed in Example 4.2.1 (b)
and (c).
(c)
which is the desired exp ression for the average p ow er in the p eriod ic signal. In
other w ords, the average pow er in the signal is th e sum o f th e pow ers o f the
individual frequency com p onents. W e view (4.2.11) as a P arsevals relation for
d iscrete-tim e period ic signals. T h e seq u en ce | a |: for k = 0, 1 , N - 1 is the
distribution o f p ow er as a function o f freq u en cy and is called the p o w e r density
spectrum o f the periodic signal.
If w e are interested in the energy o f th e se q u en ce Jt(n) o v er a single period,
(4.2.11) im plies that
/VI
N -l
n=0
k()
(4.2.12)
which is consistent with our p reviou s results for con tin u ou s-tim e p eriodic signals.
If the signal x ( n ) is real [i.e., x (n) = jr(n)], then, p roceed in g as in S ec
tion 4.2.1, w e can easily sh ow that
ct = c . k
(4.2.13)
252
Chap. 4
or equivalently,
|c_*| =
|c * f
- 4 c_t =
(4.2.14)
(4.2.15)
T h ese sym m etry properties for the m agnitude and phase spectra o f a periodic sig
nal, in conjunction with the periodicity property, have very im portant im plications
on the frequency range o f discrete-tim e signals.
In d eed , by com bining (4.2.9) with (4.2.14) and (4.2.15), w e obtain
Iq
(4.2.16)
I =
and
4-c*
(4.2.17)
\c N p \
k jV /2 |,
A -c N[2
k ( A f + l)/2 l<
4-C (N -1)/2
II
|c il
4 .c 0 =
4 - c' l
- % - c' n
% -C N -l
(4.2.18)
k (/V -l)/2
if N is even
~ 4 - C ( /V + l)/2
if N is odd
= ao + ^
lc*l cos
(4.2.19)
(4.2.20)
Sec. 4.2
253
A'
Solution By applying the analysis equation (4.2.8) to the signal shown in Fig. 4.11.
we obtain
=
1 L~l
= -L Y Ae- P^n/
AJ i/
1
A j
k = 0. 1.
N - 1
which is a geom etric sum mation. Now we can use (4.2.3) to simplify the summation
above. T hus we obtain
AL
TT
A 1 - e- j2*kL/s
I N 1'
k= 0
k = 1.2.
N - 1
e -j2xkL;S
1 - <-
-jzk L tN
I.ikl/K
e -ink;'\
( rrl. \ _ ,-jxkl.\
-jxHt.-u.'K sin(xkL. /N )
s in (7 r /A /
T herefore.
AL
k = 0. +A'. 2 N ,
, s i ni n kL/ N)
sin(7zk/N)
I A'
(4.2.21)
otherwise
k*l" =
k = 0, +N. 2 A'.
V N
A V / sinnkL/N
Ar / V s i n n k / N
(4.2.22)
otherwise
Figure 4.12 illustrates the plots of jct |2 for L = 5 and 7, A' = 40 and 60. and A = 1.
254
Chap. 4
L = 5, N = 40
I 1II I 1. . I I I I
_xlJ
-2 0
-1 0
10
20
L = 7, N = 60
LJ i l
-3 0
- 20
-1 0
10
20
30
= 5. N =
-3 0
- 20
10
10
20
30
X (co) =
x ( n ) e ~ Jwr
(4.2.23)
FI OC
Physically, X(co) represents the frequency con ten t o f the signal x ( n ) . In other
words. X{(o) is a d ecom p osition o f x ( n ) into its frequency com p onents.
W e observe tw o basic d ifferen ces b etw een the Fourier transform of a discrete
tim e finite-energy signal and the F ourier transform o f a finite-energy analog signal.
First, for continuous-tim e signals, the Fourier transform , and h en ce the spectrum
o f the signal, have a frequency range o f {0 0 , 0 0 ). In contrast, the frequency
range for a discrete-tim e signal is unique over the frequency interval o f (n , n)
or, equivalently, (0. 2 tt). T h is property is reflected in the Fourier transform o f the
Sec. 4.2
255
22
j{u>^-27ik)u
cc
oc
(4.2.24)
/l = OC
OC
2 2
x ( n ) e - , Mn
= X(w)
X N (a>) = 2 2 x ( n ) e - llon
n=-N
con verges uniform ly to X(o)) as A1 -> oc. U niform con vergen ce m ean s that, for
every w, Xh((d) * X(ca), as /V -* oo. T he con vergen ce o f the Fourier transform
is discussed in m ore detail in the follow in g section. For the m om en t, let us as
sum e that the series con verges uniform ly, so that w e can interchange the order of
sum m ation and integration in (4.2.25). Then
256
Chap.
C onsequently,
x{n)
rj = OC
2:Tx(m).
0.
n'da) =
fJ 71
(4.2.26)
By com bining (4.2.25) and (4.2.26). w e obtain the desired result that
1
x (n )
fn
.7T J jt
X ( o j) e J
do)
(4.2.27)
If w e com pare the integral in (4.2.27) with (4,1.9), we n o te that this is just
the expression for the Fourier series coefficient for a function that is periodic with
period 2 n . The only difference b etw een (4.1.9) and (4.2.27) is the sign on the
exp on en t in the integrand, which is a con sequ en ce o f our definition o f the Fourier
transform as given by (4.2.23). T h erefore, the Fourier transform of the sequence
x ( n ) , defined by (4.2.23), has the form o f a Fourier series expansion.
In summary, the Fourier tra nsform p a ir f o r discrete-time signals is as follows.
FR EQ U EN C Y ANALYSIS OF DtS C R E TE -TIM E AP ER IO D IC S IG N A LS
Synthesis equation
inverse transform
x(
Analysis equation
direct transform
X {io )=
(4 .2 .2 8 )
OC
2 2
(4.2.29)
x ( n ) e ~ , w '1
Xjv(cw) =
22 xWe~
(4.2.30)
|X M l =
22
x (n )e '
<
2 2
<
00
Sec. 4.2
257
let condition for the Fourier transform o f con tinu ou s-tim e signals. T he first two
conditions d o n ot apply due to the discrete-tim e nature o f [*()}.
S om e se q u en ces are not absolutely sum m able, but they are square sum m able.
That is, they have finite energy
OC
Ex =
|jc(n ) |2 < oo
(4.2.33)
n = DC
which is a w eak er condition than (4.2.32). W e w ould like to d efine the Fourier
transform o f finite-energy sequ en ces, but w e m ust relax the con d ition o f uniform
con vergen ce. For such seq u en ces w e can im pose a m ean-square con vergen ce co n
dition:
lim f |X M - X N ((ti)\2dto = 0
Af<* J-71
(4.2.34)
Thus the energy in the error X(a>) - X/v(oj) tends toward zero, but the error
|X (w ) - Xw(a))j d o es not necessarily tend to zero. In this way w e can include
finite-energy signals in the class o f signals for which the Fourier transform exists.
Let us con sid er an exam p le from the class o f finite-energy signals. Suppose
that
X M = ( 1
[ U.
H ^
|< 7 r
(4-2.35)
T he reader should rem em ber that X(a>) is periodic with p eriod 2 n . H en ce (4.2.35)
represents only on e period o f X(co). The inverse transform o f X { cj) results in the
sequence
i
jr() =
-~
In
r
I
X { w ) e ja>nda)
eJ
sin<u,-n
dm = ------------
n^O
Jin
For n = 0, w e have
*( 0 )
H en ce
x (n ) =
n
(j)c sin a)cn
n
cocn
n = 0
(4.2.36)
n
oo < n < oo
(4.2.37)
258
Chap. 4
X(w)
1
-JT
UJt
(i),
7T
(b)
Figure 4.13
does not converge uniform ly for all w. H ow ever, the seq u en ce {jc()} has a finite
energy E x = o)c/ tc as will be show n in Section 4.3. H en ce the sum in (4.2.38) is
guaranteed to converge to the X (a>) given by (4.2.35) in the m ean-square sense.
T o elaborate on this point, let us con sid er the finite sum
X N (a>)=
(4.2.39)
Figure 4.14 show s the function X N{w) for several values of N . W e n ote that there
is a significant oscillatory oversh oot at co = coc, in d ep en dent o f the value o f N . As
Sec. 4.2
259
x , s(w)
^50<)
A"7o(ul)
Figure 4.14 Illustration of convergence of the F ourier transform and the G ibbs
phenom enon at the point of discontinuity
N increases, the oscillation s b ecom e m ore rapid, but the size o f the ripple rem ains
the sam e. O ne can sh ow that as N -* oo, the oscillations con verge to the point
o f the discontinuity at to a>t . but their am plitude d oes not go to zero. H ow ever,
(4.2.34) is satisfied, and therefore
converges to X ( w ) in the m ean-square
sense.
T he oscillatory behavior o f the approxim ation X^ic o) to the function X(a>) at
a point o f discontinuity o f
is called the G ib b s p h e n o m e n o n . A sim ilar effect
is ob served in the truncation o f the F ourier series o f a con tinu ou s-tim e periodic
signal, given by the syn th esis eq u ation (4.1.8). For exam ple, the truncation o f the
Fourier series for the period ic square-w ave signal in E xam ple 4.1.1, gives rise to
the sam e oscillatory behavior in the finite-sum approxim ation o f x ( t ) . T he G ibbs
ph en om en on will be en cou n tered again in the design o f practical, discrete-tim e
FIR system s considered in C hapter 8 .
260
Chap. 4
Ex = 2 2 l*(n )l2
n=oc
(4.2.40)
Ex =
00
22 x(n)x*(n)=
n ------- -v
I" J rJT
2 2 x(n)
X*
n
-v _
J JT
If we interchange the order o f integration and sum m ation in the equation above,
we obtain
dw
|X (co)\~du>
T h erefore, the energy relation b etw een x ( n ) and X(a>) is
E,=
oc
\
2 2 \x^)\2 =
n=-oc
fn
\X (c o )l2dco
(4.2.41)
This is Parseval's relation for discrete-tim e aperiodic signals with finite energy.
T he spectrum X(a>) is, in general, a com p lex-valu ed function of frequency.
It may be expressed as
X(u>) = \X ( c u ) \e J* M
(4.2.42)
where
Q(co) - ^ X ( c o )
is the phase spectrum and \X (a > )\ is the m agnitude spectrum .
A s in the case o f continuous-tim e signals, the quantity
S(o>) = | X M |2
(4.2.43)
(4.2.44)
or equivalently,
|X (ti>)| = |X(tt>)|
(even symmetry)
(4.2.45)
Sec. 4.2
261
(4.2.46)
(4.2.47)
From these sym m etry properties we con clu d e that the frequency range of
real d iscrete-tim e sign als can be lim ited further to the range 0 < co < n (i.e.,
on e-half o f the p erio d ). Indeed, if we know X ( a >) in the range 0 < w < n , we
can d eterm in e it for the range - n < co < 0 using the sym m etry p roperties given
above. A s w e have already ob served , sim ilar results hold for discrete-tim e periodic
signals. T h erefo re, the frequency-dom ain description o f a real discrete-tim e signal
is co m p letely sp ecified by its spectrum in the frequency range 0 < co < n .
U su a lly , w e w ork with the fundam ental interval 0 < a > < 7r o r 0 < F < F J 2,
exp ressed in H ertz. W e sketch m ore than half a period only w hen required by the
specific application.
Example 4.2.3
D eterm ine and sketch the energy density spectrum 5,,r (w) of the signal
= a"u(/i)
1 < a < 1
Solution Since \a\ < 1. the sequence x(n) is absolutely summable, as can be verified
by applying the geometric summation formula.
H ence the Fourier transform of x(n) exists and is obtained by applying (4.2.29). Thus
Since \ae~J,Jl = |a| < 1. use of the geom etric summation formula again yields
(1 ae~Ju,)( 1 aeJW)
or, equivalently, as
1
1 2a cos a>+ a
Note that S (-o> ) = Ss i (w) in accordance with (4.2.47).
Figure 4.15 shows the signal *() and its corresponding spectrum for a = 0.5
and a = -0 .5 . Note that for a = -0 .5 the signal has more rapid variations and as a
result its spectrum has stronger high frequencies.
262
Chap. 4
x(n) - (-0.5)"u(!
Figure 4.15
spectra.
and mii I = i
Figure 4.16
pulse.
D iscrete-tim e rectangular
Example 4.2.4
Determ ine the Fourier transform and the energy density spectrum of the sequence
xin) =
(4.2.48)
Hence xin) is absolutely summable and its Fourier transform exists. Furthermore,
we note that Jt(n) is a finite-energy signal with
= \A\: L,
The Fourier transform of this signal is
Sec. 4.2
263
1 - e~uL
s m( w / 2 )
(4.2.49)
For w = 0 the transform in (4.2.49) yields X(0) = AL, which is easily established
by setting w = 0 in the defining equation for X(a>), or by using L H ospitals rule in
(4.2.49) to resolve the indeterm inate form when w = 0.
The m agnitude and phase spectra of ;t(n) are
f \A\L,
|X<)I =
w= 0
sin(L /2)
sin(aj/2)
otherwise
(4-2.50)
and
w
2
$X (a>) = $ A - - ( L - l ) + $
sin(ctiZ./2)
'
sin(w/2)
(4.2.51)
where we should rem em ber that the phase of a real quantity is zero if the quantity is
positive and n if it is negative.
The spectra |X(o>)| and ^.X(w) are shown in Fig. 4.17 for the case A 1 and
L = 5. The energy density spectrum is simply the square of the expression given in
(4.2.50).
T here is an interesting relationship that exists b etw een the F ourier transform
o f the constant am plitude pulse in E xam p le 4.2.4 and the period ic rectangular
lX(w)l
264
Chap. 4
w ave considered in E xam ple 4.2.2. If w e evaluate the F ourier transform as given
in (4.2.49) at a set o f equally spaced (harm onically related) freq u en cies
w e obtain
(4.2.52)
If w e com pare this result with the expression for the F ourier series coefficients
given in (4.2.21) for the period ic rectangular w ave, w e find that
k = 0. 1 , . . . , N 1
(4.2.53)
T o elab orate, w e have established that the Fourier transform o f the rectangular
p ulse, which is identical with a single p eriod o f the period ic rectangular pulse
train, evaluated at the freq u en cies co = I n k / N , k = 0, 1 , ___ N 1, which are
identical to the harm onically related frequency com p onents u sed in the Fourier
series representation o f the periodic signal, is sim ply a m ultiple o f the Fourier
coefficients f a ) at the corresponding frequencies.
T he relationship given in (4.2.53) for the F ourier transform o f the rectangular
pulse evaluated at co 2 n k / N , k = 0. 1........ A ' - l , and the F ourier coefficients
o f the corresponding periodic signal, is not only true for these tw o signals but, in
fact, holds in general. This relationship is d evelop ed further in Chapter 5.
(4.2.54)
L et us express the
(4.2.55)
where r = |z| and co = 4 ;. T h en , w ithin the region o f con vergen ce of X (z), we
can substitute z = r e jai into (4.2.54), T his yields
(4.2.56)
From the relationship in (4.2.56) w e n ote that X ( z ) can be interpreted as
the Fourier transform o f the signal seq u en ce x ( n ) r ~ . T he w eigh tin g factor r ~ n is
growing with n if r < 1 and decaying if r > 1 . A ltern atively, if X ( z ) con verges for
Sec. 4.2
265
1-1 = 1 , then
X (:)U , = X H =
2 2 x { , ! ) e - 1,0,1
(4.2.57)
T h erefore, the Fourier transform can be view ed as the z-transform o f the sequ en ce
evaluated on the unit circle. If X ( z ) d oes not converge in the region |z| 1 [i.e.. if
the unit circle is n o t contained in the region o f con vergen ce o f X (z)], the Fourier
transform X ( i o ) d o es not exist.
W e should n o te that the existen ce of the z-transform requires that the s e
quence {jr ( )r"} be ab solu tely sum m able for som e value o f r. that is.
OC
22
| < oc
(4.2.58)
n~-oc
H en ce if (4.2.58) con verges only for values o f r > ro > 1. the z-transform exists,
but the Fourier transform d oes not exist. This is the case, for exam p le, for causal
seq u en ces o f the form jr(rc) = a " u(n ), where jo > 1 .
T here are seq u en ces, how ever, that do not satisfy the requirem ent in (4.2.58).
for exam p le, the seq u en ce
sin avrc
x ( n ) ----------
~ oo < n < oc
(4.2,5^)
Tin
This seq u en ce d o es not have a .--transform. Since it has a finite energy, its Fourier
transform con verges in the m ean-square sense to the d iscon tin uou s function X {(jo ).
defined as
M <*v
[ (J,
(4 2 6 0 )
<w( < \
a>\ < 71
In con clu sion , the existen ce of the z-transform requires that (4,2.58) be sat
isfied for so m e region in the z-plane. If this region contains the unit circle, the
Fourier transform X(cu) exists. H ow ever, the existen ce o f the Fourier transform,
which is defined for finite energy signals, d oes not n ecessarily ensure the existence
o f the z-transform .
(4.2.61)
T h e com p lex cepstrum exists if C^tz) con verges in the annular region n <
\z\ < n , w here 0 < r\ < 1 and r2 > 1. W ithin this region o f con vergen ce, C t (z)
can be represen ted by the Laurent series
Cx(z) = In X (z) =
c^
z ~n
(4.2.62)
266
Chap. 4
where
cAn) =
f In X ( z ) z n' 1d z
Jc
(4.2.63)
C is a closed contour about th e origin and lies w ithin the region o f convergence.
Clearly, if C, (z) can be rep resen ted as in (4.2.62), the com plex cepstrum sequence
{cr(rt)} is stable. F urtherm ore, if the com p lex cepstrum exists, Cx (z) converges on
the unit circle and hence w e have
CC
CAat) = lnX(cu) =
2 2 c A n ) e ~ JU,n
(4.2.64)
n-OC
where (cv(/i)} is the sequ en ce ob tain ed from the inverse F ourier transform of
In X(to). that is,
1 r
c r(n) = /
ln X (a >)eJwnd w
2tt J _ n
(4.2.65)
(4.2.66)
(4.2.67)
th en
By substituting (4.2.67) into (4.2.65), w e obtain the com plex cepstrum in the form
1
fn
cx (n) I [In |X ( a >)| + j6(cL>)]eJU,ndco
2jt J _ n
(4,2.68)
W e can separate the inverse F ourier transform in (4.2.68) into the inverse Fourier
transforms o f In |X (w )| and 9(a>)\
cm(n) = 2 -
ln\X(a>)\eJl^dcL>
(4.2.69)
ce(n) = - ^
6(co)eJa>ndco
(4.2.70)
In som e applications, such as sp eech signal processing, only the com p onent c(n)
is com puted. In such a case the phase o f X (a>) is ignored. T h erefore, the sequence
{*()} cannot b e recovered from {cm(n)j. That is, the transform ation from (jr(n)}
to {cm(n)} is not invertible.
In speech signal p rocessing, the (real) cepstrum has b een used to separate
and thus to estim ate the spectral con ten t o f the sp eech from the pitch frequency
of the speech. T he com plex cepstrum is used in practice to separate signals that
are con volved . T h e process o f separating tw o con volved signals is called d e c o n
volution and the use o f the com p lex cepstrum to perform the separation is called
h o m o m o r p h i c d econ vo lutio n. T his topic is discussed in Section 4.6.
Sec. 4.2
267
1 - Z ~ COS (at)
1 - 2 z _i
cosojo
+ z -2
N o te that both o f these seq u en ces have p oles on the unit circle.
For seq u en ces such as these tw o exam ples, it is som etim es useful to extend
the Fourier transform representation. T his can be accom plished, in a m ath em ati
cally rigorous w ay, by allow ing the Fourier transform to contain im pulses at certain
frequencies corresponding to the location o f the p oles o f X ( z ) that lie on the unit
circle. T he im pu lses are functions o f the con tinu ou s frequency variable co and
have infinite am plitude, zero width, and unit area. A n im pulse can be view ed as
the lim iting form o f a rectangular pulse of height 1 /a and width a, in the limit
as a -+ 0. Thus, by allow ing im pulses in the spectrum of a signal, it is p ossible
to exten d the Fourier transform representation to som e signal seq u en ces that are
neither absolutely sum m able nor square sum m able.
T h e follow in g exam ple illustrates the exten sion of the F ourier transform rep
resentation for three sequ en ces.
Exam ple 4.2.5
D eterm ine the Fourier transform of the following signals.
(a) x i(n) = u(n)
(b) jr2(n) = (-l)" (n )
268
Chap. 4
2i/ sin(w/2>
to = 2 r r k
2sm(j/2)
k = 0 . J . . ..
XA:)
---------- r =
1+ : !
;+ l
R O C :
|;i >
- -------
2 cos (to/2)
a> *
-------- --
2[ cos(to/2)
tt
t!)
2 , t (k r
|)
k =
0.
1.
. ..
+ 2rrk.
2 tZ k +
TT
^ = 0 . 1 . . . .
X; (to) =
if cos < 0
Note that due to the presence of the pole at a = 1 (i.e.. at frequency w = tt),
the m agnitude of the Fourier transform becomes infinite. Now \X(w)\ * oc as
w >
n. We observe that (])nu(n) = (cosTrn)u(n), which is the fastest possible
oscillating signal in discrete time.
(c) From the discussion above, it follows that A?(w) is infinite at the frequency
com ponent w = too. Indeed, from Table 3.3. we find that
:
R O C : |-| > 1
to ^ ito o 4- 27tk
k = 0. 1 . . . .
Sec. 4.2
269
wu -I- 2 n k
k = 0, 1 ....
x ( n ) = x a( n T )
(4.2.71)
T h e relationship (4.2.71) describes the sam pling process in the tim e dom ain.
A s discussed in C hapter 1, the sam pling frequency Fs = l / T m ust be selected large
enough such that the sam pling d oes not cause any loss o f spectral inform ation (no
aliasing). In d eed , if the spectrum of the analog signal can be recovered from the
spectrum o f the discrete- tim e signal, there is no loss of inform ation. C onsequently,
w e investigate the sam pling p rocess by finding the relationship b etw een the spectra
o f signals x a(t) and x ( n ).
If x a (t) is an aperiodic signal with finite energy, its (voltage) spectrum is given
by the F ourier transform relation
(4.2.72)
w hereas the signal x a (i) can be recovered from its spectrum by the inverse Fourier
transform
(4.2.73)
N o te that u tilization o f all frequency com p on en ts in the infinite frequency range
00 < F < 00 is necessary to recover the signal x(t) if the signal x(t) is not
bandlim ited.
T h e spectrum o f a discrete-tim e signal x ( n ) , ob tain ed by sam pling x a (t), is
given by the Fourier transform relation
OO
(4.2.74)
or, equivalently,
OO
X (f) = 2 2 x ( n ) e - ^ n
dc
(4.2.75)
270
Chap. 4
The sequ en ce x(n) can be recovered from its spectrum X(a>) or X ( / ) by the inverse
transform
-*{) -
2 tt J . x
X(co)eJU,ndco
(4.2.76)
= /
X { f ) e j2nJnd f
J-\/2
In order to determ ine the relationship b etw een the spectra of the discrete
time signal and the analog signal, w e n ote that period ic sam pling im poses a rela
tionship betw een the in d ep en dent variables t and n in the signals x a {t) and x(n),
respectively. That is,
r = nT =
F,
(4.2.77)
This relationship in the tim e dom ain im plies a corresponding relationship betw een
the frequency variables F and / in Xa(F) and X( f ) . respectively.
Indeed, substitution o f (4.2.77) into (4.2.73) yields
Xtl(F)ej2,TnF/F'd F
(4.2.78)
f oc
X ( f ) e j2nf " d f =
X u ( F ) e )2nnFlFd F
(4.2.79)
J -oc
\a
From the d evelop m en t in C hapter 1 w e know that periodic sam pling im poses a
relationship b etw een the frequency variables F and / of the corresponding analog
and discrete-tim e signals, respectively. That is,
/ =
(4.2.80)
With the aid o f (4.2.80), w e can m ake a sim p le change in variable in (4.2,79), and
obtain the result
y
X ^ - 0 ej2nF/F' d F =
X a ( F ) e j2,,nF/F- d F
(4.2.81)
W e now turn our atten tion to the integral on the right-hand side o f (4.2.81)T he integration range of this integral can be divided into an infinite num ber of
intervals o f width F,. Thus the integral over the infinite range can be expressed
as a sum o f integrals, that is,
oc
3C
X a ( F ) e J2,TnF/F' d F =
x
[{k+XflsF,
/
Jt= -o c J ( k - \ f l ) F s
X a ( F ) e J2jrnF/Fd F
(4.2.82)
Sec. 4.2
271
p{k+\l2)F,
x.
X a( F ) e i27TnF/F' d F =
J ^ \fl\Fs
Y2
* F\ :2
X a ( F - k F , ) e p^ nF!f d F
k=-?c
'FJ2
J2
X a( F - k F < )
' ~"r ! d F
J-FJ2
(4.2.83)
where w e have used the p eriodicity of the exp on en tial, nam ely.
e j 2 n n { F + k F s )/Ft _ ^jTnnF/F,
X ( t ) = F' T . X A F - k F . )
' *t
k=--XL
(4.2.84)
or, equivalently.
OC
X(f) = F
X a [ ( f - k ) F s]
(4.2.85)
|f | < F J 2
(4.2.86)
In this case there is no aliasing and therefore, the spectrum o f the discrete-tim e
signal is identical (w ithin the scale factor F,) to the spectrum o f the analog signal,
within the fundam ental frequency range |F | < Fsf 2 or [ f \ <
O n the other hand, if the sam pling frequency Fs is selected such that Fs <
2 B, the periodic continuation o f X a( F ) results in spectral overlap, as illustrated
in Fig. 4.18(c) and (d). T h u s the spectrum X { F / F S) o f the discrete-tim e signal
contains aliased frequency com p onents o f the analog signal spectrum X a(F). The
end result is that the aliasing which occurs prevents us from recovering the original
signal x (r) from the sam ples.
G iven the discrete-tim e signal x(n) with the spectrum X ( F / F S), as illustrated
in Fig. 4.18(b ), w ith no aliasing, it is n ow p ossible to reconstruct the original analog
Sec. 4.2
273
*.<-(*()
(4.2.87)
r -
\ F \ > F 5/ 2
lo ,
f )-
/
(4.2.88)
n= -o c
f F' p-
X a ( F ) e s~*F ' d F
(4.2.89)
F, J - F J
x { n ) e ~ j2 * Fn/F
dF
(4.2.90)
s\n(n/T )(t - nT)
(ir/T W -n T )
where x (n ) = x a( n T ) and w here T = \ / F s 1 /2 B is the sam pling interval. This
is the reconstruction form ula given by (1.4.24) in our discussion o f the sam pling
theorem .
T h e reconstruction form ula in (4.2.90) in volves the function
i KO =
s in (jr /7 );
s in 2 ^ B f
(n/T)t
2n B t
(4.2.91)
274
Chap, 4
A ccordin g to the sam pling theorem and the reconstruction form ula in (4.2,90),
the recovery o f x a(t) from its sam ples ;c(), requires an infinite num ber o f sam
ples. H ow ever, in practice w e use a finite num ber o f sam ples o f the signal and
deal with finite-duration signals. A s a con seq u en ce, w e are con cern ed only with
reconstructing a finite-duration signal from a finite num ber o f sam ples.
W hen aliasing occurs due to to o low a sam pling rate, the effect can be de
scribed by a m ultiple folding o f the frequency axis o f the frequency variable F for
the analog signal. Figure 4.20(a) show s the spectrum X a(F ) o f an analog signal.
A ccordin g to (4.2.84), sam pling of the signal with a sam pling frequency Fs results
in a periodic repetition o f X a( F ) with period Fs . If Fs < 2 B , the shifted replicas of
X g {F) overlap. T he overlap that occurs within the fundam ental frequency range
F.J2 < F < Fs/2, is illustrated in Fig. 4.20(b ). T h e corresponding spectrum of
the discrete-tim e signal w ithin the fundam ental frequency range, is obtained by
adding all the shifted portions within the range | / | < j , to yield the spectrum
shown in Fig. 4.20(c).
A careful inspection of Fig. 4.20(a) and (b) reveals that the aliased spectrum
in Fig. 4.20(c) can be obtained by folding the original spectrum lik e an accordian
with pleats at every odd m ultiple o f Fs/2. C on sequ en tly, the frequency F J 2 is
called the f o l d i n g fre q u e n c y , as indicated in C hapter 1. Clearly, then, periodic
sam pling autom atically forces a folding o f the frequency axis o f an analog signal
at odd m ultiples o f Fs/2, and this results in the relationship F = f Fs b etw een the
frequencies for con tinu ou s-tim e signals and discrete-tim e signals. D u e to the fold
ing o f the frequency axis, the relationship F f F, is not truly linear, but piecew ise
linear, to accom m odate for the aliasing effect. T his relationship is illustrated in
Fig. 4.21.
If the analog signal is bandlim ited to B < Fs/2, the relationship betw een /
and F is linear and o n e-to-on e. In other words, there is no aliasing. In practice,
prefiltering with an antialiasing filter is usually em p loyed prior to sam pling. This
ensures that frequency com p onents o f the signal above F > B are sufficiently
attenuated so that, if aliased, they cause n egligib le distortion on th e desired signal.
T h e relationships am ong the tim e-d om ain and freq u en cy-d om ain functions
x a (t), x ( n ) , X ( F ), and X ( f ) are sum m arized in Fig, 4.22. T h e relationships for
Sec. 4.2
0
(a)
o
T
T
(c)
Figure 4.20
Figure 4.21
275
276
Chap. 4
XJF)=
Fourier transform
pair
Xa(t)
\.
Xa(F)
xa(t) = j ~ Xa(F )ei -^' dF
a:0(F)
Reconstruction:
= tfrt)
F,
IFI < - j
7r(t - nT)!T
Sampling-,
x(n) - x a(nT)
x(n)
X (/)
Fourier transform
pair
x(n) = J
Figure 4.22
X(f)eill,f"df
nals.
recovering the con tinu ou s-tim e functions, x 0{t) and X a{F ), from th e discrete-tim e
quantities x ( n ) and X ( f ) , assum e that the analog signal is bandlim ited and that it
is sam pled at the N yquist rate (or faster).
T h e follow in g exam p les serve to illustrate the problem o f the aliasing of
frequency com ponents.
LgjZxFai
has a discrete spectrum with spectral lines at F = F U> as shown in Fig. 4.23(a). The
process of sam pling this signal with a sam pling frequency Fs introduces replicas of the
spectrum about multiples of Fs. This is illustrated in Fig. 4.23(b) fo r Fs/2 < F0 < F,To reconstruct the continuous-time signal, we should select the frequency com
ponents inside the fundam ental frequency range \F\ < Fs f l . The resulting spectrum
Sec. 4.2
277
Spectrum
_|
0
-Fo
F0
U)
Spectrum
' it
-F t
Fu - Fs 0 F,. - F0
(b)
Spcctrum
2T\
- F q - Fs
Fs F, - F0 0 F0 - F, F,
(d)
Spectrum
2
F,
-y
f3
(e)
Figure 4.23
F 0 + F,
278
Chap. 4
F (t)i
Now. if Fv is selected such that Fs < F(l < 3F 5/2, the spectrum of the sampled
signal is shown in Fig. 4.23(d). The reconstructed signal, shown in Fig. 4.23(e). is
xu(t) = cos2jr(F (1 - Fs)i
In both cases, aliasing has occurred, so that the frequency of the reconstructed signal
is an aliased version of the frequency of the original signal.
E x a m . e 4.2.7
A>0
oc < n < oc
The spectrum of x(n) can be found easily if we use a direct com putation of the Fourier
transform. We find that
F\
F, J
1 - e~1AT
1 - 2e~A1 cos I n FT + e~2AT
T =
1
Fs
\F\<!
( t.
Xa(F) =
[o .
I F I > J
Figure 4.24(a) shows the original signal xa(t) and its spectrum X a( F ) for A = 1The sampled signal x(n) and its spectrum X ( F / F S) are shown in Fig. 4.24(b) for
= 1 Hz. The aliasing distortion is clearly noticeable in the frequency domain. The
reconstructed signal xa(r) is shown in Fig. 4.24(c). The distortion due to aliasing can
be reduced significantly by increasing the sampling rate. For example, Fig. 4.24(d)
illustrates the reconstructed signal corresponding to a sampling rate Fs = 20 Hz. It
is interesting to note that in every case xa( nT) = xa(nT), but x{t) / xa(t) at other
values of time.
Sec. 4.2
279
x (n :
.*,,(/) = e~A>11 .A = I
14
A - + (2 ttF) 2
(al
1.0
-2
-1
1 t
[
.
<b)
(c }
(d)
Figure 4.24 (a) A nalog signal xa(i ) and its spectrum Xa(Fy. (b) xin i = x a ( ti T)
and the spectrum of *(n) for A = 1 and F, = 1 Hz; (c) reconstructed signal x(i)
for F, - 1 Hz: (dj reconstructed signal i aU) for Fs = 20 Hz.
280
Xa{F)
Chap. 4
X{a>)
fa)
X(w)
Xa(F)
(b)
XJF)
X(oj)
(c)
Figure 4.25 (a) Low-frequency, (b) high-frequency, and (c) medium-frequency
signals.
spectrum (or the energy density spectrum ) is concentrated at high frequencies,
the signal is called a h igh -fr eq uency signal. Such a signal spectrum is illustrated
in Fig. 4.25(b). A signal having a p ow er density spectrum (or an energy density
spectrum ) concentrated som ew h ere in the broad frequency range b etw een low fre
q uencies and high frequencies is called a m e d i u m - f r e q u e n c y signal or a bandpass
signal. Figure 4.25(c) illustrates such a signal spectrum .
In addition to this relatively broad frequency-dom ain classification o f signals,
it is often desirable to express q uantitatively the range o f freq u en cies over which
the p ow er or energy density spectrum is concentrated. This q u an titative m easure
is called the b a n d w i d t h o f a signal. For exam p le, su p p ose that a con tinu ou s
tim e signal has 95% o f its p ow er (or energy) density spectrum con cen trated in the
frequency range F\ < F < F 2. T hen the 95% bandw idth o f the signal is F2 F 1 . In
a sim ilar m anner, w e may define the 75% or 90% or 99% bandw idth o f the signal.
Sec. 4.2
281
jX(ti>)| = 0
Sim ilarly, a p eriod ic co n tinu ou s-tim e signal x p (r) is p eriodically bandlim ited if its
F ourier coefficien ts c* = 0 for || > M , w here M is som e p ositive integer. A
p erio d ic discrete-tim e signal w ith fundam ental period N is periodically bandlim ited
if the Fourier coefficients ck = 0 for kG < |j < N . Figure 4.26 illustrates the four
types o f bandlim ited signals.
B y exploiting the duality b etw een the frequency dom ain and the tim e dom ain,
we can provide sim ilar m ean s for characterizing signals in the tim e dom ain. In
particular, a signal x ( t ) will be called tim e- lim ited if
x(r) =
|f|
>
If the signal is p eriod ic with period Tn, it will be called periodic ally time- lim ited if
x p it)
<
\t\
<
T p f l
In I > N
it is also called tim e-lim ited. W hen the signal is period ic with fundam ental period
it is said to be p eriod ically tim e-lim ited if
x(n} = 0
Figure 4 J 6
282
Chap. 4
W e state, w ithout proof, that no sign al can be time-lim ited a n d ban dlimited
sim ultaneously. Furtherm ore, a reciprocal relationship exists b etw een the time
duration and the frequency duration o f a signal. T o elaborate, if w e have a shortduration rectangular pulse in the tim e dom ain, its spectrum has a width that is
inversely proportional to the duration o f the tim e- dom ain pulse. T he narrower
the pulse b eco m es in the tim e dom ain, the larger the bandwidth of the signal
b ecom es. C onsequently, the product o f the tim e duration and the bandwidth of
a signal cannot be m ade arbitrarily sm all. A short-duration signal has a large
bandwidth and a sm all bandwidth signal has a lon g duration. T hus, for any signal,
the tim e-b an dw id th product is fixed and cannot b e m ade arbitrarily small.
Finally, w e n o te that w e have discussed frequency analysis m eth od s for peri
odic and aperiodic signals with finite energy. H o w ev er, there is a family o f deter
m inistic aperiodic signals with finite pow er. T h ese signals consist o f a linear super
p osition o f com plex exp on en tials with nonharm onically related frequencies, that is,
M
x{n) = Y l A ke ^ n
k= 1
w here &>i, a s , . . . , a >m are nonharm onically related. T h ese signals have discrete
spectra but the distances am ong the lin es are nonharm onically related. Signals
with discrete nonharm onic spectra are som etim es called quasi-periodic.
Sec. 4.2
283
SIGN ALS
Type of Signal
0-20
0-20
E lectroretinogram 8
Electronystagtnogram h
P neum ogram '
Electrocardiogram (EC G )
E lectroencephalogram (E E G )
Electrom yogram d
Sphygm om anogram e
Speech
"A
A
CA
dA
CA
0-40
0-100
0-100
10-200
0-200
100-^000
TABLE 4.2
FR E Q U E N C Y R A NG ES OF SO M E S E IS M IC SIGNALS
Type o f Signal
W ind noise
Seismic exploration signals
E arthquake and nuclear explosion signals
Seismic noise
TABLE 4.3
100-KXX)
10-11X1
(1.01-1(1
0.1-1
W avelength (m )
10M 02
io-- i o - :
3 x lO4^ x JO6
3 x 1(^-3 x 10U1
Type of Signal
R adio broadcast
S hortw ave radio signals
R adar, satellite com m unications.
space com m unications.
com m on-carrier microwave
Infrared
Visible light
U ltraviolet
G am m a rays and x-rays
3.9
1-10
u rM o ^ 6
10_7-8.1
10~7
10 -7-]O - 8
u r M o - 10
3 x
3x
3.7 x
3 x
3 x
10^-3 x
10 113 x
10w-7.7
1015-3 x
10173 x
1010
I0 i4
x 1014
lO16
101K
differen t types o f signals. T o sum m arize, the follow in g frequency analysis tools
have b een introduced:
1. T he F ourier series for con tinu ou s-tim e p eriod ic signals.
2. T he F ourier transform for con tinu ou s-tim e ap eriod ic signals.
3. T he F ourier series for discrete-tim e periodic signals.
284
Chap. 4
Figure 4.27 sum m arizes the analysis and synthesis form ulas for these types of
signals.
A s w e have already indicated several tim es, there are two tim e-dom ain char
acteristics that determ ine the type of signal spectrum w e obtain. T h ese are whether
the tim e variable is con tinu ou s or discrete, and w h eth er the signal is periodic or
aperiodic. Let us briefly sum m arize the results o f the previous sections.
Figure 4.27
286
Chap. 4
we observe that there are dualities b etw een the follow in g analysis and synthesis
equations:
1. T he analysis and synthesis eq u ation s o f the con tinu ou s-tim e Fourier trans
form.
2. T he analysis and synthesis eq u ation s of the discrete-tim e F ourier series.
3. T he analysis eq u ation o f the con tinu ou s-tim e F ourier series and the synthesis
equation o f the discrete-tim e Fourier transform.
If w e turn our atten tion now to the spectral density o f signals, w e recall that
we have used the term ener gy density sp e ctru m for characterizing finite-energy
aperiodic signals and the term p o w e r density sp e ctru m for period ic signals. This
term inology is con sistent with the fact that periodic signals are p ow er signals and
aperiodic signals w ith finite energy are energy signals.
X(a>) = F {x{)} =
x ( n ) e ~ Jcun
(4.3.1)
/J CC
X{u>)ejmndoo
(4.3.2)
2 * J 2n
for the inverse transform (syn thesis eq u ation ). W e also refer to x ( n ) and X(o)) as
a Fourier tra nsfo rm p a i r and d en ote this relationship with the n otation
Sec. 4.3
287
R ecall that X (a>) is periodic with period 2 n . C on sequ en tly, any interval
o f length 2 n is sufficient for the specification o f the spectrum . U sually, we plot
the spectrum in the fundam ental interval [jr. tt J. W e em p hasize that all the
spectral inform ation contained in the fundam ental interval is necessary for the
co m p lete d escription or characterization o f the signal. For this reason, the range
o f integration in (4.3.2) is always 2jt, in d ep en dent o f the specific characteristics o f
the signal w ithin the fundam ental interval.
(4.3.4)
(4.3.5)
By substituting (4.3.4) and e~>w cosu> - / s in co into (4.3.1) and separating the
real and im aginary parts, we obtain
OC
Xk(lo) =
22
(4.3.6)
ft = OC
SC
X/(a>) = 2 2 [*jfOO sin a>n.*/() cos&inj
n=-oc
(4.3.7)
In a sim ilar m anner, by substituting (4.3.5) and eJm = cos co + j s m u > into (4.3.2),
w e obtain
x R(n) = - f [X/?(a>) cosam X/(co) sin con]dco
2 n J2n
(4.3.8)
X/(n)
(4.3.9)
"T J2k
N o w , let us in vestigate som e special cases.
H en ce
OC
(4.3.10)
288
Chap. 4
and
X i { w) =
* ( )s in o jrt
(4.3.11)
Since c o s (con) = cos ton and sin (con) = sin cun, it follow s from (4.3.10) and
(4.3.11) that
X R( - w ) = X R(co)
(ev en )
(4.3.12)
(o d d )
(4.3.13)
X*(co) = X ( - w )
(4.3.14)
In this case we say that the spectrum o f a real signal has H e r m itia n sy m m etry.
W ith the aid o f Fig. 4.28, w e observe that the m agnitude and phase spectra
for real signals are
X(to)\ =
J X\{co)
+ Xj(co)
(4.3.15)
(4.3.16)
4 _X|oj| = tan
X
( co)
A s a con sequ en ce o f (4.3.12) and (4.3.13), the m agnitude and p h ase spectra also
p ossess the sym m etry properties
|,Y(co)| = \ X { co)\
liX (-co) = -& X (to )
(ev en )
(4.3.17)
(od d )
(4.3.18)
In the case o f the inverse transform o f a real-valued signal [i.e., Jt(n) = jcj?(n)],
(4.3.8) im plies that
(n) =
(4.3.19)
Jin
R(co)
Since both products X R
(to) cos ton and X /( oj) sin con are even fun ction s o f co, we
have
1 r
= I [X^(cu) cos con X/(co) sin con]dco
x Ja
Imaginary axis
functions.
(4.3.20)
Sec. 4.3
289
x(n)coswn
(e v e n )
(4.3.21)
X i ( w) = 0
(4.3.22)
(4.3.23)
(4.3.24)
(o d d )
(4.3.25)
(4.3.26)
T h u s re a l-v a lu e d o d d signals possess p u rely im ag in arv -v alu ed sp e ctral c h a ra c te ris
tics. w hich, in a d d itio n , a re o d d f unct i ons o f th e freq u e n cy v ariab le co.
(4.3.27)
(ev en )
(4.3.28)
(4.3.29)
If x / ( n ) is o d d [i.e., x / ( n) = x/ (n)], th e n
(o d d )
X/(a>) = 0
(4.3.30)
(4.3.31)
(4.3.32)
290
Chap. 4
(4.3.33)
X
X [ ( oj) = x /(0 ) + 2 Y ^ x i ( n ) cos con
(ev en )
(4.3.34)
n= 1
1 r
x ; ( n) = I
X Jo
(4.3.35)
xito) = [x(R(co) + j x f u o ) 1 +
'
(4.3.37)
+ j x ) \ w) ]
Example 4.3.1
Determ ine and sketch X R(w), X , ( w ), l^ioOi. and ^X(co) for the Fourier transform
X(a>) =
- 1< a < 1
(4.3.38)
1 a e ~ ,w
Solution By multiplying both the num erator and denom inator of (4 .3 .3 8 ) by the
complex conjugate of the denom inator, we obtain
1 ae!w
1 a co s co j a sin co
X(w) - ----------------------------- = ------------------ ------
(1 a e ~ }U,) ( 1 - a e JU>)
1 2a c o s o j + a "
This expression can be subdivided into real and imaginary parts. Thus we obtain
1
X r (w )
1
a cos co
a cos o j + a 1
a sin w
X,(u>) = -
1 2a cos co + a 2
Substitution of the last two equations into (4.3.15) and (4.3.16) yields the mag
nitude and phase spectra as
|X(<u)i -
1 - = =
v l 2a cos co
a2
(4.3.39)
Sec. 4.3
Sequence
DTFT
xin)
A' (w)
Xi-w)
X (a>)
x (n )
j 'l - n )
J(n)
A>(n) =
"I-
4 [ j r ( n } + a ' ( n ) ]
X R\.u
- , v ( n)]
j X, { t o)
x(n) =
^)]
jx /[n )
Real Sienals
A n y real signal
x (n )
X (w ) = X ' ( - u i )
X r (w ) = X r { id)
Xfiuj)
IX ( oj)| = ] X ( <y)|
\ t.(n)
i (a (>>)
,r( n )]
(r e a l an d e v e n )
x.An)
i|.r(n) -
r l n)]
(r e a l a n d o d d )
F igure 4.29
= -iX (-w )
An(to)
(real and even)
]X
(imaginary and odd)
291
292
Chap, 4
and
XrX(w) =
- tan
(4.3.40)
1
1 a cos w
Figures 4.30 and 4.31 show the graphical representation of these spectra foT
a = 0.8. The reader can easily verify that as expected, all symmetry properties for
the spectra of real signals apply to this case.
Example 4.3.2
D eterm ine the Fourier transform of the signal
| A.
M < n < M
1 0,
elsewhere
Teal
(4.3.41)
and even signal. From (4.3.21)
X(a>) = X K(a>) = A I 1 4- 2 ^ c o s
Xg((i>)
(a)
(b)
Figure 4 J 0
Sec. 4.3
293
IXlcoM
(a)
^X{w)
Figure 4.31
If we use the identity given in Problem 4.13, we obtain the simpler form
X(u>) = A
sinfAf + l)oj
. - -J sin(tu/2)
Since X (a>) is real, the magnitude and phase spectra are given by
sin(Af +
IX M I =
sin(a)/2)
I
|
(4,3.42)
and
0,
jt,
if X{w) > 0
if X(a>) < 0
(4.3.43)
294
Chap. 4
X(n)
- MOM
X(u>)
IXMI
ZX(w)
Linearity.
If
Sec. 4,3
295
an d
F
X2 (n) * X ;(a/)
th en
(4.3.44)
Sim ply sta te d , th e F o u rie r tra n sfo rm a tio n , view ed as an o p e ra tio n on a signal
jt(rt), is a iin e a r tra n sfo rm a tio n . T h u s th e F o u rie r tra n sfo rm o f a lin e a r c o m b in a tio n
o f tw o o r m o re signals is eq u al to th e sam e lin e a r co m b in a tio n o f th e F o u rie r
tra n sfo rm s o f th e in d iv id u al signals. T h is p ro p e rty is easily p ro v e d by using (4.3.1).
T h e lin earity p ro p e rty m a k e s th e F o u rie r tra n sfo rm su ita b le fo r th e stu d y o f lin ear
system s.
Example 4.3.3
Determ ine the Fourier transform of the signal
(4.3.45)
provided that
\ae ""I = Icij |e ""| = \a] < 1
which is a condition that is satisfied in this problem. Similarly, the Fourier transform
of X j i n ) is
296
Chap, 4
By combining these two transforms, we obtain the Fourier transform of x(n) in the
form
X ((i>) =
l _ a:
1 -
(4.3.46)
2a co so j + a 2
Figure 4.33 illustrates *(n) and X(w) for the case in which a = 0.8.
Time shifting.
If
X (a))
x (n )
th e n
x ( n - k)
e - ja,kX ( w )
(4.3.47)
X(a>)
Figure 4.33
Sec. 4.3
297
If
X(co)
j:()
th e n
x(-n)
X ( - a >)
(4.3.48)
22 x ( l '>e>Wi =
f= OC
If
F
x\ (n) 4 X ](w)
an d
x 2 (n)
X 2 {oj)
th e n
x (n ) = Xi (h) * X2 (n)
(4.3.49)
OC
^
" OC
^
x \ { k ) x 2(n k)
e~]a>n
298
Chap. 4
t
Solution
Then
X (co) = A't (cijjASfa)) = (1 + 2coso>)
= 3 + 4 cos w -i- 2 cos ho
= 3 4- 2 (c"" + ( "") + ic' 2"' +
Hence the convolution of
with
is
.v (ii) = ( 1 2 3 2 1 )
If
x i(n )
X \(a>)
A;( )
Xzito))
an d
th en
ri,x2(m )
S ,; (w) = X \ ( c d) X 2 (oj)
(4.3.50)
x ] ( k ) x 2( k - n )
k=~-'X.
B y m u ltip ly in g b o th sides o f this e q u a tio n by th e e x p o n e n tia l ex p (jeon) and
su m m in g o v er all n , w e o b ta in
OC
Sxll2(w) =
oc
x i ( k )x 2(k - n )
e ~ JmR
X2M
Figure 4 3 4
F in ally , w e in te rc h a n g e th e o rd e r o f th e su m m a tio n s an d m a k e a ch an g e in th e
su m m a tio n in d ex . T h u s w e find th a t th e rig h t-h a n d sid e o f th e e q u a tio n above
re d u c e s to X \ ( u ) ) X 2 ( a>). T h e fu n ctio n SXlX2(a)) is called th e cross-energy density
s pe c t r um o f th e sig n a ls x\ (n) an d x 2 (n).
L e t jc(n) be a re a l signal. T h e n
s(a)
(4-3.51)
Example 4JJ
D eterm ine the energy density spectrum of the signal
x(n) = tf^ufn)
- 1<a < 1
300
Chap. 4
Solution
signal is
From Example 2.6.2 we found that the autocorrelation function for this
f a il)
1 a*
By using the result in (4.3.46) for the Fourier transform of a 1'1, derived in Exam
ple 4.3.3. we have
= ----- ----- - 1 2a cos w + a-
1 0
Sxx(w) =
Frequency shifting.
If
x( n) < F > X( u) )
th en
e i<onnx ( n )
X(cu-m )
(4.3.52)
If
x( n) < F > X (a>)
X(u>)
_2
1
2
(a)
X( uj-
- 2w
- 2* + wo
cjq)
2i
2 + cjo
(b)
Figure 4 3 5
form.
Sec. 4.3
301
th e n
+ cuo) + X(w c^o)]
x ( n ) cos coqt i
(4.3.53)
cos won =
2
(a)
(b)
2
(c)
Figure 4.36
302
Parsevals theorem.
Chap. 4
If
jri(n)
an d
X 2 (a>)
X2 (n)
th en
oc
/ ' ,7
xi(n)jL*(n) = - /
X\((i>)X*
(4.3.54)
2jr J - *
h i
T ,
X](n)e'
X^i^dto
x
=
22
n= -3 c
^
( w ) e ~ Jujnda> =
*' 2n-
22
n ~ oc
yx
k ( )| 2 = r
/f
2 TT J 2,
(4.3.55)
\X (a > )\2dw
i
\x ( n )\2 =
2jt
J2n\X(a))\ 2d w = 2it
cn
Ss x (w)da>
(4.3.56)
If
x\ ( n) < Xi(cu)
an d
x 2 (n) < X 2 (co)
then
f
i
x j i n ) = x \ { n ) x 2 {n) * X j ( w) =
r
/ X] ( k ) X 2 (a) - k ) d k
J_n
(4.3.57)
Sec. 4.3
303
T h u s, w e h av e
CC
X3(oj) =
CC
x 3(n)e Jwn =
X\(k)
2 2 x ' ( n )x 2 (n )e
k)d k
If
x( n) X(a>)
then
f
nx(n)
. ii X( ( o)
da)
(4.3.58)
304
Chap. 4
doj
du>
7 2 n x ( n ) e Ju
TABLE 4.5
S IG N ALS
Property
Notation
Linearity
Time shifting
Time reversal
Convolution
C orrelation
W iener-Khm tchine
theorem
Frequency shifting
M odulation
Time Domain
r (/)
A'(co)
X](w)
A'iUu)
a\X](a)) + 02 X 2 (01)
e_ ""l X()
X ( a>)
Xi(u>)X;(oj)
5,,.,, iw) = X, ( w)X2(-to)
- A j (ul>)X ,(iu)
[if X2 (h) is real]
-S.t.r (w)
eja,0"x(n)
x(n) cosa>nr
X( w o^j)
\ X ( w + tut,) + i X ( w - wn)
,v()
A](ii)
x2(n)
a\X] (n) +
x(rt ~ k)
x(~n)
x \ { n ) * x 2 (n)
r llt,(/) = ^, (/) * j z( - / )
Multiplication
D ifferentiation in the
frequency domain
Conjugation
Frequency Domain
1 f
I X |(/.)X (w X)dk
2jr
d X (u)
du>
J-n
nx(n)
x*{n)
X ( - w)
X\ ( w) X*(io)doj
Sec. 4.4
TABLE 4.6
305
SIGNALS
306
Chap. 4
yin)-
ft(k)x(n-k)
(4.4.1)
OC
In th is in p u t- o u tp u t re la tio n sh ip , th e sy stem is c h a ra c te riz e d in th e tim e dom ain
by its u n it sam p le re sp o n s e {h ( n ). - o c < n < oo}.
T o d ev e lo p a fre q u e n c y -d o m a in c h a ra c te riz a tio n o f th e sy stem , let us excite
th e sy stem w ith th e co m p lex e x p o n e n tia l
00 < n < cc
jr(n) = A e Jam
(4.4.2)
22
h ( k ) [ A e Jb,in- k}]
k~ ~ X OC
= A
(4.4.3)
2 2 h ( k ) e ~ Juk
00
H(w)=
22
h ( k ) e ~ ja>k
(4.4.4)
|/i(rc)| <
00
n =-oc
(4.4.5)
Sec. 4.4
307
oo < n < oc
Solution First we evaluate the Fourier transform of the impulse response hin), and
then we use (4.4.5) to determ ine v(n). From Example 4.2.3 we recall that
(4.4.7 >
(4.4.8)
oc < n < oc
oo < n < oc
then, at co = jr.
1
2
3
(4.4.9)
308
Chap. 4
an d th e o u tp u t o f th e sy stem is
v(n) = 5 A e jnn
00 < n < 00
(4.4.10)
(4.4.11)
h( k) =
H( t o) elwkdco
(4.4.12)
F o r a lin ear tim e -in v a ria n t system w ith a re a l-v a lu e d im p u lse resp o n se, the
m ag n itu d e an d p h a s e fu n ctio n s possess sy m m etry p ro p e rtie s w h ich are d eveloped
as follow s. F ro m th e d efin itio n o f H(co). w e have
H(co) =
h( k)e'
52
ju / k
h(k) coscok j 5 2
kDc
h (jt)s in w
(4 4 13)
k=oc
= H R{io) -f j H 1 (to)
= y j H l i t o ) + H f ( c o ) e J tan- 1["/<")/"*<-)]
Hn(co) =
52
h ( k ) c os c ok
(4.4.14)
(4.4.15)
(w ) = tan
--------H R(to)
Sec. 4.4
309
D eterm ine the m agnitude and phase of H(w) for the three-point moving average
(MA) system
y ( n ) = ^fjc(n + 1) + x( n ) + x( n - 1)]
and plot these two functions for 0 < a> < n.
Solution
Since
h{n) = [ i i i }
t
it follows that
H(co) =
1 +
1 ( 1
2cos<w)
Hence
i 11 + 2 cos a)
IW M I
' 0.
B ( w )
<
(4.4.16)
a> <
2 jt / 3
<
2?r/3
w
<
jt
Figure 4.37 illustrates the graphs of the m agnitude and phase of H(w). As indicated
previously, |W(w)| is an even function of frequency and C-)(a>) is an odd function of
3tt
4
Figure 4.37
310
Chap. 4
frequency. It is apparent from the frequency response characteristic H(u>) that this
moving average filter smooths the input data, as we would expect from the inputoutput equation.
T h e sy m m etry p ro p e rtie s satisfied by th e m a g n itu d e a n d p h a se fu n ctio n s of
H ( u >), an d th e fact th a t a sinusoid can be e x p re sse d as a su m o r d ifferen ce of
tw o co m p lex -co n ju g ate e x p o n e n tia l fu n ctio n s, im ply th at th e re sp o n s e o f a linear
tim e -in v a ria n t sy stem to a sin u so id is sim ilar in fo rm to th e re sp o n se w hen the
in p u t is a co m p lex e x p o n e n tia l. In d e e d , if th e in p u t is
Jfi (n) Ae-' w'
th e o u tp u t is
vi() = A \ H( o j ) \ e j<rnw' eilM'
O n th e o th e r h a n d , if th e in p u t is
j::( )
th e re sp o n se o f th e system is
y : ( / j) =
A\H{~
(4 4 1 8 )
Sec. 4.4
311
oc < n < oc
Solution
The first term in the input signal is a fixed signal com ponent corresponding to w = 0.
Thus
H( 0) =
The second term in
response of the system is
=2
tt,
At this frequency
o c < n < oc
Example 4.4.4
A linear tim e-invariant system is described by the following difference equation:
y(n) = ay(n 1) + bx(n)
0 < a < 1
(a) D eterm ine the magnitude and phase of the frequency response H(w) of the
system,
(b ) Choose the param eter b so that the maximum value of \H{u>)\ is unity, and
312
Chap. 4
(c) D eterm ine the output of the system to the input signal
x (n )
Solution
+ 12 sin
2 0 cos
(^ z n
+ ^
h(n) = ba"u(n)
Since |a| < 1. the system is BIBO stable and hence H(co) exists,
(a) The frequency response is
oc
H (w) =
22, h ^
e ~iam
b
1 ae~JW
Since
= y/\ + a2 2a cos co
and
4 (1 - ae J) = tan
osinct)
1 a cos co
T herefore,
\b\
\H(co)\ =
V l 4- a2 2a cos 1u
^H(co) = &(co) = 4-b - tan 1
a sin co
1 a cos (
(b) Since the param eter a is positive, the denom inator of \H(w)\ attains a minimum
at w = 0. Therefore, |//(a>)| attains its maximum value at a> = 0. A t this
frequency we have
1*1
|ff(0)| = r U - = ' l
1 a
which implies that b = (1 a). We choose b = 1 a, so that
l o
|W M I -
J\ + a 2 2a cos
and
&(w) = tan"
asinoj
1 a cos co
The frequency response plots for |tf(co)| and 0(o>) are illustrated in
Fig. 4.38. W e observe that this system attenuates high frequency signals.
Sec. 4.4
313
Figure 4.38
Magnitude and
phase responses for the system in
Example 4.4.4 with a =
(c) The input signal consists of components of frequencies to = 0. tt/2, and n. For
co = 0. |//(0)| = 1 and 0 (0) = 0. For to = jr/2,
1 a
(-)l =
_________
V2 / 1
y/\ -f a 2
0.1
-
______
= 0.074
-s/1.81
-- - tan-1 a = - 4 2
For co = tt,
1 -a
0.1
\H(n)\ = = = 0.053
l+ o
1.9
0(7r) = 0
Therefore, the output of the system is
y(n ) = 5|ff(0)| + 1 2 | / / ( | ) | s i i i | j + e ( ! ) ]
2 0 |/ / ( jt ) |
= 5 + 0.888sin
cos
^ 7 rn + + 0 ( 7 r ) j
oc < n < oc
314
Chap. 4
x ( n ) = 5 2 A, cos(co,n 4 4>i)
oc < < oc
1=1
w h ere (A, | an d {<,} a re th e am p litu d e s a n d p h ases o f th e c o rre sp o n d in g sinusoidal
c o m p o n e n ts, th e n th e re sp o n s e of th e sy stem is sim ply
L
(4.4.19)
1= 1
(4.4.20)
*=0
w h ere y ( 1) is th e in itial co n d itio n .
n> 0
(4.4.21)
Sec. 4.4
315
n> 0
(4.4.22)
= a
v ( 1) + A
k=0
1 _ gn+le ~juiUi +\)
= o "+1v ( - l ) + A ----- --------------------e jmn
1 -ae-J
A/jn^
(4.4.23)
n > 0
A
= an+' v ( - l ) ---------- :
---eJua + ------ - e ia*
1 a e ~ JW
1 ~ a e JW
n>0
A
i
hm v() = ------------ e1
l-ae-J*
(4.4.24)
AH(a))eJwn
316
Chap. 4
jr(n) = 5 2 c ^ j27rkn/N
k=0
k = 0, 1........ N - 1
(4.4.26)
ckej27rkn/N
k=
0 , 1 ............ N
is
v* ( n ) = t \ H
k^j
fc = 0. 1.........A ' - l
(4.4.27)
w h ere
H
/ Ink \
(
J = H ( w ) L = 2, i7A-
k = 0.
........ A ' - l
/ ?t k \
gjlxknlf*
oc < 7; < OC
(4.4.28)
* = 0 , 1 .........A ' - l
(4.4.29)
(4.4.30)
Sec. 4.4
317
If w e e x p re ss K(cu),
an d X(o>) in p o la r fo rm , th e m a g n itu d e a n d p h ase
o f th e o u tp u t signal can b e ex p re sse d as
(4.4.31)
|y M ! = I / / M I I X M 1
4-Y (o>)
(4.4.32)
+ 4 - H ( co)
w h ere |//(a> )| a n d
a re th e m a g n itu d e an d p h ase re sp o n s e s o f th e system .
B y its v ery n a tu r e , a fin ite-en erg y a p e rio d ic signal c o n ta in s a c o n tin u u m of
fre q u e n c y c o m p o n e n ts . T h e lin e a r tim e -in v a ria n t system , th ro u g h its fre q u e n c y
re sp o n s e fu n c tio n , a tte n u a te s so m e fre q u e n c y c o m p o n e n ts of th e in p u t signal an d
am p lifies o th e r fre q u e n c y co m p o n e n ts. T h u s th e system acts as a filter to th e in p u t
signal. O b s e rv a tio n o f th e g ra p h o f \H(to)\ show s w hich fre q u e n c y c o m p o n e n ts
a re am p lified a n d w h ich a re a tte n u a te d . O n th e o th e r h a n d , th e angle o f H(a>)
d e te rm in e s th e p h a s e sh ift im p a rte d in th e c o n tin u u m o f fre q u e n c y c o m p o n e n ts of
th e in p u t signal as a fu n c tio n o f freq u e n cy . If th e in p u t signal s p e c tru m is ch an g ed
by th e sy stem in an u n d e s ira b le way, we say th a t th e system h a s cau sed mag ni t ude
a n d p h a s e distortion.
W e also o b se rv e th a t the o ut put o f a linear ti me-i nvariant sy s t em c annot c o n
tain f r e q u e n c y c o m p o n e n t s that are n o t cont ai ned in the input signal. It tak es e ith e r
a lin e a r tim e* v aria n t sy stem o r a n o n lin e a r system to c re a te fre q u e n c y c o m p o n e n ts
th a t a re n o t n ecessa rily c o n ta in e d in th e in p u t signal.
F ig u re 4.39 illu stra te s th e tim e-d o m ain an d fre q u e n c y -d o m a in relatio n sh ip s
th a t can b e u se d in th e an aly sis o f B IB O -s ta b le L T I system s. W e o b se rv e th a t
in tim e -d o m a in an aly sis, w e d eal w ith th e co n v o lu tio n o f th e in p u t signal w ith
th e im p u lse re sp o n s e o f th e system to o b ta in th e o u tp u t s e q u e n c e o f th e system .
O n th e o th e r h a n d , in fre q u e n c y -d o m a in analysis, w e deal w ith th e in p u t signal
sp e c tru m X(a)) a n d th e fre q u e n c y re sp o n s e H(co) o f th e sy stem , w hich a re re la te d
th ro u g h m u ltip lic a tio n , to yield th e sp e c tru m o f th e signal a t th e o u tp u t o f th e
system .
W e c a n u se th e re la tio n in (4.4.30) to d e te rm in e th e sp e c tru m Y( u>) o f th e
o u tp u t signal. T h e n th e o u tp u t se q u e n c e {v()} can b e d e te rm in e d fro m th e in v erse
F o u rie r tra n sfo rm
(4.4.33)
H o w e v e r, th is m e th o d is se ld o m used. In ste a d , th e z -tra n s fo rm in tro d u c e d in
C h a p te r 3 is a s im p le r m e th o d fo r solving th e p ro b le m o f d e te rm in in g th e o u tp u t
se q u e n c e {y(n)}.
X(n)
X( w)
Input
Linear
time-invariant
system
hin), H(a>)
Output
v(n) = h(n)+x(n)
KM = ma>)X(a>)
F,gre 4 3 9
frequency-domain inpul-output
relationships in LTI systems.
318
Chap. 4
(cu)da>
(4.4.35)
r
27r
J-y,
H ( co ) |2 S j x ( co) d co
Example 4.4.5
A linear time-invariant system is characterized by its impulse response
h( n ) = (y)" u (n )
Determ ine the spectrum and the energy density spectrum of the output signal when
the system is excited by the signal
*() = ( j )"()
Solution
1
1 - \e-^
Similarly, the input sequence U(n)) has a Fourier transform
1
X(w) =
1 - e ~ JUI
1
(1 -
1-
1
( j - coso))(j| - 1 cosa>)
Sec. 4.4
319
(4.4.37)
M
(4.4.38)
]~~[U - pk? /<")
w h e re th e (fli) a n d {>*} a re real, b u t {ct } and {pk} m ay be c o m p lcx -v alu cd .
It is so m e tim e s d e s ira b le to ex p ress th e m a g n itu d e s q u a re d o f H(a>) in term s
o f H( z ) . F irst, w e n o te th a t
|f f( a O r = H{ w) H*( u>)
F o r th e ra tio n a l sy stem fu n ctio n given by (4.4.38). we have
M
ft
(4.4.39)
320
Chap. 4
an d
(4.4.41)
\rhh(m)}.
N - |J i
akak+i
Q =
N < I < N
(4.4.42)
t=o
M - \t\
d, = 2 2 bkbk+i
~ M < / <M
(4.4.43)
Jk=0
Since th e system p a ra m e te rs (at) a n d {*} a re re a l valu ed , it follow s th a t c, c_/
an d di = d-i . B y using th is sy m m etry p ro p e rty , \ H( u >)\2 m ay be ex p ressed as
do + 2 2^2 dk cos kco
\H(co )\2 = ----------^ -------------(4.4.44)
ri
co 4- 2 ^ ' c'jt cos k.u)
i =1
F inally, w e n o te th a t c o s k w can be e x p re ss e d as a p o ly n o m ia l fu n ctio n of
cosoj. T h a t is,
t
cos kco = ^ / U c o s a , ) "
(4.4.45)
m=0
w h ere [j3m] a re th e coefficients in th e ex p an sio n . C o n s e q u e n tly , th e n u m e ra to r
an d d e n o m in a to r o f \H(u ))\2 can b e v iew ed as p o ly n o m ial fu n c tio n s o f coso;. T he
fo llow ing e x am p le illu stra te s th e fo reg o in g re la tio n sh ip s.
Example 4.4.6
Determ ine
Solution
:~ l
H(Z) ~ 1 4 0 . 1 - - 0 . 2 : - 2
and its R O C is |z| > 0.5. Hence H{ od) exists. Now
1 + z
1+ z
1 + 0 .1 Z '1 - 0 .2 z - 2
1 4- O.lz - 0.2z2
2 4- z + z 1
1.05 + 0.08(z 4- z_1) - 0.2(z~2 + z-2)
Sec. 4.4
321
H(co) =
a - z t e - i wk )
--------------------
(4.4.46)
f ] ( 1 - p ke->*)
k=1
or, e q u iv alen tly , as
M
H M = b0eJU^ - M) ------------------]"~[(eJ - p k)
(4.4.47)
322
Chap. 4
(4.4.48)
(4.4.49)
an d
w h ere
V*(w) s \eJW - z*|,
(4.4.50)
= %.(eJW - p k)
(4.4.51)
an d
|fr0l------
\H(co)\ =
(4.4.52)
2^ H
(co)
4-bo
co(N -
) +
0 i (co)
0T(dti)
&m(oj)
(4.4.53)
AL = ej* - p k
(4.4.54)
BL = e JW - z k
(4.4.55)
an d
Sec. 4.4
323
ImU)
(a)
im(r)
A L = eJ<u - p k = Uk {co)eJ* kM
(4.4.56)
BL = eJ* Zk = Vk (aj)ejStUu)
(4.4.57)
324
Chap. 4
Im(c)
Pt = e>^
Zt =
mz)
Sec. 4.4
S o lu tio n
H (w) =
325
Hence the
el- - 0.8
1
\e-lw - 0.8|
Vl-64 1.6cose
sin oj
cos oj - 0.8
The magnitude and phase responses are illustrated in Fig. 4.42. Note that the peak
of the m agnitude response occurs at a s = 0. the point on the unit circle closest to the
pole located at 0.8.
If th e m a g n itu d e re sp o n se in (4.4.52) is ex p ressed in d ecib els,
M
\
\H(co)\lllt = 2 0 lo g ,(l |/j()| + 2 0 5 2 lg.jci v/a M - 2 o 5 2 logui
A=1
i-l
(4.4.58)
(4.4.59)
ryx( m ) = h( m) * rxx(m)
(4.4.60)
(4.4.62)
H(os)Sxx(oj)
(4.4.63)
= H(o>)\X(o>)\2
326
- T
_ t
2
I
2
Chap. 4
w h ere Syx(u>) is th e cro ss-en e rg y d en sity sp e c tru m o f [y(n)} a n d (jc(/7)}. Sim ilarly,
ev alu atin g Svv(z) o n th e u n it circle yields th e en erg y d e n sity s p e c tru m o f th e o u tp u t
signal as
S v v M = | / / ( w ) |2S M
(4.4.64)
Syy(co)ejumdco
(4.4.65)
Sec. 4.4
327
~jT
i r
= I \ H(to)\' S xx(cv)dcv
J-*
(4.4.66)
(4.4.67)
(4.4.68)
h(n) r yxim)
(4.4.69)
E\
o r . e q u iv a le n tly .
v(n) =
5 2 h ( k ) x ( n k)
(4.4.70)
Jt = - oc
328
Chap. 4
T h e ex p e c te d v alu e o f th e o u tp u t y(n) is
OC
22
m v s= [y (n )] = E[
h(k)x{rt fc)]
k ~ rx.
oc
22
A (* ) 0 (n - * ) ]
(4.4.71)
A=^oc
cc
22
my = mx
h( k)
k oc
H{u>)=
22
* (*)*"-'*
(4.4.72)
k = - oc
we have
OC
22 h (*)
H ( 0) =
(4.4.73)
A DC
2 2 h( k)x*(n ~ k) Y 2
_kOQ
OC
22
+ m - j)
OC
(4.4.75)
V .
= C C _/ = OC
OC
cc
22 Y2 h(k'>hU)Yxx(k - j + m)
k= co
cc
Yyy(m)
= <72
22
h{k) h{k + m)
(4.4.77)
t= -o c
U n d e r th is co n d itio n th e o u tp u t p ro cess h a s th e a v e ra g e p o w e r
MO) = ^
h ^ n) =
n=-e
(4-4.78)
J - 1/2
Sec. 4.4
329
22
/vv
h ( k ) h ( l ) Y, A k - I + m)
k ^ o o i =dc
(4.4.79)
h{k)h(l )
Yxx(k I + m) e
k = CC I = DC
OC
= r r, ( / )
2 2 h{k) eJwk
h { l ) e - ]wl
^k= - c c
(4.4.80)
h( t ) e
- J-C
f
- j 2n Fi
dt
(4.4.81)
[ v (n )-**( wz)] = E
h( k)x*{n m ) x ( n k)
= OC
y VJ(m) =
2 2 h( k) E[ x * ( n m ) x ( n k)]
(4.4.82)
= CC
OC
22
h ( k ) Y x x ( m - k)
r(w ) = ff(<u)r(<u)
(4.4.83)
= a x2 H { a > )
(4.4.84)
330
Chap. 4
Sec. 4.5
331
Lowpass
IHu)\
I
Hiphpa*
\HUo)I
Bandpass
-n
a>0
ai]
cu, iii(|Wi
t
Bandstop
~o>
All-pass
332
Chap. 4
JWnv'
< co<c^
o th erw ise
(J,
(4_5
- CX(co)e }tL""
(4.5.2)
By app ly in g th e scaling a n d tim e-sh iftin g p ro p e rtie s o f the F o u rie r tran sfo rm , we
o b ta in th e tim e -d o m a in o u tp u t
v(ri) = Cx ( n - h 0)
(4.5.3)
(4.5.4)
d&(a>)
( o j) =
--------- ----------
aco
.
(4.5.5)
sin coc7Tn
hip(n) -----------nn
00 < /7 < 00
(4.5.6)
W e n o te th a t th is filter is n o t causal an d it is n o t a b so lu te ly su m m a b le an d th e re fo re
it is also u n sta b le . C o n se q u e n tly , this id eal filter is physically u n re a liz a b le . N ev
e rth e le ss, its fre q u e n c y re sp o n se c h a racteristics can be a p p ro x im a te d v ery closely
by p ractical, ph y sically re a liz a b le filters, as will be d e m o n s tra te d in C h a p te r 8.
In th e fo llo w in g d iscu ssio n , w e tr e a t th e design o f so m e sim p le d igital filters
by th e p la c e m e n t o f p o les a n d zero s in th e z-p lan e. W e h a v e a lre a d y d escrib ed
h o w th e lo catio n o f p o les a n d zero s affects th e fre q u e n c y re s p o n s e characteristics
Sec. 4.5
333
(4.5.7)
(4.5.8)
w h ere
is a fre q u e n c y in th e p a ssb a n d o f the filter. U sually, N is se le c te d to
eq u al o r ex cee d M , so th a t th e filter h as m o re n o n triv ial p o le s th a n zeros.
In th e n ex t se ctio n , we illu strate th e m e th o d o f p o le - z e r o p la c e m e n t in the
d esig n o f so m e sim p le low pass. highpass. an d b an d p a ss filters, d igital re so n a to rs,
a n d co m b filters. T h e d esign p ro c e d u re is facilita ted w h en c a rrie d o u t in te ra c tiv e ly
on a d ig ital c o m p u te r w ith a g raphics term in a l.
334
Chap. 4
Highpass
Figure 4.44
= 1- ~ ~ ~ ~l~~' .
2 1 az~
(4.5.10)
(4.5.11)
Example 4.5.1
A two-pole lowpass filter has the system function
W(z) =
b0
(1 -
pz
-')2
Sec. 4.5
335
D eterm ine the values of h{>and p such that the frequency response H(w) satisfies the
conditions
H(0) = 1
and
I / K \ I2
1
r W I =2
Solution
A t o) = 0 we have
H( 0) =
(1 - p )2
Hence
bo = (1 - p Y
= 1
336
Chap. 4
20 log|0]HM|
with a = 0.9.
At w = tt/4.
(1 ) =
(1 ~ P?
v4 /
(1 pe~i*/4)2
(1 ~ P )2
(1 - p cos(;r/4) + j p sin (tt/4))2
(1 - P ) 2
(1 - pj s / 2 + jp/ ^/ 2)2
Hence
(1 - p t
[(1 - p / - j2 ) 2 + p 212]2
1
2
Sec. 4.5
337
or, equivalently.
V ^d - p y = 1 + p1 - y'lp
The value of p = 0.32 satisfies this equation. Consequently, the system function for
the desired filter is
0.46
H( z)
(1 - 0.32c 1)=
T h e sam e p rin cip le s can be a p p lied fo r th e desig n of b a n d p a s s filters. B asi
cally, th e b a n d p a s s filter sh o u ld c o n tain o n e o r m o re p airs o f co m p lex -co n ju g ate
p o les n e a r th e u n it circle, in the vicinity of th e freq u e n cy b a n d th a t c o n stitu te s the
p assb a n d o f th e filter. T h e follow ing ex am p le serves to illu strate th e basic ideas.
E x a m p le 4.5.2
Design a two-pole bandpass filler that has the center of its passband at w = n72.
zero in its frequency response characteristic at w = 0 and at = n . and its magnitude
response is 1 /V 2 at w = 4w /9 .
S o lu tio n
and zeros at
/z o = a
- 1
= c-
The gain factor is determ ined by evaluating the frequency response H(w) of the filler
at u> = jr/2. Thus we have
" ( ) - cr b - >
G
1 - r2
(1 - r1)2
9 /|
1 4-
2 - 2 c o s ( 8 7 t/9 )
r4 + 2r2 c o s ( 8 jt/9 )
1
2
or. equivalently,
1.94(1
The value of r2 =
desired filter is
0.7
- r 1)1 =
1 .8 8 r2 + r 4
"<:l = a,5IT5&
Its frequency response is illustrated in Fig.
4.47.
338
_ T
x
~2
r
2
Chap. 4
Sec. 4.5
339
ing th e fre q u e n c y tra n sla tio n p ro p e rty o f th e F o u rie r tra n sfo rm , it is p o ssib le to
co n v ert th e p ro to ty p e filter to e ith e r a b a n d p a ss or a h ig h p ass filter. F re q u en cy
tra n sfo rm a tio n s fo r c o n v ertin g a p ro to ty p e low pass filter in to a filter of a n o th e r
ty p e are d e sc rib e d in d etail in S ection 8.3. In th is sectio n w e p re se n t a sim plefre q u e n c y tra n sfo rm a tio n fo r co n v e rtin g a low pass filter in to a h ig h p ass filter, and
vice v ersa.
If /i|p(n) d e n o te s th e im p u lse resp o n se of a low pass filter w ith freq u e n cy
re sp o n se H\r (co). a h ighpass filter can be o b ta in e d by tra n sla tin g H]P(a>) by t t rad ian s
(i.e., rep lacin g co by co n ) . T h u s
^ h p ( ^ )
H\p(co
TT )
(4.5.12)
(4.5.13)
(4.5.14)
its fre q u e n c y re sp o n s e is
M
k0
(4.5.16)
N ow , if w e re p la c e co by co n , in (4.5.16). th en
M
tfhpM =
--------------
(4.5.17)
1 + ( - 1 )kake ~ iak
w hich c o rre sp o n d s to th e d iffe re n c e e q u a tio n
( 4 . 5 . 18 )
340
Chap. 4
Example 4.5.3
Convert the lowpass filter described by the difference equation
v(n) = 0.9v(n 1) + 0 .1 x 0 )
into a highpass filter.
Solution
- 1+ Q9e_ju
The reader may verify that H^((o) is indeed highpass.
0 < r < 1
(4.5.19)
H ( z ) = ------- ----------(4.5.20)
1 (2 r coscwo);-1 + r 2z ~2
S ince \H(co)\ h as its p e a k at o r n e a r co = coo, w e select th e gain bo so th a t
|W(too)I = 1- F ro m (4.5.19) w e o b ta in
b0
H{(Oo) =
_______________
(1 r ) ( l r e - -'2'00)
an d h e n c e
bo
(4 5 21)
Sec. 4.5
341
2
(b)
tt
_ n
r
2
(c)
Tt
342
Chap. 4
(4.5.22)
(4.5.23)
coswo^j
(4.5.25)
(4.5.26)
= G
(1 - z - ' X l + z " 1)
(1 re>aK,z ~ l )( 1 r e - -'a*2 -1 )
(4.5.27)
1 -z -2
1 (2r coscdo)z-1 + r 2z ~2
an d a fre q u e n c y re sp o n s e c h a ra c te ristic
H{ w) = b [ \ _
(*-->][! _ r e - n o +*>)J
(4.5.28)
U\(to)U2(to)
( 4 -5 2 9 )
Sec. 4.5
343
to=
344
Chap. 4
z ~)
Ph2 = r e i m
T h e effect o f th e p o les is to in tro d u c e a re so n a n c e in th e vicinity o f th e null and
th u s to red u ce th e b a n d w id th o f th e n o tch . T h e sy stem fu n ctio n fo r th e resulting
filter is
H
(c) =
1 - 2 cos wo; 1 + z~
bo1 - 2 r cosojoZ-1 + r 2z ~2
(4.5.31)
Sec. 4.5
345
346
Chap. 4
Figure 4.52
Frequency response
characteristics of two notch filters with
poles at ( I ) r = 0,85 and 12) r (1.95:
r " ")/(1 -
v() =
(4.5.32
+ * Jt=0
1
[ l - c - * ^ 11]
M + 1
( 1 - - - )
(4.5.33)
an d its freq u e n cy re sp o n se is
S]na)( j d )
H(a>) =
(4.5.34)
M + 1
sin(w /2)
(4.5.35)
Sec. 4.5
347
(4.5.37)
sin[a>L(M + l ) /2 ]
M + 1
sin(coL/2)
(4.5.40)
348
Chap. 4
H (u > )
(a)
Hl (co)
(b)
Figure 4.54
Figure 4.55
(4.5.41)
Sec. 4.5
349
Figure 4.57 (a) Spectrum of unfiltered electron content data; (b) spectrum of out
put of solar filter; (c) spectrum of output of lunar filter. [From paper by Bernhardt
et al. (1976). Reprinted with permission of the American Geophysical Union.]
350
Chap. 4
the p ow er spectral density of the output o f the com b filter that isolates the solar
com ponents. A com b filter that rejects the solar com p onents and passes the lunar
com ponents can be d esigned in a sim ilar m anner. Figure 4.57(c) illustrates the
pow er spectral density at the output o f such a lunar filter.
0<o><7r
(4.5.42)
The sim plest exam ple o f an all-pass filter is a pure delay system with system func
tion
H(z) = z~k
This system passes all signals w ithout m odification except for a d elay of k sam ples.
This is a trivial all-pass system that has a linear phase response characteristic.
A m ore interesting all-pass filter is described by the system function
a x + a /v '-i" ^ 1 + + a \ Z
n(z) = -
1 + 0\Z
,.
' + + Qn Z
(4.5.43)
.- N + k
----- IT
a = 1
where all the filter coefficients \ak ) are real. If w e define the polyn om ial /\(~) as
A (;) = Y ^ a kz k
k=U
an 1
(4.5.44)
A(z)
Since
\H(a>)\2 =
= 1
n
Pk
l \ a - A z - x i - P i z ~ x)
(4 5 45)
(4 5 '
where there are N R real p o les and zeros and N c com p lex-con ju gate pairs o f poles
and zeros. For causal and stable system s w e require that - 1 < a* < 1 and |/S*| < 1.
Sec. 4.5
351
(a)
10
20 tog I H M I
0
-10
-20
-3 0
0(u)
-4 0
352
Chap. 4
E xp ression s for the phase response and group delay o f all-pass system s can
easily be obtained using the m ethod described in Section 4.4.6. For a single p o lesingle zero all-pass system w e have
Manioc)
Ju
H en ce
r sin(a) 6}
C-)ap(w) = cd 2 tan'
r COS(w - 6 )
and
di~).Ap(ct>)
1 - r2
ciaj
1 + i - 2r cosiw 0)
(4.5.46)
W e n ote that for a causal and stable system , r < 1 and hence rt, (w) > 0. Since the
group delay o f a higher-order p o le-zero system consists o f a sum o f positive terms
as in (4.5.46), the group delay will always be positive.
A ll-pass filters find application as phase equalizers. W hen placed in cascade
with a system that has an undesired phase response, a phase eq u alizer is designed
to com pensate for the poor phase characteristics of the system and therefore to
p roduce an overall linear-phase response.
(4.5.47)
and
a2 = r 2
(4.5.48)
(4.5.49)
If the p oles are placed on the unit circle (r = 1) and bo is set to A sincuo, then
h(n) = A s i n ( n + l)u>ou(n)
(4.5.50)
Thus the im pulse response o f the second-order system with com plex-conjugate
poles on the unit circle is a sinusoid and the system is called a digital sinusoidal
oscillator or a digital si nusoi dal generator. A digital sinusoidal gen erator is a basic
com ponent o f a digital frequency synthesizer.
Sec. 4.5
353
(4.5.51)
w here the param eters are a\ = 2cosa>o and bo = Asincwo, and the initial con d i
tions are y ( 1) = v (2) = 0. By iterating the differen ce eq u ation in (4.5.51), we
obtain
y (0) = ^ sin w o
y ( l ) = 2cos<woy(0) - 2 A sin too cos tt>o = Asin2tL>o
y(2) 2costL>oy(l) - y(0)
= 2 A cos ao sin 2wo A sin
- A {4 cos2 coq 1) sin
loq
wq
(4.5.52)
with initial con d ition s y ( - l ) 0 and >(2) = A sin two, is exactly the sam e as
the resp onse o f (4.5.51) to an im pulse excitation. In fact, the d ifferen ce equation
in (4.5.52) can b e ob tain ed directly from the trigonom etric identity
a +8
a - B
(4.5.53)
354
Chap. 4
ft = u>o, and
yr (n) = COsnajoK(rc)
(4.5.54)
y , (n ) = sinna>t)U(fj)
(4.5.55)
(4.5.56)
(4.5.57)
_vt(n) _
yt.(n - 1)
(4.5.58)
yAn ~
Sec. 4.6
355
356
Chap. 4
(4.6.1)
as illustrated in Fig. 4.62. For exam ple, the system s defined by the input-output
relations y{n) = ax ( n ) and y( n) = x ( n 5) are invertible, w h ereas the input-output
relations y( n) = x 2(n) and y{n) = 0 represent noninvertible system s.
A s indicated above, inverse system s are im portant in m any practical appli
cations. including geop h ysics and digital com m unications. Let us begin by con
sidering the problem of determ ining the inverse o f a given system . W e limit our
discussion to the class o f linear tim e-invariant discrete-tim e system s.
N ow . suppose that the linear tim e-invariant system T has an im pulse response
h(n) and let h t (n) d en ote the im pulse response o f the inverse system T _ l . Then
(4.6.1) is equivalent to the con volu tion equation
U(n) = h / ( n) * h( n) * x ( n ) = x( n)
(4.6.2)
h(n) * h/ ( n) = S(n)
(4.6.3)
The convolution equation in (4.6.3) can be used to solve for h/ ( n) for a given
h(n). H ow ever, the solution o f (4.6.3) in the tim e dom ain is usually difficult. A
sim pler approach is to transform (4.6.3) into the z-dom ain and so lv e for T _1. Thus
in the z-transform dom ain, (4.6.3) becom es
H{z )H, (z) = 1
and therefore the system function for the inverse system is
*,(:)=^
(4.6.4)
(4.6.5)
/1(c)
Identity system
v( n )
T
T -i
Direct
system
Inverse
system
n '(n ) = x(n)
Sec. 4.6
357
then
(4.6.6)
Thus the zeros o f H ( z ) b ecom e the p oles of the inverse system , and vice versa.
Furtherm ore, if H{ z ) is an F IR system , then Hi ( z) is an all-p ole system , or if H{z )
is an all-p ole system , then H s {z) is an F IR system .
Example 4.6.1
Determine the inverse of the system with impulse response
h(n) = UyuOO
Solution
1-
This system is both causal and stable. Since H(z) is an all-pole system, its inverse is
FIR and is given by the system function
h ,{ z)
= i - h-1
1)
Example 4.6.2
Determine the inverse of the system with impulse response
h(n) = <5(n) j<5(h 1)
Solution
Thus H/ ( z) has a zero at the origin and a pole at z = j- In this case there are two
possible regions of convergence and hence two possible inverse systems, as illustrated
in Fig. 4.63. If we take the ROC of Hi(z) as |j| > j, the inverse transform yields
which is the impulse response of a causal and stable system. On the other hand, if
the ROC is assumed to be |j| < | , the inverse system has an impulse response
358
Chap. 4
(b)
(4.6.7)
(4.6.8)
T he values o f hi {n) for n > 1 can be ob tain ed recursively from the equation
^
= ~
h(k)h/(n-k)
mo)
n21
( A -6
Sec. 4.6
359
T here are two problem s associated with (4.6.9). First, the m ethod d oes not
work if h(0) = 0. H ow ever, this problem can easily be rem ed ied by introducing
an appropriate delay in the right-hand side o f (4.6.7), that is, by replacing <50) by
S(n m) , where m = 1 if *(0) = 0 and /i( l) ^ 0, and so on. Second, the recursion
in (4.6.9) gives rise to rou n d -off errors which grow with n and, as a result, the
num erical accuracy o f h(n) d eteriorates for large n.
Example 4.6.3
D eterm ine the causal inverse of the FIR system with impulse response
h(n) = S(n) aS(n 1)
Solution
MO) = 1/MO) = 1
and
h/(n) = a M n _ 1 )
n 1
Consequently,
M l) = a .
M 2) = a 2..........
h,(n) =a"
(4.6.10)
Hj i z ) =
(4,6.11)
z ! ( |z + 1)
(4.6.12)
sin w
-j------------| + cos OJ
(4.6.13)
_i
sin to
------------2 + cos to
(4.6.14)
and
i((w) = to + tan
2 (cl>) = to + tan
The m agnitude characteristics for the tw o system s are identical becau se the zeros
o f Hi ( z ) and Hi ( z ) are reciprocals.
360
Chap. 4
fr|I co)
94a.)
i
(b)
The graphs o f 0 ] (co) and (~)2 (cv) are illustrated in Fig. 4.64. W e observe that
the phase characteristic 0i(cd ) for the first system begin s at zero phase at the fre
quency w = 0 and term inates at zero phase at the frequency cv 7t. H en ce the net
phase change, 0 i( ;r ) - 0i(O ) is zero. On the other hand, the p h ase characteristic
for the system with the zero outside the unit circle undergoes a n et phase change
0 ;(;r ) 2(0) = n radians. A s a con seq u en ce o f these different p h ase character
istics, w e call the first system a m i n i mu m - p h a s e s y s t e m and the secon d system is
called a m a x i mu m - p h a s e system.
Th ese definitions are easily exten d ed to an F IR system o f arbitrary length.
T o be specific, an F IR system o f length M + 1 has M zeros. Its frequency response
can be expressed as
H(co) = bQ(\ - z \ e ~ iw)( 1 - z 2e ~ n ( ! - z Me ~ J)
(4.6.15)
where {;,} d en ote the zeros and bo is an arbitrary constant. W h en all the zeros
are inside the unit circle, each term in the product o f (4.6.15), corresponding to
a real-valued zero, will undergo a net phase change o f zero b etw een a> = 0 and
(*) = n . A lso , each pair of com p lex- conjugate factors in H(a>) will undergo a net
phase change o f zero. T herefore,
^ H ( n ) - ^H(O) = 0
(4.6.16)
and h en ce the system is called a m inim um -phase system . O n the o th er hand, when
all the zeros are outside the unit circle, a real-valued zero will con trib ute a net
Sec. 4.6
361
phase change o f tt radians as the frequency varies from w = 0 to co it. and each
pair o f com p lex-con ju gate zeros will contribute a net phase change of 2 tt radians
over the sam e range o f ai. T herefore.
iL H ( jt )
- ^ H ( O ) = M tt
(4.6.17}
which is the largest possible phase change for an FIR system with M zeros. H ence
the svstem is called m axim um phase. It follow s from the discussion above that
4- Hmax{7T) > 4 tf m,n(jr)
(4.6.18)
If the FIR system with M zeros has som e o f its zeros inside the unit circlc
and the rem aining zeros ou tsid e the unit circle, it is called a mi x e d - p h a s e system
or a n o n m i n i m u m - p h a s e syst em.
Since the derivative o f the phase characteristic o f the system is a m easure
of the tim e d elay that signal frequency com p onents undergo in passing through
the system , a m inim um -phase characteristic im plies a m inim um delay function,
while a m axim um -phase characteristic im plies that the delay characteristic is also
m axim um .
N ow suppose that we have an FIR system with real coefficients. .Then the
m agnitude square value of its frequency response is
|t f ( w ) |: =
)|r^ ,-
(4.6.19)
1 - r
1 - 6 ;" 2
362
Chap. 4
Solution
1+
f r ' -
By factoring the system functions we find the zeros for the four systems
are
H]{z) * Ci.: = * { * minimum phase
H 2 (z )
(4.6.20)
A (c )
is called m i n i m u m p h a s e if all its poles and zeros are inside the unit circle. For a
stable and causal system [all roots of A (c) fall inside the unit circle] the system is
called m a x i m u m pha s e if all the zeros are outside the unit circle, and m i x e d phase
if som e, but not all. o f the zeros are ou tsid e the unit circle.
This discussion brings us to an im portant point that should be em phasized.
That is. a stable p o le-zero system that is m inim um phase has a stab le inverse which
is also minim um phase. The inverse system has the system function
= d(z)
(4 -6 -21)
D ecom p osition
of
n on m in im u m -p h ase
p o le -z e r o
sy stem s.
Any
(4.6.22)
w here
is a m inim um -phase system and / / ap(z) is an all-pass system . We
dem onstrate the validity o f this assertion for the class o f causal and stable systems
w-ith a rational system function H ( z ) = B ( z ) / A ( z ) . In general, if B(z) has one
or m ore roots ou tsid e the unit circle, w e factor B(z) in to the product B i( z ) # 2 (z)>
w here B i(z) has all its roots inside the unit circle and B 2(z) has all its roots outside
Sec. 4.6
363
has all its roots inside the unit circle. W e define the
B i i - J B j i z - 1)
Mz)
Biiz)
B 2(z - 1)
(4,6.23)
Since r r (u>) > 0 for 0 < to < n , it follow s that 1 ^( 0;) > rn(o;), 0 < a>< tt. From
(4.6.23) w e co n clu d e that am ong all p o le -z e r o system s having the sam e m agnitude
response, the m inim um -phase system has the sm allest group delay.
T he partial energy o f a
(4.6.24)
It can be show n that am ong all system s having the sam e m agnitude response and
the sam e total en ergy ( 0 0 ), the m inim um -phase system has the largest partial
energy [i.e., E min(n) > E( n) , where Emj(n) is the partial energy o f the m inim um phase system ].
(4-6.25)
h( k ) x ( n k)
=
k=oo
364
Chap, 4
an d h en ce
K(;)
HrJ = -
* (;)
(4.6.26)
X u ) and
are th e ^ -tra n sfo rm s of the av ailab le in p u t signal x(/;) a n d the
o b se rv e d o u tp u t signal yi n) , resp ectiv ely . T his a p p ro a c h is a p p r o p ria te only w hen
th e re are clo sed -fo rm ex p ressio n s fo r X ( z ) an d F (c).
Example 4.6.5
A causal system produces the output sequence
n=0
n= 1
otherwise
f 1.
yin) = |
.
I 0.
when excited by the input sequence
n= 0
(1 .
x(n) = i
H i'
I 0,
otherwise
H( z ) = ----- =
1 + 77,:"
1 - 17i-
-------:----- 7
+ i7>"~
1-r
(1 -
)(1 -
Since the system is causal, its ROC is |;| > i. The system is also stable since its poles
lie inside the unit circle.
The input-output difference equation for the system is
y i n ) = -jj;y(/i - 1 ) - ^ y i n - 2 ) + ,r() + y^.v(n - 1 )
Its impulse response is determined by performing a partial-fraction expansion of H(z)
and inverse transforming the result. This com putation yields
hin) = [4(i)" - 3({ )n]u(n)
W e observe that (4.6.26) d eterm in es the unknow n system uniquely if it is
known that the system is causal. H ow ever, the exam ple above is artificial, since
the system response {>()} is very likely to be infinite in duration. C onsequently,
this approach is usually im practical.
A s an alternative, we can deal directly with the tim e-dom ain expression given
by (4.6.25). If the system is causal, w e have
n
y( n) = ^ h{ k) x( n k)
n> 0
*=o
Sec. 4.6
365
and h ence
n-l
y { n )
Hn) =
(4.6.27)
y ~ ^ h ( k ) x ( n
k )
n
>
x(0)
This recursive solu tion requires that jr(0) ^ 0. H ow ever, we n ote again that w hen
(/i(n)) has infinite duration, this approach m ay not be practical unless w e truncate
the recursive solu tion at sam e stage [i.e., truncate {/z()}].
A n o th er m eth od for identifying an unknow n system is b ased on a crosscor
relation technique. R ecall that the in p ut-ou tp u t crosscorrelation function derived
in Section 2.6.5 is given as
oc
r y x ( r 77)
h ( k ) r ( X ( m
k )
h ( n )
r x ! ( m )
(4.6.28)
t=0
where r y x ( m ) is the crosscorrelation seq u en ce o f the input {x(^)J to the system
with the output {>()} o f the system , and r x x { m ) is the autocorrelation sequ en ce
o f the input signal. In the frequency dom ain, the corresponding relationship is
S vx((d)
J-!(io)S.fX (co)
H ( c o ) \X (u >)\2
H en ce
Svi(a>)
H ( w )
---------- =
SX i ( w )
5 Vj(w )
-
1 -
\ X ( a >)\2
(4.6.29)
T h ese relation s suggest that the im pulse response (/?(k)1 or the frequency re
sp on se o f an unknow n system can be determ ined (m easu red ) by crosscorrelating
the input seq u en ce {*()} with the output seq u en ce (y(n)}, and then solvin g the
d econ volu tion problem in (4.6.28) by m eans o f the recursive eq u ation in (4.6,27).
A ltern atively, w e cou ld sim ply com pute the Fourier transform o f (4.6.28) and d e
term ine the freq u en cy response given by (4.6.29). Furtherm ore, if w e select the
input seq u en ce (jc(n)} such that its autocorrelation seq u en ce { ^ ( n ) } , is a unit sam
ple seq u en ce, or eq u ivalen tly, that its spectrum is flat (con stan t) over the passband
o f H(a>), the valu es o f the im pulse resp onse {/?()} are sim ply equal to the values
o f the crosscorrelation seq u en ce {rVJ()}.
In general, the crosscorrelation m eth od described above is an effective and
practical m eth od for system identification. A n oth er practical approach based on
least-squares optim ization is described in C hapter 8.
(4.6.30)
366
Chap. 4
(4.6.31)
= C ,(c) + C>,U)
C onsequently, the com plex cepstrum o f the output sequence (y(n)} is expressed
as the sum o f the cepstrum o f |x(n )} and {/i(n)J, that is,
c y( n) = cx (n) + ch(n)
(4.6.32)
Thus w e observe that con volu tion of the tw o seq u en ces in the tim e dom ain corre
sponds to the sum m ation o f the cepstrum seq u en ces in the cepstral dom ain. The
system for perform ing these transform ations is called a h o m o r m o r p h i c sy s t em and
is illustrated in Fig. 4.65.
In som e applications, such as seism ic signal processing and speech signal
processing, the characteristics of the cepstral sequ en ces (c,(/j)} and {c>(n)} are suf
ficiently different so that they can be separated in the cepstral dom ain. Specifically,
suppose that {c* (/?)} has its main com p on en ts (m ain energy) in th e vicinity o f small
values o f n, w hereas |c r(n)} has its com p on en ts concentrated at large values of n.
W e m ay say that |c(n)} is lowpass" and {cx()l is highpass. W e can then sepa
rate {cy,(n)} from {c,(r;)) using appropriate low p ass and h igh pass w indow s, as
illustrated in Fig. 4.66. Thus
ch(n) = c v(rt)wir (rr)
(4.6.33)
(4.6.34)
and
z-Transform
logarithm
c j.)
;-iransform
Figure 4.65 Homomorphic system for obtaining the cepstrum (cv(n)} of the se
quence (y(n)l-
Sec. 4.7
367
w here
U ) p ( J l)
1.
0.
< N,
otherw ise
(4.6.35)
0,
ll < N\
\n\ >
(4.6.36)
UhpO) = 1.1
O nce w e have separated the cepstrum sequ en ces ( o ,( ) } and (c,-(n)} by w indow ing,
the seq u en ces {x(n)} and {/i(n)( are obtained b y p a ssin g (o ,( )| and (c.v(n)) through
the inverse hom om orphic system , shown in Fig. 4.67.
In practice, a digital com puter w ould be used to com p ute the cepstrum o f the
seq u en ce {v()}. to perform the w indow ing functions, and to im plem ent the inverse
h om om orphic system shown in Fig. 4.67. In place o f the --transform and inverse
z-transform . we w ould substitute a special form of the Fourier transform and its
inverse. T his special form , called the discrete Fourier transform, is described in
C hapter 5.
C,<M)
C,(.v)
.--Transform
XO
Com plex
exponential
W(c)
| .v(n)
Inverse
"-rnmt l^nT> (
ir
i /iijn
Figure 4.67 Inverse homomorphic system for recovering the sequences {.kii )| mid
|/j()) from the corresponding cepstru.
368
Chap. 4
o f the im pulse response o f the system . W e also observed that the frequency
response function d eterm ines the effect o f the system on any input signal. In fact,
by transform ing the input signal into the frequency dom ain, w e ob served that it is a
sim ple matter to determ ine the effect of the system on the signal and to determ ine
the system output. W hen view ed in the frequency dom ain, an LTI system performs
spectral shaping or spectral filtering on the input signal.
The design o f som e sim ple IIR filters was also considered in this chapter from
the view point o f p o le-zero placem ent. B y m eans o f this m eth od , we w ere able
to design sim ple digital resonators, notch filters, com b filters, ail-pass filters, and
digital sinusoidal generators. T h e design o f m ore com p lex IIR filters is treated in
detail in Chapter 8. which also includes several references. D igital sinusoidal gen
erators find use in frequency synthesis applications. A com p reh en sive treatm ent of
frequency synthesis tech n iqu es is given in the text edited by G orski-P op iel (1975).
Finally, w e characterized LTI system s as either m inim um -phase, maximumphase, or m ixed-phase, d ep en d ing on the p osition o f their p o les and zeros in the
frequency dom ain. U sing these basic characteristics of LTI system s, w e considered
practical problem s in inverse filtering, d econ volu tion , and system identification.
W e concluded with the description o f a d econ volu tion m eth od based on cepstral
analysis o f the output signal from a linear system .
A vast am ount o f technical literature exists on the topics o f inverse filter
ing. d econ volu tion , and system identification. In the context o f com m unications,
svstem identification, and inverse filtering as they relate to channel equalization
are treated in the book by Proakis (1995). D econ volu tion tech n iqu es are widely
used in seism ic signal processing. For reference, w e suggest the papers by W ood
and Treitel (1975), P eacock and T reitel (1969), and the b ook s by R obinson and
Treitel (1978, 1980). H om om orphic d econ volu tion and its ap p lication s to speech
processing is treated in the book by O p p en heim and Schafer (1989).
PROBLEMS
4.1 Consider the full-wave rectified sinusoid in Fig. P4.1.
(a ) Determine its spectrum X a(F).
(b) Compute the power of the signal.
Xa( ! )
Figure P4.1
Chap. 4
369
Problems
l r |h .
|r | < t
' 0.
elsewhere
(a) Determ ine and sketch its magnitude and phase spectra. |X (F)| and 2^ X a(F),
respectively.
( b) Create a periodic signal x,.(t) with fundam ental period Tr > 2r. so that ,v(/) =
.v,,(n for |f| < T;,/2. What are the Fourier coefficients ci for the signal x;,u)?
(c) Using the results in p an s (a) and (b). show that a = (1/X;,)X (k/Tr ).
4.4 Consider the following periodic signal:
(a) Sketch the signal vt/i) and its magnitude and phase spectra.
( b) Using the results in pari (a), verily Parseval's relation by computing the power
in the time and frequency domains.
4.5 Consider the signal
rr/i
nn
1
3nn
xin ) = 2 -f- 2 cos ------Hcos h c o s ----4
2
2
4
(a) Determ ine and sketch its power density spectrum.
( b) Evaluate the power of the signal.
4.6 Determ ine and sketch the magnitude and phase spectra of the following periodic
signals.
n(n - 2)
(a) ,v<(t)=4sin
3
In
. In
(b) ,v(n) = cos n + sin n
3
^
2n
. 2n
(c) x(n) = cos n sin n
(d) x( n)
= {..., - 2 . - 1 . 0 . 1 . 2 . - 2 . - 1 . 0 . 1.2.... )
t
( e) x i n ) = ( . . . . - 1 . 2 . 1. 2. - 1 . 0 . - 1 . 2 . 1 . 2 . . . . J
(f) x (n) = ( . . . . 0 , 0 . 1 . 1 . 0 . 0 . 0 . 1. 1 . 0 . 0 , . . . )
t
(g) x i n) = 1 . oc < n < oc
( h) x(n) = ( - 1 ) " . - o c < n < oc
4.7 D eterm ine the periodic signals * 0 ), with fundam ental period N = 8. if their Fourier
coefficients are given by:
kn
3kn
370
Chap. 4
kn
(b) c * = { Slny -
Q < k <6
k= 7
0,
(c) {c*} = { . . . . O . i . i . l . 2 . 1 . i , i . O .
t
4.8 Two DT signals. j*() and s{(n), are said to be orthogonal over an interval [N\, A^] if
k =t
Y2st ( n) s ?( n) = j 0 *'
k / I
ej2*kn/* =
' N,
0.
k = 0, jV, 2N,
otherwise
(b) Illustrate the validity of the relation in part (a) by plotting for every value of
2 -U )n .
0,
|| 5 4
elsewhere
(g) xin) = { - 2 . - 1 . 0. 1 . 2 )
t
\ n\ <M
^
.
U (2 A / + l - | n | ) .
(h) x(n) =
| 0.
. .
|n| > M
Sketch the magnitude and phase spectra for parts fa), (f), and (g).
4.10 D eterm ine the signals having the following Fourier transforms.
0,
0 < \a>| < <U()
(a) X(a>) = ,
I.
(n\ Yt \ - \
O* - &i/2 < M < O*) + to /2
W
1 0,
elsewhere
(d) The signal shown in Fig. P4.10.
4 .11 Consider the signal
x{n) = {1 , 0,- 1 ,2 .3 }
t
Chap. 4
371
Problems
Xitu)
3tt
jt
7r
3n
6 jt
7tt
tt
Figure P4.10
with Fourier transform Xtw) = X's (ct>) + j ( X t (a>)). D eterm ine and sketch the signal
y(n) with Fourier transform
Y(w) = X,(o>) + X R( ^) ei2,il
4.12 Determ ine the signal
8k
10
jc(h )
0
(a)
X(ai)
(b)
X(u>)
(c )
Figure P4.12
8rr
971
10
To
7T
372
Chap. 4
1,
0.
x (n) =
was shown to be
M
X (a>) = 1 + 2 2 2 cos am
f!=1
Show that the Fourier transform of
X|(n) =
1.
0.
0< n <M
otherwise
and
x 2(n) =
1.
0,
M < n < 1
otherwise
are, respectively.
] _
Xi(a>) =
X 2{to) =
Thus prove that
X (to) - X 1 (tt>) + X 2 (tt)}
sin(M + \) w
sintw /2)
and therefore.
coswn =
sin(M + \ ) w
sin(a/2 j
with Fourier transform X((u). Compute the following quantities, without explicitly
computing X(a>):
(a) X(0)
(b) AX(co)
(c) f * n X(w) dw
(d) X (jt)
(e) f *JX( co ) \ 2 dco
4.15 The center of gravity of a signal x(w) is defined as
T , nx(n)
yx(n)
7I = OC
Chap. 4
373
Problems
Xui
Figure P4.15
|ti) < 1
-----------1 at
xik i
(L) V|H)=.V(2)
_
I x(n/2).
n even
(0 v(n) = L
,.
( 0.
n odd
4.18 Determ ine and sketch the Fourier transforms Xiiw), X 2(co). and Xi(a>) of the following
signals.
(a) -V!(fi) = (1. 1. 1. 1.1)
(b) x2(n) = ( 1. 0. 1 . 0. 1 , 0. 1 . 0, 1 )
(c) x:j n ) = (1 . 0. 0. 1 . 0. 0. 1 . 0. 0, 1 , 0. 0. 1 )
t
(d) Is there any relation between Xi(w). X:(g;). and X3(w)? What is its physical
meaning?
(e) Show that if
**() =
then
, ( r ).
if n j k integer
0.
otherwise
Xt(a>) = X (ka>)
4.19 Let x(n) be a signal with Fourier transform as shown in Fig. P4.19. D eterm ine and
sketch the Fourier transform s of the following signals.
374
Chap. 4
Figure P4.19
Note that these signal sequences are obtained by amplitude modulation of a carrier
co swrn or sinw,,/! by the sequence x(n).
4.20 Consider an aperiodic signal *(n) with Fourier transform X(u>). Show that the Fourier
series coefficients CA
' of the periodic signal
are eiven bv
c;
I .
N
k
N
k = 0. 1........A '- l
'
n=~ N
sin w,n
nn
may be expressed as
X v (o j )
1
= ^
r sinf(2A^ + 1 ){w 8f lj \
db
- 0)/2\
.L ,
X (oj) = ---------------
1 - ae~JW
Chap. 4
Problems
375
Xlw)
ai
Figure P4.23
4.24 The following inpul-output pairs have been observed during the operation of various
svstems:
(I < n < M
otherwise
r
4.27 D eterm ine and sketch the magnitude and phase response of the following systems:
(a) y(n) = ^[.v(/i) + xin - 1 )]
(b) yfn) = 4[v(/i) - xin - 1 )]
(c) v(n) =
+ 1) - x(n - 1)]
376
+ 1 ) + x(n - 1 )]
(e) v (n )= i[jr(rt) +
(f) y(n) =
(g)
(h)
(i)
(j)
(k)
(I)
(m)
(n)
Chap. 4
jc(/t - 2 ) ]
- x(n - 2 )]
=
+ 3x(n - 1) + 3x(n - 2) + x(n - 3)]
= x(n - 4)
= x(n + 4)
= j[x(n) - 2x(n - 1 ) + xin - 2 )]
TT
/ TT
IT '
oc < n < oc
OO <
< oc
4.29 D eterm ine the transient and steadv-statc responses of the FIR filler shown in Fig. P4.29
to the input signal A(n) = 10ejr"',~uin). Let b = 2 and v ( - l ) = v (-2 ) = v(3) =
v(4) = 0.
Figure P4.29
4.30 Consider the FIR filter
v(n) = x ( n ) + x ( n - 4)
(a) Compute and sketch its m agnitude and phase response.
(b) Compute its response to the input
x (n) = cos n + cos n
2
4
oc < n < oc
(c) Explain the results obtained in part (b) in terms of the m agnitude and phase
responses obtained in part (a).
4.31 Determ ine the steady-state and transient responses of the system
y(n) = j [*() x ( n - 2)]
Chap. 4
377
Problems
oo < n < oc
+ 60^
4.32 From our discussions it is apparent that an LTI system cannot produce frequencies
at its output that are different from those applied in its input. Thus, if a system
creates new" frequencies, it must be nonlinear and/or time varying. D eterm ine the
frequency content of the outputs of the following systems to the input signal
4
(a) v (/i) = .v(2n)
(b) y(n) = x 2(n)
<c) y(n) = (cos nn)x(n)
4.33 D eterm ine and sketch the m agnitude and phase response of the systems shown in
Fig. P4.33(a) through (c).
(a)
(b)
8
(c)
Figure P4J3
4.34 Determ ine the magnitude and phase response of the m ultipath channel
y( n) = x (n) + xfn M)
A t what frequencies does H(co) = 0?
4.35 Consider the filter
v() = 0.9v(n - 1) + bx(n)
(a) D eterm ine b so that |H (0)| = 1.
(b) D eterm ine the frequency at which j/ / (cu)| = l/%/2.
378
Chap. 4
*-j
n = (I
Let x(n) be a
n > 0
Chap. 4
379
Problems
(a) Compute and sketch the output y, (n) of the system to the input signals
.v ,(n ) = s in 2 jT /,n
0 ft < 100
where / , =
./? =
(b) Compute and sketch the magnitude and phase response of the system and use
these results to explain the response of the system to the signals given in part (a).
4.39* Consider an LTI system with impulse response h{n) = ( t )1"1
(a) Determ ine and sketch the magnitude and phase response Hi m) and
respectively.
(b) D eterm ine and sketch the magnitude and phase spectra for the input and output
signals for the following inputs:
3,t ii
( 1 ) .v(n ) = cos
. rc < n < cc
T
4.40* Time-domain sampling
(a)
(b)
(c)
(d)
(e)
Compute analytically the spectrum X(F) of a U ) Compute analytically the spectrum of the signal a (/?> = x{nT). T = 1 /F ,.
Plot the magnitude spectrum |X (F)| for Ft, = K) Hz.
Plot the magnitude spectrum (X(F)I for F, = 10. 20, 40. and 100 Hz.
Explain the results obtained in part (d) in terms ol the aliasing effect.
-*
1 ---- ( +
u - - 2 cos aif,
+ 30 ^
cc < n < oc
y(n>
Figure P4.41
380
Chap. 4
(c) Explain the results obtained in part (b) in terms of the answer given in part (a).
4.43 Determ ine the steady-state response of the system
y(n) = i[.v(n) - x(n - 2 )]
to the input signal
oc < n < oc
4.44 Recall from Problem 4.32 that an LTI system cannot produce frequencies at its output
that are different from those applied in its input. Thus if a system creates new
frequencies, it must be nonlinear and/or time varying. Indicate w hether the following
systems are nonlinear and/or time varying and determ ine the output spectra when the
input spectrum is
Chap. 4
381
Problems
x {n > = cos y r +
.T \
- oc < n < oc
4.49 Sketch roughly the m agnitude |A"u<>)! of the Fourier transforms corresponding to the
pole-zero patterns given in Fig. P4.49.
Figure P4.49
4.50 Design an F IR filter that completely blocks the frequency a*, = rr/4 and then compute
its output if the input is
x(n)
^sin
u(n)
382
Chap. 4
(a) Sketch the direct form I and direct form II realizations of this filter and find the
corresponding difference equations.
(b) For a = 0.5 and b 0.6, sketch the pole-zero pattern, is the system stable?
Why?
(c) For a = 0.5 and b = 0.5, determ ine bu. so that the maximum value of \H(w)\ is
equal to 1 .
(d) Sketch the m agnitude response \H{co)\ and the phase response 2t//(o>) of the
filter obtained in part (c).
(e) In a specific application it is known that a 0.8. Does the resulting filter amplify
high frequencies or low frequencies in the input? Choose the value of b so as to
improve the characteristics of this filter (i.e., m ake it a better lowpass or a better
highpass filter).
4.53 Derive the expression for the resonant frequency of a two-pole filter with poles at
Pi = r e 6 and p 2 = p*x. given by (4.5.25).
4.54 Determ ine and sketch the magnitude and phase responses of the Hanning filter char
acterized by the (moving average) difference equation
y(n) ~ jx (n ) + \ x( n - 1 ) + j*( - 2 )
4.55 A causal LTI system excited by the input
x(rt') = (j)"(n) + u( n - 1)
produces an output v(n) with r-transform
_ 3 -l
(a) D eterm ine the system function H(z) and its ROC.
(b) Determ ine the output y(n) of the system.
(Hint: Pole cancellation increases the original ROC.)
Chap. 4
383
Problems
t t
> - * )
1
1
(b) y(ff) = r-x(n + Af) +
AM
2M
J
x(n - k) + ~r~rzx(n - M)
AM
k=- M + i
Y
x\ {X)x2(t k)dk
(a) Show that X(F) = X\ ( F) X2(F), where X, (F) and X 2(F) are the spectra of *1 (r)
and a:(/), respectively.
= ( I'
< X
p'
10.
elsewhere
(c) Determ ine the spectrum of x(t) using the results in part (a).
4.59 Com pute the magnitude and phase response of a filter with system function
H(z) = l + c
If the sampling frequency is F, = 1 kHz, determ ine the frequencies of the analog
sinusoids that cannot pass through the filter.
4.60 A second-order system has a double pole at p li2 = 0.5 and two zeros at
Z\.2 = es3*,A
Using geom etric arguments, choose the gain G of the filter so that |tf(0 )| = 1.
4.61 In this problem we consider the effect of a single zero on the frequency response of
a system. Let ; = re9 be a zero inside the unit circle (r < 1). Then
H,(w) = 1 re]0e~iu>
= 1 r cos(a) B) + j r sin(ti) (?)
(a) Show that the m agnitude response is
\HZ((D)\ = [ 1 - 2 r cosito - 6 ) + r 2f n
or, equivalently,
201og10 |//:(cd)| = 101og10[l 2r cos{ct> 6) + r2]
384
Chap. 4
-i
rsin(w - 8)
------------------1 - r cos(ct) -
for r = 0.7
4.62 In this problem we consider the effect of a single pole on the frequency response of
a system. Hence, we let
'<> =
' =1
Show that
[Wr (a>)ljB = ~ |W-(fi))|dD
4 // (u > ) = - Z - H . ( c o )
4.63 In this problem we consider the effect of complex-conjugate pair of poles and zeros
on the frequency response of a system. Let
H.{u>) = (1 - reJ*'e~J'")(l - re~il'e~-")
(a) Show that the magnitude response in decibels is
| W - M | d B
1 0 1 o g 1()[ l
2 r
c o s ( o )
# ) ]
rsinUo 8)
l-r c o s (tu -# )
Asin(w + fi)
l- r c o s ( o > + 0)
&p(w) - - .(oj)
Tg(a>) =
(e) Plot
p(ci>) and
Chap. 4
385
Problems
4.66 This problem provides another derivation of the structure for the coupled-form os
cillator by considering the system
y i n ) = av(ri 1 ) 4 xi / i )
./'/()
(a) Determ ine the equations describing a system with one input x i n) and the two
outputs y t i U t ) and y f Ui ) .
(b) Determ ine a block diagram realization
(c) Show that if ,v() = bin), then
y^in) = (cosw()'i ii/tn I
y/ {ti) = (sin mull )u(n)
(d) Compute ynin), \/in). n = 0. 1....... 9 for &j(, = tt/6. Compare these with the true
values of the sine and cosine,
4.67 Consider a filter with system function
(1 -
1 -
386
Chap. 4
4.70 D em onstrate that the difference equation given in (4.5.52) can be obtained by apply
ing the trigonometric identity
a + [i
a
cos or + cos p = 2 cos - cos -
where a (n-t-Dwu, ~ (n l)a>o, and v(n) = coswon. Thus show that the sinusoidal
signal x(n) A co sco^n can be generated from (4.5.52) by use of the initial conditions
v(1) = A cos an) and y (2) = j4cos2a>o.
4.71 Use the trigonometric identity in (4.5.53) with a = na>o and (i = (n 2)a^t to derive the
difference equation for generating the sinusoidal signal y(n) = A sin no*,. Determine
the corresponding initial conditions.
4.72 Using the --transform pairs 8 and 9 in Table 3.3. determine the difference equations
for the digital oscillators that have impulse responses h(n) = A cosna>it(n) and h(n) =
A sin ncDf>u(n), respectively.
4.73 Determ ine the structure for the coupled-form oscillator by combining the structure
for the digital oscillators obtained in Problem 4.72.
4.74 Convert the highpass filter with system function
H(z) =
az
a < 1
into a notch filter that rejects the frequency a*, = tt/ 4 and its harmonics.
(a) Determ ine the difference equation.
(b) Sketch the pole-zero pattern.
(c) Sketch the magnitude response for both filters.
4.75 Choose L and M for a lunar niter that must have narrow passbands at (k AF)
cycles/dav. where k = i. 2, 3 ,... and A F = 0.067726.
4.76 (a) Show that the systems corresponding to the pole-zero patterns of Fig. 4.58 are
all-pass.
(b) What is the number of delays and multipliers required for the efficient implemen
tation of a second-order all-pass system?
4.77 A digital notch filter is required to remove an undesirable 60-Hz hum associated with
a power supply in an ECG recording application. The sampling frequency used is
Fs = 500 samples/s. (a) Design a second-order FIR notch filter and (b) a secondorder pole-zero notch filter for this purpose. In both cases choose the gain by so that
\H(w)\ = 1 for w = 0.
4.78 Determ ine the coefficients {/?()} of a highpass linear phase FIR filter of length M =
4 which has an antisymmetric unit sample response h{n) = h(M - I - n) and a
frequency response that satisfies the condition
4.79 In an attem pt to design a four-pole bandpass digital filter with desired magnitude
response
0,
elsewhere
Chap. 4
Problems
387
/>,, = 0 .8 e-MT"
and four zeros at
HDb
(b) Determ ine the system function H(:).
(c) Determ ine the magnitude of the frequency response H(a>) for 0 < a> < tt and
compare it with the desired response \Hd(w)[.
4.80 A discrete*time system with input
and output v ( n ) is described in the frequency
domain by the relation
V(oj) v
dXiuj)
~ 1 X (as) -t-
das
4.81 Consider an ideal lowpass filter with impulse response It in) and frequency response
I 1.
K"! 5
a),
I 0,
CIJ,
|< D | <
Hiw) = |
<
TT
f).
n ev e n
n odd
4.82 Consider the system shown in Fig. P4.S2. Determ ine its impulse response and its
frequency response if the system H(a>) is:
(a) Lowpass with cutoff frequency w,.
(b) Highpass with cutoff frequency o j , .
xi n )
Hiw)
I'
4.83 Frequency inverters have been used for many years for speech scrambling. Indeed,
a voice signal x(n) becomes unintelligible if we invert its spectrum as shown in
Fig. P4.S3.
(a) Determ ine how' frequency inversion can be perform ed in the time domain.
(b) Design an unscrambler. (Hint: The required operations are very simple and can
easily be done in real time.)
388
Chap. 4
X(a>)
-x
0
(b)
Figure P4.83
2 2 2^ ( n )
n = ~ oc
(a)
(b)
(c)
<d)
0 < a < 1
4.87 Sketch the magnitude and phase response of the m ultipath channel
y (n ) = x ( n ) + a jr(n M )
fo r a < < 1.
a > 0
Chap. 4
389
Problems
4.88 Determ ine the system functions and the pole-zero locations for the systems shown in
Fig. P4.88(a) through (c). and indicate w hether or not the systems are stable.
l
lc)
Figure P4.88
4.89 D eterm ine and sketch the impulse response and the magnitude and phase responses
of the FIR filter shown in Fig. P4.89 for b = 1 and b = -1 .
4.91 Determ ine the impulse response and the difference equation for all possible systems
specified by the system functions
390
(a)
H( Z)
1 _ rZ
_'_
Chap. 4
,_2
0 " W = ! _ eL z-4
0< < 1
4.92 D eterm ine the impulse response of a causal LTI system which produces the response
v(n) = {1. - 1 .3 . - 1 ,6 )
t
when excited by the input signal
x(n) = (1,1,2}
t
4.93 The system
y(n) = i_v(n - 1) + x(n)
is excited with the input
x(n) = (j)"(n)
Determ ine the sequences aj t (/), rhh(l), r,y(i). and rvy(l).
4.94 Determ ine if the following FIR systems are minimum phase.
(a) h(n) = {10,9. - 7 , - 8 , 0 , 5 . 3}
r
(b) h(n) = (5,4, - 3 . - 4 , 0 ,2 ,1 )
t
4.95 Can you determ ine the coefficients of the all-pole svstem
*=i
if you know its order N and the values /?(0), /i(l)........h ( L - l ) of its impulse response?
How? W hat happens if you do not know N1
4.96 Consider a system with impulse response
h(n) = baS(n) + bi$(n D) + ^<5(n 2D)
(a ) Explain why the system generates echoes spaced D samples apart.
(b) Determ ine the m agnitude and phase response of the system.
(c) Show that for \b0 + b2\ < < |>]|, the locations of maxima and minima of \H(a>)
are at
k
w = n
k = 0. 1, 2. . . .
D
(d) Plot |//(w )| and
for b$ 0.1, b\ = 1, and b2 = 0.05 and discuss the results.
4.97 Consider the pole-zero system
B(z)
1 + bz * v'
W(z) = A(z) = T
1T
+ -----a z 1r = Y
l h^ z
(a) Determine >i(0), >i(l), h(2), and h(3) in terms of a and b.
(b) Let rhH(l) be the autocorrelation sequence of h(n). D eterm ine rkh{0), /-^(l), rw,(2),
and r/,h(3) in terms of a and b.
Chap. 4
391
Problems
4.98 Let
be a real-valued minimum-phase sequence. Modify xin I to obtain another
real-valued minimum-phase sequence y(/i) such that y(0) = x(0) and y(n) = |jr(n)|.
4.99 The frequency response of a stable LTI system is known to be real and even. Is the
inverse system stable?
4.100 Let h(n) be a real filter with nonzero linear or nonlinear phase response. Show that
the following operations are equivalent to filtering the signal x(n) with a zero-phase
filter.
(a) g(n) Ji(n) * ,v(n)
/ (h ) = h (/ t ] * g t - i i )
yon = f( ~n)
(b)
g(n) h(n) *
/ (r?) = h{n) * x ( n)
y(nl = ain) + / ( - i i )
(Hint: D eterm ine the frequency response of the composite system _v(/i) = //[.v()].)
4.101 Cheek the validity of the following statements:
(a) The convolution of two minimum-phase sequences is always mimmum-phase se
quence.
(h) The sum of two minimum-phase sequences is always minimum phase.
4.102 Determ ine the minimum-phase syslem whose squared magnitude response is given
by:
- cos w
^
(a) i H(</)}'- =
(b )
I H (u>)',: =
(i
a - ) - 2a cos w
(a) Determ ine all systems that have the same magnitude response.
minimum-phase system?
(b) Deierm ine the impulse response of al) systems in part (a).
(c) Plot the partial energy
Which is the
i=t>
for every system and use il lo identify the minimum- and maximum-phase systems.
4.104 The causal system
//(.-) =
,v
392
Chap, 4
(a) Show that by properly choosing A we can obtain a new stable system.
(b) What is the difference equation describing the new system?
4.105* Given a signal x(n), we can create echoes and reverberations by delaying and scaling
the signal as follows
>() = 22 Skx (n ~ kD)
where D is positive integer and gk > g i i > 0.
(a) Explain why the comb filter
H(z) =
1-az-
-a
1 - a z - 1
UNIT 2
Seclion
I)
Section
1
2
3
50
40
32
0.7
0.665
0.63175
1
2
3
50
17
6
0.7
0.77
0.847
(c) The difference between echo and reverberation is that with pure echo there are
clear repetitions of the signal, but with reverberations, there are not. How is this
reflected in the shape of the impulse response of the reverberator? Which unit
in part (b) is a better reverberator?
(d) If the delays D\, D2, Dj in a certain unit are prime numbers, the impulse response
of the unit is more dense." Explain why.
(e) Plot the phase response of units 1 and 2 and comm ent on them.
(f) Plot h(n) for D |, D2, and
being nonprime. W hat do you notice?
More details about this application can be found in a paper by J. A. M oorer, Signal
Processing Aspects of Com puter Music: A Survey," Proc, IEEE, vol. 65, No. 8, Aug.
1977, pp. 1108-1137.
4.106* By trial-and-error design a third-order lowpass filter with cutoff frequency at wc = Jt/9
radians/sample interval. Start your search with
(a) zi = Z2 = Z3 = 0, pi = r, p2J = re,tu' . r = 0.8
(b) r = 0.9, zi = Z2 = Z3 = - 1
Chap. 4
393
Problems
F3 = 7778 Hz
F2 = 8889 Hz,
F4 = 6667 Hz
D eterm ine the system function Ht.(;) of a causal and stable compensating system so
that the cascade interconnection of the two systems has a flat magnitude response.
Sketch the pole-zero plots and the m agnitude and phase responses of all systems in
volved into the analysis process. [Hint: Use the decomposition H(z) = Wap(;) Wn,in(;)-]
F requency analysis o f discrete-tim e signals is usually and most con ven ien tly per
form ed on a digital signal processor, which may be a general-purpose digital com
puter or specially d esigned digital hardware. T o perform frequency analysis on a
d iscrete-tim e signal
w e convert the tim e-dom ain sequ en ce to an equivalent
frequencv-dom ain representation. We know that such a representation is given by
the Fourier transform X(cu) of the seq u en ce |a(>;)). H ow ever, A'u<j) is a contin
uous function o f frequency and therefore, it is not a com p utationally convenient
representation o f the sequence {.v(/i)).
In this section we consider the representation o f a sequ en ce
by sam ples
o f its spectrum X ( uj). Such a frequency-dom ain representation lead s to the discrete
Fourier transform (D F T ), which is a pow erful com putational tool for perform ing
frequency analysis o f discrete-tim e signals.
(5.1.1)
394
Sec. 5.1
395
S uppose that w e sam ple X(a>) periodically in frequency at a spacing o f Sco radians
b etw een successive sam ples. Since X(a>) is period ic with period 2tt, only sam ples
in the fundam ental frequency range are necessary. For con ven ien ce, w e take N
equidistant sam ples in the interval 0 < w < 2tt with spacing Sco = 2 ttf N , as shown
in Fig. 5.1. First, w e consider the selection of N , the num ber o f sam ples in the
frequency dom ain.
If w e evaluate (5.1.1) at u> = 2 n k / N , w e obtain
(5.1.2)
T h e sum m ation in (5.1.2) can be subdivided in to an infinite n um ber of sum m ations,
where each sum con tains N term s. Thus
-i
oc
N-1
IN + N - 1
-)2nkn/\
}=-~yL f}=i A
If we change the index in the inner sum m ation from n to n I N and interchange
the order o f the sum m ation, we obtain the result
(5.1.3)
for k = 0, 1, 2 .........N 1.
T h e signal
OC
(5.1.4)
ob tain ed by the periodic repetition o f x{n) every N sam ples, is clearly periodic
with fundam ental period N. C onsequently, it can be expanded in a Fourier
0
F igure 5.1
kSa)
tt
Swh
396
Chap. 5
series as
A '-l
x p (n) = Y ^ c ke,2nkn/N
n = 0 , 1 .........N - 1
(5.1.5)
k=Q
k = 0 , 1 ........ N 1
ck = - - ' x p ( n ) e - j2,rkn/N
N n=0
(5.1.6)
k = 0 . 1.........A ' - l
(5.1.7)
J
T herefore,
1 ^ ~ ^ / ^7T \
x.,(n) = ' y * ( * ) e llnkntN
\ N /
n = 0, 1........ A ' - l
(5.1.8)
Hitt,....
L
xp(n)
N > L
ITI
i t t t t
IITI
t t t
.
L
JTTTTttt
N
N< L
IT- I TNt t t O I TN T t
TTTt 1-
Figure 5.2 Aperiodic sequence x(n) of length L and its periodic extension for
N > L (no aliasing) and N < L (aliasing).
Sec. 5.1
397
0 < n < N 1
so that x ( n ) can be recovered from x r (n) w ithout am biguity. On the other hand,
if N < L, it is not possib le to recover
from its periodic exten sion due to timed o m a i n aliasing. Thus, w e conclude that the spectrum of an aperiodic discrete-tim e
signal with finite duration L . can be exactly recovered from its sam ples at frequen
cies tot: = 2j rk/ N. if N > L. The procedure is to com pute x p (n). n = 0, 1.........N - 1
from (5.1.8); then
0 < n < N
elsew h ere
and finally, X(io) can be com p uted from (5.1.1).
A s in the case o f con tinu ou s-tim c signals, it is p ossible to express the spectrum
X ( w ) directly in term s o f its sam ples X Q n k / N ) , k = 0. 1........ N 1. T o derive
such an interpolation formula for X{co), we assum e that N > L and begin with
(5.1.8). Since x( n) = x,,(n) for 0 < /; < A' - 1,
k ]
()<//< N - I
(5.1.1(1)
X(a>) =
n = (l
(5.1.11)
A '-l
2>
The inner sum m ation term in the brackets o f (5.1.11) represents the basic
interpolation function shifted by 2 ttk / N in frequency. Indeed, if w e define
v/tuA-'
N 1 - e-J
sin(o>Ar/2 )
N sin(w /2)
jiuiN
(5.1.12)
398
Chap. 5
k =
* = 1 .2 .........A ' - l
(5.1.14)
C onsequently, the interpolation form ula in (5.1,13) gives exactly the sam ple val
ues X ( 2 j r k / N ) for oj = 2 i r k / N . A t all other freq u en cies, the form ula provides a
properly w eighted linear com bination o f the original spectral sam ples.
T h e follow ing exam ple illustrates the frequency-dom ain sam pling of a
discrete-tim e signal and the tim e-dom ain aliasing that results.
Example 5.1.1
Consider the sisinal
xin ) = a"uin)
0 < a < 1
Xiw)
1.0
JV= 5
Figure S.3
[sin(ct>W/2)]/[jty sin(tu/2)].
Sec. 5.1
399
oc
x p(n) = ^
jc(n - IN) = ^
a~IN
0 <n < N - 1
where the factor 1/(1 - a N) represents the effect of aliasing. Since 0 < a < 1, the
aliasing error tends toward zero as N -+ oo.
For a = 0.8, the sequence x(n) and its spectrum X{w) are shown in Fig. 5,4a
and b, respectively. The aliased sequences xp(n) for N = 5 and N = 50 and the
corresponding spectral samples are shown in Fig. 5.4c and d, respectively. We note
that the aliasing effects are negligible for N = 50.
If we define the aliased finite-duration sequence x(n) as
xp{n),
0,
0 < n < N 1
otherwise
1
1 ae~,w
Note that although X(ou) ^ X(a>), the sample values at a>t = I n k f N are identical.
That is,
1
1- a N
1-a N
l - a e - ' 21"
400
Chap. 5
IAWH
1.0?
Tfrrmnx.
(a)
(b)
x(n)
1.0*
x \ f k)
1W
50
50
(1
fdi
Figure 5.4 (a) Plot of sequence xin) = (0.X)"h (h ): (b) its Fourier transform (magnitude
only): (c) effect of aliasing with A' = 5: (d) reduced effect of aliasing with A' = 50.
given as
x r (n) =
x( n) .
0.
0 < n < L 1
L < n < N 1
(5.1.16)
Sec. 5.1
401
tant sam ples o f X(u>) are sufficient to reconstruct X(co) using the reconstruction
form ula (5.1.13). H o w ever, padding the seq u en ce {jc( )} with N L zeros and
com puting an A'-point D F T results in a better display" of the Fourier transform
X(o>).
In sum m ary, a finite-duration seq u en ce x( n ) o f length L [i.e., x(n ) = 0 for
n < 0 and n > L\ has a Fourier transform
JL1
X(u>) = ^ 2 x ( n ) e ~ Jwn
n=0
(5.1.17)
where the upper and low er indices in the sum m ation reflect the fact that x ( n ) = 0
outside the range 0 < n < L 1. W hen w e sam ple X{a>) at equally spaced
freq u en cies u>k = 2 n k / N . k ~ 0, 1, 2 ........ N 1, where N > L. the resultant
sam ples are
X(k) = X
= J 2 x ( n ) e ^ j27,k"/N
N_ ) N 7
"=
X(k) = y
x ( n ) e - p^ h,IN
(5.1.18)
k = 0, 1, 2, , . . , N - 1
n=<l
where for co n v en ien ce, the upper index in the sum has been increased from L 1
to /V - 1 since x ( n ) = 0 for n > L.
T he relation in (5.1.18) is a form ula for transform ing a seq u en ce {jc()} of
length L < N in to a seq u en ce o f frequency sam ples ( X()) o f length N . Since
the frequency sam ples are ob tain ed by evaluating the Fourier transform X (a>)
at a set o f N (eq ually spaced) discrete frequencies, the relation in (5.1.18) is
called the discrete Fouri er t rans f or m (D F T ) o f jc(). In turn, the relation given
by (5.1.10), which allow s us to recover the seq u en ce jr(n) from the frequency
sam ples
1 A'-l
x ( n ) = - X f c ) e ,23tknlN
n = 0 . 1 .........N ~ 1
(5.1.19)
is called the i nverse D F T (ID F T ). Clearly, when x ( n ) has length L < N , the Ap
point ID F T yield s x (n ) = 0 for L < n < N 1. T o sum m arize, the form ulas for
the D F T and ID F T are
DFT
A'-l
X ( k ) = J ^ x ( n ) e - j2nkn/N
^70
k = 0 , 1, 2,
(5.1.18)
IDFT
, A'-l
x( n) = Y * X ( k ) e JZnkn/N
N
*=o
n = 0 , 1 , 2 .........N - 1
(5.1.19)
402
Chap. 5
Example 5.1.2
A finite-duration sequence of length L is given as
x(n) I
1 0,
0 < n <L -l
otherwise
L-l
The magnitude and phase of X (w) are illustrated in Fig. 5.5 for L = 10. The Appoint
DFT of x (n) is simply X(w) evaluated at the set of N equally spaced frequencies
wt = 2it k / N , k = 0, 1........N 1. Hence
p-jkrkLiN
sm(*kL/N)
, - j x k l L - 1 I/A/
sm(i t k/ N)
IX(w)l
1"
7C
2n
W
|H 0
0(a>)
TT
ID
Sec. 5.1
403
k =0
* = 1 .2 ........L - l
Thus there is only one nonzero value in the DFT. This is apparent from obser
vation of X(w), since X(a>) = 0 at the frequencies an = I n k f L , k ^ 0. The
reader should verify that x(n) can be recovered from X(k) by perform ing an Z.-point
IDFT.
Although the L-point D FT is sufficient to uniquely represent the sequence x{ n)
in the frequency domain, it is apparent that it does not provide sufficient detail to yield
a good picture of the spectral characteristics of x(n). If we wish to have better picture,
we must evaluate (interpolate) X(a>) at more closely spaced frequencies, say wt, =
2n k / N , where N > L. In effect, we can view this com putation as expanding the size
of the sequence from L points to N points by appending A '- L zeros to the sequence
x ( n ). that is, zero padding. Then the A*-point DFT provides finer interpolation than
the L-point DFT.
Figure 5.6 provides a plot of the Appoint DFT, in magnitude and phase, for
L = 10, N = 50, and N = 100. Now the spectral characteristics of the sequence
are more clearly evident, as one will conclude by comparing these spectra with the
continuous spectrum XUo).
X ( k ) = J ^ j r O i) ^ "
FT(I
] JV-1
x( n) = J ] x a ) ^ in
^ k=o
A- = 0 , 1 , . . . , A/ 1
n = 0 , 1 .........N - 1
(5.1.20)
(5.1.21)
w here, by definition,
W N = e ~ ^ IN
(5.1.22)
404
Chap. 5
Figure 5.6 Magnitude and phase of an N-poini DFT in Example 6.4.2; (a) L =
N = 50; (b) L = 10, N = 100.
as
- *(0)
X* =
x(l)
X,v
.x(N-l).
'1
w*
1!
3
*
.1
<
_1
-I
- X ( N - 1 ).
1. ..
x(0)
X ( l)
w*
W%N~ 0
(5.1.23)
N
y y 2 ( N 1)
(* -!)< A '-l)
Sec. 5.1
405
(5.1.24)
w h ere
is the m atrix o f the linear transform ation. W e ob serve that Wjv is a
sym m etric matrix. If w e assum e that the inverse o f W * exists, then (5.1.24) can
be inverted by prem ultiplying both sid es by W ^1. T hus w e ob tain
x/v =
(5.1.25)
(5.1.26)
406
where
d en o tes the com p lex conjugate o f the m atrix W A.
(5.1.26) with (5.1.25) leads us to con clu d e that
Chap. 5
C om parison of
W *1 = -W * w
(5.1.27)
W W ;, = N l N
(5.1.28)
x(n) = (0
3)
Solution The first step is to determ ine the matrix W4. By exploiting the periodicity
property of W4 and the symmetry property
= -v v
the matrix W4 may he expressed as
W< =
~w"
w"
w"
-1
1
1
.1
w
w1.
w9
w44
Wl
w;
-W
1
-j
-1
j
1
- 1
1
'1
< 1
1
1
J
1
w4
W;
w*
1
M'i
W?
I"
W4-
1
j
-1
-j
Then
T
X4 = W 4X4 =
-2 + 2;
-2
L-2-2JJ
The IDFT of X4 may be determ ined by conjugating the elements in W 4 to obtain WJ
and then applying the formula (5.1.26).
T h e D F T and ID F T are com putational to o ls that play a very im portant role
in m any digital signal processing applications, such as frequency analysis (spectrum
analysis) o f signals, p ow er spectrum estim ation , and lineaT filtering. T h e im por
tance o f the D F T and ID F T in such practical ap p lication s is du e to a large extent
on the ex isten ce o f com putationally efficient algorithm s, know n co llectiv ely as fast
Sec. 5.1
407
F ourier transform (F F T ) algorithm s, for com puting the D F T and ID F T . T his class
o f algorithm s is d escrib ed in Chapter 6.
iV~l
x p (n) ^ kei2l,nk,N
t=o
oo < n < oo
(5.1.29)
Jt = 0 , 1 .........AT - 1
(5.1.30)
If w e com p are (5.1.29) and (5.1.30) with (5.1.18) and (5.1.19), w e ob serve that the
form ula for the F ourier series coefficients has the form o f a D F T . In fact, if we
d efine a se q u en ce x(rt) = x p(n), 0 < n < N - 1 , the D F T o f this se q u en ce is sim ply
X(k) = Nc k
(5.1.31)
x ( n ) e - j2* nk,N
k = 0,1,..., N - 1
(5.1.32)
n oo
OO
J;p (n) = ^
x(n-lN )
(5.1.33)
/* OO
Thus x p (n) is d eterm in ed by aliasing {jc(n)J o ver th e interval 0 < n < N - 1. T h e
finite-duration seq u en ce
408
Chap. 5
bears no resem blance to the original seq u en ce {x(n )), u nless ;c(n) is o f finite dura
tion and length L < N, in which case
x( n) = x{n)
0 < n < N 1
(5.1.35)
O nly in this case will the ID F T o f {X(jfc)} yield the original seq u en ce {*()}.
the ^-transform
(5.1.36)
with a R O C that includes the unit circle. If X ( z ) is sam pled at the N equally
spaced points on the unit circle zt = e i2*k/ N, 0, 1, 2 , . . . , N 1, w e obtain
X( k ) = X(z)U=, it
k = 0, 1 , . . . , N - 1
(5.1.37)
x ( n ) e ~ j2nnk/N
*=0
-N N- 1
X ( Z) =
(5.1.38)
X( k)
ej2*k/Nz - i
W hen evaluated on the unit circle, (5.1.38) yield s the F ourier transform o f the
finite-duration seq u en ce in term s o f its D F T , in th e form
k=0 1
T his expression for th e Fourier transform is a p olyn om ial (L agrange) interpolation
form ula for X ( w ) exp ressed in term s o f the valu es {X (Jt)) o f th e polyn om ial at a
set o f equally spaced d iscrete freq u en cies <ok = 2 n k / N , k = 0, 1.........N - 1. With
Sec. 5.2
409
xaU) =
CteJ2,TkF"
t = 3C
(5-1-40)
w here { q ) are the Fourier coefficients. If we sam ple xc,(t) at a uniform rate
Fs = N / T p = 1 / T , w e obtain the discrete-tim e sequ en ce
x ( n ) = x a( nT) =
y
Cl;ej2,rkF",T =
ckej2nt,l/N
k='\,
k=cc
N - 1
J 2 x k n /N
- E
l~~CX.
(5.1.42)
(5.1.43)
* - 0 , 1 .........A ' - l
(5.2.1)
1 N- 1
ID FT: jc(n) = X ( k ) W ~ kn
i=0
n = 0 , 1 .........N - 1
(5.2.2)
where Wn is defined as
WN = e~ j2n,N
(5.2.3)
410
Chap. 5
In this section w e present the im portant p rop erties o f the D F T . In view o f the
relationships estab lish ed in Section 5.1.4 b etw een the D F T and Fourier series,
and Fourier transform s and --transform s o f d iscrete-tim e signals, w e exp ect the
p roperties o f the D F T to resem ble the properties o f these o th er transform s and
series. H ow ever, som e im portant d ifferen ces exist, o n e o f w hich is the circular
con v o lu tio n property derived in the follow in g section . A good understanding of
these properties is extrem ely helpful in the application o f the D F T to practical
p roblem s.
T h e notation used b elow to d en o te the N -point D F T pair x ( n ) and AT(Jt) is
*() S
x(k)
for all n
(5.2.4)
X( k + N) = X( k )
for all k
(5.2.5)
T h ese periodicities in .r(n) and A' (A:) follow im m ed iately from form ulas (5.2.1) and
(5.2.2) for the D F T and ID FT , respectively.
W e previously illustrated the periodicity property in the seq u en ce x (n) for a
given D FT. H ow ever, we had not p reviously view ed the D F T X( k ) as a periodic
seq u en ce. In so m e applications it is ad van tageou s to do this.
Linearity.
If
DFT
* ,( )
X l (k)
and
x 2(n) K
N
X 2(k)
then for any real-valued or com p lex-valu ed con stan ts a\ and a2,
DFT
(5.2.6)
This property follow s im m ediately from the definition o f the D F T given by (5.2.1).
xp (n) =
x( n - I N)
/=OO
(5.2.7)
Sec. 52.
411
N o w su p p ose that w e shift the periodic seq u en ce x p (n) by k units to the right.
Thus w e obtain a n oth er period ic sequ en ce
OC
x'p (n) = x p (n - k) =
^ x( n - k - IN)
/=-OC
T h e finite-duration seq u en ce
1 0,
otherw ise
(5.2.8)
(5.2.9)
jc (
( - 1))4 = ;c ( 3 )
'( 3 ) =
j t ( ( 1))4
j t (1 )
H en ce x'(n) is sim ply x (n) shifted circularly by tw o units in tim e, w here the cou n
terclock w ise direction has b een arbitrarily selected as the p ositive direction. Thus
w e con clu d e that a circular shift o f an
-point seq u en ce is eq u ivalen t to a linear
shift o f its p eriod ic ex ten sion , and vice versa.
T h e in h eren t p eriod icity resulting from the arrangem ent o f the Af-point se
q u en ce o n th e circum ference o f a circle dictates a differen t definition o f even and
od d sym m etry, and tim e reversal o f a sequ en ce.
A n Af-point seq u en ce is called circularly even if it is sym m etric ab ou t the
p oin t zero on th e circle. T h is im plies that
x ( N n ) = x ( n )
1 < n < N 1
(5.2.11)
1 < n < N 1
(5.2.12)
0 < n < N - l
(5.2.13)
412
4<
j(n)
3
2t
'
<a)
4'
xM
41
T2J
-4
r l l '
. . t
-3 - 2 - I
(b)
Jr,,(n - 2)
4<
3 <
- t6 - 5I
-4
-3
4'
4'
, - t " l 1 m i I
-2
-I
(O
4
3
TI
*(0)
*'(2)
<e)
Figure 5.7
Chap. 5
Sec. 5.2
413
x(n) =
= x p( N - n)
(5.2.14)
odd:
x p (n) = - x p( n) - - x p ( N - n)
x (n) = x U N n)
P
x p (n) = x * ( N n )
conjugate odd:
(5.2.15)
(5.2.16)
(5.2.17)
w here
0 < n < N 1
(5.2.18)
X( k ) = Xg ( k ) + j X , ( k )
0 < k < N - 1
(5.2.19)
j*J?(") cos
X,(k) = E
+ x , ( n ) sin
(5.2.20)
n=0 L
(5-2.21)
J
Sim ilarly, by substituting (5.2.19) into the expression for the ID F T given by (5.2.2),
w e obtain
x K(n) = i
1
* /(n ) =
[* * ( * ) cos
*=0 L
f
Real-valued sequences.
- X ,( fc ) s in ^ ^ j
J
. 2nkn
sin ^ h
2n kn "I
cos ^ J
(5.2.22)
(5.2.23)
X ( N - k ) = X m(k) = X(-Jfc)
(5.2.24)
414
Chap. 5
x(n ) x ( N n)
0 < n < N 1
0 < k < N \
(5.2.25)
jc () ^ X (k ) c o s -------*=o
0 < n < N 1
(5.2.26)
x ( n ) = x ( N n)
0 < n < N ~ 1
o < k < N 1
(5.2.27)
X (k ) sin
0 < n < N - 1
(5.2.28)
**< *) -
E
n=0
x >(k) -
JC,(n)sin
(5.2.29)
N
* / ( " ) 0 0 8 77n=0
(5.2.30)
Sec. 5.2
415
/V-Point DFT
X(k)
X ( N k)
X' ( k)
x(n)
x*(n)
x*( N - n )
xx(n)
X t,
*)]
X,-,<*) = HX( k ) - X ' ( N - *)]
X K(k)
JXj (n)
xcf(n) = i[jr(n) + x*(N - )]
xcJ n ) = |[T (n) - x*( N - /j)]
j X/ ( k )
Real Signals
X(k) = X*( N - k )
X K(k) = X W - k )
X, (k) = - X , i N - k )
\X(k)\ = \ X( N - k ) \
I X( k) = - I X { N - k)
X K{k)
jX/tt)
A ny real signal
jr{n)
x 'kOi )
+ j x j{n) + jx'/in)
\
x(k) = x H
(k) + x ; (k) + j x ;t (k) + j x l<,(k)
(5-2-3D
AH the sym m etry properties o f the D F T can easily be d ed u ced from (5.2.31). For
exam p le, the D F T o f the seq u en ce
x pr(n) = j ^ f n ) + x * ( N - n)]
is
* * ( * ) = X'K(k) + XK(k)
T h e sym m etry p rop erties of the D F T are sum m arized in T able 5.1. E x
p loitation o f th e se properties for the efficient com putation o f the D F T o f special
se q u en ces is con sid ered in so m e o f the problem s at the end o f the chapter.
k = 0,1,..., N 1
(5.2.32)
k = 0,1,..., N - 1
(5.2.33)
416
Chap. 5
k = 0 , 1 .........N - 1
(5.2.34)
T h e ID F T o f {X3(Jt)} is
1 N-1
x 3 (m) = ~
X j ( k ) e i2* km/N
*=o
(5.2.35)
A'-l
Suppose that we substitute for X\ ( k ) and X 2(k) in (5.2.35) using the D F T s given
in (5.2.32) and (5.2.33). T hus w e obtain
j27rkn/N
k=0
-j2nkl/N
j2nkm/N
/=0
(5.2.36)
Af-l
f N.
a = 1
(5.2.37)
y > A= l l - a "
*-
0751
w here a is defined as
Q _ e j2n(m-n-l)/N
ks=0
t
a
,
I N,
1 0,
1
I = m - n + p N = ((m - n ) ) N,
otherw ise
p an in teger
2 381
x \ ( n) x 2((m - n ) ) N
m = 0,1,..., N - 1
(5.2.39)
Sec. 5.2
417
((m fl))w and is called circular co nvolution. Thus w e con clu d e that m ultiplication
o f the D F T s o f tw o seq u en ces is eq u ivalen t to the circular con volu tion o f the tw o
seq u en ces in the tim e dom ain.
T h e fo llow in g exam p le illustrates the op eration s in volved in circular con vo
lution.
Example Si.1
Perform the circular convolution of the following two sequences:
*!() = { 2,1,2( 1}
t
x 2(n) = {1,2,3,4}
t
Solution Each sequence consists of four nonzero points. For the purposes of illus
trating the operations involved in circular convolution, it is desirable to graph each
sequence as points on a circle. Thus the sequences x\{n) and x 2(n) are graphed as
illustrated in Fig. 5.8(a). We note that the sequences are graphed in a counterclock
wise direction on a circle. This establishes the reference direction in rotating one of
the sequences relative to the other.
Now, xi(m) is obtained by circularly convolving jci<) with J 2() as specified by
(5.2.39). Beginning with m = 0 we have
jrj(O ) = y ^ j r i ( n ) j r 2( ( - n ) ) y
n=U
jc2(()>4 is simply the sequence x 2(n) folded and graphed on a circle as illustrated in
Fig. 5.8(b). In other words, the folded sequence is simply xz(n) graphed in a clockwise
direction.
The product sequence is obtained by multiplying jci(h) with * j( ( - n ) ) 4, point by
point. This sequence is also illustrated in Fig. 5.8(b). Finally, we sum the values in
the product sequence to obtain
*3(0) = 14
For m = 1 we have
3
*3(1) = ^ x l ( n ) x 2( ( l - 4
*0
It is easily verified that *2((1 n ))4 is simply the sequence * 2((~ n ))4 rotated coun
terclockwise by one unit in time as illustrated in Fig. 5.8(c). This rotated sequence
multiplies x\ (n) to yield the product sequence, also illustrated in Fig. 5.8(c). Finally,
we sum the values in the product sequence to obtain *3(1). Thus
* 3d) = 16
F or m = 2 we have
3
*3(2) = E
Xl (n )*2((2 - n ))
n0
Now *2 ((2 n ))4 is the folded sequence in Fig. 5.8(b) rotated two units of time in
the counterclockwise direction. The resultant sequence is illustrated in Fig. 5.8(d)
*|0) = 1
jr2( l) = 2
* ,(0) = 2
jri(2> - 2
*2(2) = 3
*2( 0 ) =1
(a)
jc2 ( 2 )
* 2( 0 ) = 1
=3
jc2(I) = 2
Folded sequence
Product sequence
(b)
x2(0) = 1
jr2(3 )= 4
x2(l) = 2
jc2(2> = 3
Folded sequence rotated by one unit in time
x 2( l )
(c)
=2
*2(2)= 3
*2(0) = 1
*2(3) = 4
Folded sequence rotated by two units in time
(d)
*j(2) = 3
*2(3) = 4
*j(0)=l
Folded sequence rotated by three units in time
Figure 5.8
Product sequence
(e)
Sec. 5.2
419
along with the product sequence x l (n)xi((2 - n))A. By summing the four term s in the
product sequence, we obtain
* j ( 2 ) = 14
For m = 3 we have
3
X30 ) = y^xi(n)x;((3 - n ) ) 4
i,=Q
The folded sequence X2((n))4 is now rotated by three units in time to yield jc2(<3n))4
and the resultant sequence is multiplied by *j(n) to yield the product sequence as
illustrated in Fig. 5.8(e). The sum of the values in the product sequence is
x 3( 3) = 16
Xi<*) = Y Xl
ft-0
k = 0 ,1 ,2 ,3
420
Chap. 5
Thus
*1(0) = 6
JCid) = 0
Jlf,(2) = 2
A'1(3) = 0
The D FT o f Jt2(n) is
3
X 2(.k) = Y
fl0
k = 0 ,1 ,2 ,3
Thus
X2(0) = 10
X 2a ) = - 2 + j 2
X2( 2 ) = - 2
X 2Q) = - 2 - j 2
* 3(1) = 0
X3( 2 ) = - 4
Xj (3) = 0
n = 0, 1, 2, 3
= j(6 0 - 4eJn)
Thus
j 3(0> = 14
jc3(1)
= 16
x3(2) = 14
;c3(3) = 16
which is the result obtained in Exam ple 5.2.1 from circular convolution.
W e conclude this section by form ally stating this im portant property o f the
DFT.
Circular co n v o lu tio n .
If
* i(n )
DFT
x m
and
then
DFT
(*)X 2(Jt)
(5.2.41)
w here x\ (n) (N) x2(n) d en o te s th e circular con volu tion o f the se q u en ce x i(n ) and
x%(n).
Sec. 5.2
421
42)
*6)
*(6)
jt(2)
If
DFT
th e n
x((-n))v = x ( N - n )
X ( ( - k ) ) N = X ( N - k)
(5.2.42)
= Y , x ( m ) e > 2*kmIN
m=0
= Y x ( m ) e - i2*m(N- k)/N = X ( N k)
m=0
W e n o te th a t X ( N - k) = X { ( - k ) ) N, 0 < k < N - l .
If
422
Chap. 5
th e n
* n - l))N
X ( k ) e ~ j2* k!/N
(5.2.43)
x ( ( n - l ) ) Ne~j2*kn/N = ] T
n0
rr=s()
=
x ( m ) e ' ^ k^
m=N-l
F urtherm ore,
y x { n - l ) e - J2,Tkn/N =
/=/
x ( m ) e - j2kim+IWN
T herefore,
N~ 1
DFT{jc(( - / ) ) } = ^ x{m)e~-'2xk(m+,)/N
m=0
= X ( k ) e ' ^ u/N
If
DFT
x( n)
X( k)
then
x ( n ) e j2*In/N 5 - X ( ( k - / *
(5.2.44)
H en ce, the m ultiplication o f the seq u en ce jc(/i) w ith the com p lex exp on en tial se
quence eP***1* is eq u ivalen t to th e circular shift o f the D F T by I u n its in frequency.
This is th e dual to the circular tim e-shifting p roperty and its p r o o f is sim ilar to the
latter.
Sec. 5.2
423
If
X(k)
jr(n) K
th e n
DFT
x\n)
* * ( ( - * ) ) * = * * ( * - k)
(5.2.45)
X * ( k ) e J2nkn/N =
*=o
T h e re fo re ,
x * ( ( - n ) ) N = x+( N - b)
Circular correlation.
A/
X'(k)
(5.2.46)
In g e n e ra l, fo r c o m p le x -v a lu e d se q u e n c e s x ( n ) and
V(n), if
DF!'
x(n)
/v
X(A-)
an d
v()
y<*)
th e n
FJV(/)
R ( k ) = X ( k ) Y r (k)
(5.2.47)
^ v (0 = ^ * ( n ) / ( ( n - l))N
F r o o / W e c a n w rite f*v(/) as th e circ u la r co n v o lu tio n o f x ( n ) w ith y*(n),
th a t is,
424
Chap. 5
If
jr,(n )
* ,( * )
x 2(n)
X 2(k)
and
then
x A n ) x 2(n) K
^ X ,( J t ) ( N ) X 2(*)
(5.2.49)
This property is the dual o f (5.2.41). Its p ro o f follow s sim ply by interchanging
the roles o f tim e and frequency in the exp ression for the circular con volu tion of
tw o sequ en ces.
Parsevals theorem.
eral, if
and
then
A N- 1
/V 1
/V 1
Jt(n)y*(n) = - X ( J t ) r (/:)
N *=0
n=0
(5-2 50)
^ x ( n ) y * ( n ) = r JV(0)
and
k~0
H en ce (5.2.50) fo llo w s by evalu atin g the ID F T at I = 0.
T he exp ression in (5.2.50) is th e gen eral form o f P arsevals theorem . In th e
sp ecial case w h ere ;y(n) = x ( n ) , (5.2.50) red u ces to
/11=0
\x{n)\2 = i
JtseO
|X ( * ) | 2
(5.2.51)
Sec. 5.3
TABLE 5.2
425
Property
Notation
Periodicity
Linearity
Time reversal
Circular time shift
Circular frequency shift
Complex conjugate
Circular convolution
Circular correlation
Multiplication of two sequences
Frequency Domain
x(n), yOi)
x (n) =s x(rt + iV)
a]Xi(n) + a2x 2(n)
x ( N n)
*((" - D) n
x(n)ei2jr,n/N
x "(n)
xi (n )@ jr2(n)
*<*), Y(k)
X( k) = X( k + N)
0\ Xi ( k) + a2X 2(k)
X(N - k )
X(k)e~J2*kl/N
X ((k-l))N
X*(N k)
xm xiik)
x (n ) y * (-n )
X(k) Y' ( k)
jri(n)x2(n)
/V1
Parsevals theorem
n=(!
*3=0
426
Chap. 5
0,
n <
and n > M
M- 1
h(k) x( n k )
(5.3.1)
Since h(n) and jc(n) are finite-duration seq u en ces, their con volu tion is also finite
in duration. In fact, the duration o f y( n) is L + M 1.
T h e frequency-dom ain equivalent to (5.3.1) is
Y(co) = X( w) H( ( o )
(5.3.2)
= X M H M U h t /N
k = 0 , 1 ,. . . , N 1
it = 0 ,1 ....... N - 1
then
Y(k) = X ( k ) H ( k )
Jfc = 0 , l , . . . , t f - 1
(5.3.3)
w h ere {X(Jfc)} and {f/(Jt)} are the N -p oin t D F T s o f th e corresp on d ing sequences
x( n) and h (n), resp ectively. Since the seq u en ces x ( n) and h ( n ) have a duration
less than N , w e sim ply pad th ese seq u en ces w ith zeros to in crease their length to
N. T his increase in th e size o f the seq u en ces d o e s n ot alter their spectra X(o>) and
H(a>), which are con tin u ou s spectra, sin ce the seq u en ces are ap eriod ic. H ow ever,
by sam pling their spectra at N equally sp aced p oin ts in freq u en cy (com p u ting the
JV-point D F T s), w e have increased the num ber o f sam p les that represent these
seq u en ces in the frequency dom ain b eyon d the m inim um n u m b er (L or M, re
sp ectively).
Sec. 5.3
427
Jkn/8
= 1 + 2e~W
X (4) = 0
X to -i+ J
XC7
k = 0 .1 ........7
428
Chap. 5
H(k) =
= 1 + 2e~J*k/* + 3>e- jnkr2
Hence
H(0) = 6,
H (l) = l + V 2 - > (3 + V 5 ) ,
H( 2 ) = - 2 - j 2
HO) = 1 - ^ 2 + > (3 - V 2 ) ,
H( 4) = 2
H(5) = 1 - 7 2 - y (3 - J 2 ) ,
H( 6) = ~2 + >2
W(7) = 1 + V2 + j ( 3 + J 2 )
The product of these two DFTs yields Y{k), which is
Y (0) = 36,
y(4) = 0,
Y (2) = >4
y (l) = - 1 4 .0 7 -> 1 7 .4 8
V(5) = 0.07 y 0.515
Y( 6) = ~ j 4
v(n) = Y
y(k)ej2nk"/H
n = 0, 1........7
*=0
This computation yields the Tesult
>() = (1 ,4 ,9 ,1 1 .8 ,3 ,0 ,0 }
t
We observe that the first six values of y(rt) constitute the set of desired output
values. The last two values are zero because we used an eight-point D FT and IDFT,
when, in fact, the minimum number of points required is six.
A lthough the m ultiplication o f tw o D F T s corresp on d s to circular convolution
in the tim e dom ain, w e have ob served that padding the seq u en ces x ( n ) and h(n)
with a sufficient num ber o f zeros forces the circular con volu tion to yield the sam e
output sequ en ce as linear con volu tion . In the case o f the F IR filtering problem
in E xam p le 5.3.1, it is a sim ple m atter to d em onstrate that the six-point circular
convolution o f the sequ en ces
h( n) = {1, 2 , 3 , 0 , 0, 0}
t
(5.3.4)
x ( n ) = {1 ,2 , 2 , 1 , 0 , 0}
t
(5.3.5)
(5.3.6)
Sec. 5.3
429
t*)jre.-jink*!*
H(k) = ^ A (fi n\
'
ff-0
H(k) = \ + 2 e - ink/1 + 3 e - ikn
k = 0 ,1 ,2 , 3
Hence
H(0) = 6,
H( \ ) = - 2 - j 2 ,
H( 2) = 2,
H ( 3 ) = - 2 + j2
k = 0, 1, 2, 3
Hencc
*(()) = 6,
X (l) = - l - j ,
X(2) = 0,
Jf(3) = 1 + y
f ( l ) = ;4 ,
Y( 2) = 0.
K(3) = ~ j 4
= 0 , 1 ,2 ,3
430
Chap. 5
A ll other aliasing has n o effect since y(n ) = 0 for n > 6 . C on sequ en tly, w e have
y ( 2) = y ( 2) = 9
y(3) = y(3) = 1 1
T h erefore, on ly the first tw o p oints o f y ( n ) are corrupted by th e effect o f aliasing
[i.e., y(0) 7^ y(0) and v( l ) ^ y (l)]. T his observation has im portan t ram ifications
in the discussion o f the follow in g section , in which w e treat th e filtering o f long
sequ en ces.
k = 0 , 1 .........N - 1
(5.3.7)
(5.3.8)
Sec. 5.3
431
Sin ce the data record is o f length N, the first Af 1 p oin ts o f >m(n) are corrupted
by aliasing and m ust be discarded. T h e last L p oints o f y( n) are exactly the sam e
as the result from linear con volu tion and, as a con seq u en ce,
>(n) = y( n) , n = M, M + 1.........N - 1
(5.3.9)
(5.3.10)
M 1 points
x2(n) = {x ( L - M + 1).........x ( L 1 ) , x ( L ) , . . . , x ( 2 L - l) j
M - 1 data points
from i|(n)
(5.3.11)
(5.3.12)
and so forth. T h e resulting data sequ en ces from the ID F T are given by (5.3.8),
w here the first M 1 points are discarded due to aliasing and the rem aining L
p oin ts con stitute the d esired result from linear con volu tion . T h is segm en tation o f
th e input data and the fitting o f the output data blocks togeth er to form the output
seq u en ce are graphically illustrated in Fig. 5.10.
Overlap-add method. In this m eth od the size o f the input data block is L
p oin ts and the size o f th e D F T s and ID F T is N ~ L + Af - 1. T o each data block
w e append Af 1 zeros and com p ute the N -point D F T . T h u s the data b lock s may
be rep resen ted as
jti(n) = {jc(0),
- 1 ) , 0 , 0 _____0}
M -l
(5.3.13)
zeros
(5.3.14)
M-1 zeros
(5.3.15)
zeros
* = 0 , 1 .........N - 1
(5.3.16)
T h e ID F T y ield s data blocks o f length N that are free o f aliasing sin ce the size o f
th e D F T s and ID F T isW = Z, + Af 1 and the seq u en ces are increased to N -p oin ts
b y ap p en d in g zero s to each block.
432
Chap. 5
Output signal
points
/
Discard
Pints
Since each data block is term inated with M 1 zeros, the last M 1 points
from each output block m ust be overlap p ed and added to the first M - 1 p oin ts of
the succeeding block . H en ce this m eth od is called th e overlap-add m ethod. This
overlapping and adding yields the output seq u en ce
y ( ) = {y i(0 ), ^ i ( l ) , . . . , y \ ( L - l ) , y i ( L ) + y2(0 ), ^ ( L + 1) +
(5.3.17)
>2( 1 ) .........y \ ( N - 1) + y i ( M 1), y 2 ( M ) , . . . }
T he segm en tation o f the input data in to b lock s and th e fitting o f th e output data
blocks to form the output seq u en ce are graphically illustrated in F ig. 5.11.
A t this poin t, it m ay appear to the reader that th e use o f th e D F T in linear
F IR filtering is n ot o n ly an indirect m eth od o f com puting the o u tp u t o f an FIR
filter, b ut it m ay a lso be m ore exp en sive com p utationally since th e input data must
first b e converted to the frequency d om ain via th e D I T , m ultip lied by th e D F T
o f th e F IR filter, and finally, converted back to th e tim e d om ain via the ID FT.
O n th e contrary, h ow ever, by using the fast F ourier transform algorithm , as will
b e show n in C hapter 6, th e D F T s and ID F T require few er com p utations to com
pu te th e output seq u en ce than th e direct realization o f the F IR filter in the time
Sec. 5.4
433
Input data
\
MA
Output data
together
dom ain. This com putational efficiency is the basic advantage o f using the D F T to
com p ute the output o f an F IR filter.
434
Chap. 5
is the sam ple interval. A s w e shall ob serve in the follow in g d iscu ssion , the finite
observation interval for the signal places a limit on the freq u en cy resolution; that
is, it lim its our ability to distinguish tw o frequency com p on en ts that are separated
by less than 1 /To = 1/Z-7" in frequency.
L et {*()} d en o te the seq u en ce to b e analyzed. L im iting th e duration o f the
seq u en ce to L sam ples, in the interval 0 < n < L 1, is eq u ivalen t to m ultiplying
{jc(/i)} by a rectangular w indow w ( n ) o f length L. That is,
x (n) = x ( n ) w ( n )
(5.4.1)
w h ere
u;w
= {J ;
, v,,
0
< n < L - 1
otherw ise
(5.4.2)
N ow su p p ose that the sequ en ce x ( n ) consists o f a single sin u soid , that is,
x( n ) = coscoon
(5.4.3)
(5.4.4)
where W(a>) is the Fourier transform o f the w indow seq u en ce, w h ich is (for the
rectangular w indow )
W{0}) =
D/2
sin(df/ 2 )
(5.4.5)
T o com pute X(a>) w e use the D F T . B y padding the seq u en ce x ( n ) w ith N L zeros,
we ca n c o m p u te the N -point D F T o f the truncated (L p oin ts) seq u en ce {Jt(n)J.
T he m agnitude spectrum |A W I = |X(t*) | for o* = 2 n k / N , k = 0, l , . . . , A f , is
illustrated in Fig. 5.12 for L = 25 and N = 2048. W e n ote that the w indow ed
spectrum X((o) is n ot localized to a single frequency, but instead it is spread out
over the w h ole frequency range. Thus the p ow er o f the origin al signal sequence
{jr(n)} that was concentrated at a single frequency has b een spread by the window
into the entire freq u en cy range. W e say that the p ow er has lea k ed o u t in to the
entire frequency range. C onsequently, this p h en om en on , which is a characteristic
o f w indow ing the signal, is called leakage.
Frequency
Sec. 5.4
435
(5.4.6)
(5.4.7)
(5.4.8)
Magnitude
x ( n ) = costuo n + cos
Frequency
Frequency
(a)
<b)
(c)
Figure 5.13 Magnitude spectrum for the signal given by (5.4.8), as observed through a
rectangular window.
436
Chap. 5
0 < n < i. 1
0,
otherw ise
(5.4.9)
Figure 5.14 show s |A"(<y)| for the w indow o f (5.4.9). Its sid elo b es are significantly
sm aller than th o se o f the rectangular w in d ow , but its m ain lob e is approxim ately
tw ice as w ide. Figure 5.15 sh ow s the spectrum o f the signal in (5.4.8), after it is
w indow ed by the H anning w indow , for L = 50, 75, and 100. T h e reduction o f
the sid elo b es and th e d ecrease in the resolu tion , com pared with the rectangular
w indow , is clearly evident.
For a general signal seq u en ce ljr(n)}, the frequency-dom ain relationship be
tw een the w indow ed seq u en ce i ( n ) and the original seq u en ce x ( n ) is given by the
con volu tion form ula
(5.4.10)
T h e D F T o f the w in d ow ed seq u en ce x( n) is the sam pled version o f the spectrum
X(a>). T hus w e have
X( k ) = X ( ) U W
(5.4.11)
k = 0,1,..., N - 1
Just as in the case o f th e sinusoidal seq u en ce , if the spectrum o f th e w indow is
relatively narrow in w idth com pared to the spectrum X (to) o f th e signal, the win
dow function has o n ly a sm all (sm ooth in g) effect on the spectrum X (w). O n the
other hand, if the w in d ow function has a w ide spectrum com pared to the w idth of
6
25
0
Frequency
437
Magnitude
Sec. 5.4
L = 100
; 6
-r
- T
Frequency
(O
Figure 5.15 Magnitude spectrum of the signal in (5.4.8) as observed through a Hanning
window.
X(a>), as w ould b e the case w hen the num ber o f sam ples L is sm all, the w indow
spectrum m asks the signal spectrum and, con sequ en tly, the D F T o f the data re
flects th e spectral characteristics o f the w in d ow function. O f course, this situation
should b e avoided.
Example 5.4.1
The exponential signal
*..(0
H r
t >o
t <0
is sampled at the rate F, = 20 samples per second, and a block of 100 samples is used
to estimate its spectrum. Determine the spectral characteristics of the signal x(t) by
computing the DFT of the finite-duration sequence. Compare the spectrum of the
truncated discrete-time signal to the spectrum of the analog signal.
Solution
1
1 + ;2 jtF
The exponential analog signal sampled at the rate of 20 samples per second yields
438
Chap. 5
the sequence
x(n) = <r"r = c - '/ 20,
n > 0
Now, let
0 < n < 99
(0.95)",
0,
otherwise
The A/-point D F T of die L = 100 point sequence is
99
X(k) = Y
i<-n '>e~i2*k/N
* = 0 ,1 ........A ' - l
1.0
0.8
0.6
0.4
0.2
(a)
_
-5 0
-4 0
-3 0
-2 0
-1 0
JL
0
i
10
20
30
40
50
(b)
Figure 5.1ti Effect o f windowing (truncating) the sampled version o f the analog
signal in Example 5.4.1.
Sec. 5.4
439
(d)
(*)
Figure 5.16 Continued
In this case the D FT {X (Jt)} bears a close resem blance to the spectrum of the analog
signal. The effect of the window function is relatively small.
O n the other hand, suppose that a window function of length L = 20 is selected.
T hen the truncated sequence x(n) is now given as
.() _ [ ( - 95)"1 0,
0 < n < 19
otherwise
440
Chap. 5
Its N = 200 point DFT is illustrated in Fig. 5.16(e). Now the effect of the wider
spectral window function is dearly evident. First, the main peak is very wide as a
result of the wide spectral window. Second, the sinusoidal envelope variations in the
spectrum away from the main peak are due to the large sidelobes of the rectangular
window spectrum. Consequently, the DFT is no longer a good approximation of the
analog signal spectrum.
PROBLEMS
5.1 The first five points of the eight-point DFT of a real-valued sequence are (0.25,
0.125 - j 0.3018, 0, 0.125 - y0.0518, 0}. Determine the remaining three points.
5.2 Compute the eight-point circular convolution for the following sequences.
(a) *,() = (1,1,1,1,0,0,0,0}
. 3jt
x2(n) = sin -n
8
_
0 < n < 7
0 <n <7
3n
.
_
*2(n) = cos n
0< n < 7
O
(c) Compute the DFT of the two circular convolution sequences using the DFTs of
*i(n) and X2 (n).
Jt <
y /ia _ f
{)
1 0,
and we compute the inverse //-point DFT of X(k), 0 < k < N - 1. What is the effect
of this process on the sequence x ()? Explain.
Chap. 5
441
Problems
jc2() = sin
0 <n <N - 1
0 < n < N 1
x 2(n) = sin n
0 < n < N 1
N
N
(c) *](n) = 6(n) + 5(n - 8)
*2() = ( ) - u(n - N)
0 < n < N 1
5.7 If X (Jt) is the D FT of the sequence *(n), determ ine the Af-point D FTs of the sequences
2nkn
xc(n) x(n) c o s ------N
. . .
0< n < N - 1
. 2nkn
x,(n) = x ( n ) sin
Ar
0 < n < N 1
and
in terms of X (Jt).
5.8 Determine the circular convolution of the sequences
*i(n) = {1,2,3,1}
t
x2(n) = {4,3,2,2}
t
using the time-domain formula in (5.2.39).
5.9 Use the four-point DFT and IDFT to determine the sequence
X3(n) = *i(n)()*2(*)
where xi(n) and x 2(n) are the sequence given in Problem 5.8.
5.10 Compute the energy of the N -point sequence
442
Chap. 5
1.
0,
0 <n < 3
4 <n < 7
k = 0 .1 ........6
(b) D eterm ine the sequence y(n) with six-point D FT K(jt) = Re |X(A)|.
(c) Determ ine the sequence u(w) with six-point D FT V(k) = Im |X(A-)|.
5.13 Let x p(n) be a periodic sequence with fundamental period N. Consider the following
DFTs:
DFT
x p(n) * * *,(*)
N
x ()
D FT
3^
X ,(k)
x 2(n) = {0 ,1 ,0 ,0 .0 ]
t
s(n) = {1. 0, 0 .0 ,0 )
t
The output y(n) of the system is known for 0 < n < 63. Assuming that H(z) is
available, can you develop a 64-point DFT method to recover the sequence x{n),
0 < n < 63? Can you recover all values of x(n) in this interval?
5.16* The impulse response of an LTI system is given by h(n) = S(n) - ji(n - /to). To
determine the impulse response g(n) of the inverse system, an engineer computes the
Af-point D FT H(k), N = 4ko, of h(n) and then defines g(n) as the inverse DFT of
Chap. 5
443
Problems
N
n = 0 , 1 ........y - 1
that is, the upper half of the sequence is the negative of the lower half.
(a) Show that
X (k) = 0
k even
(b) Show that the values of this odd-harmonic spectrum can be computed by evaluat
ing the A/2-point DFT of a complex modulated version of the original sequence
x(n).
5.21 Let x(t) be an analog signal with bandwidth B = 3 kHz. We wish to use a N = 2"point DFT to compute the spectrum of the signal with a resolution less than or equal
to 50 Hz. Determine (a) the minimum sampling rate, (b) the minimum number of
required samples, and (c) the minimum length of the analog signal record.
444
Chap. 5
oo < n < oo
x p(n) = COS n
(d) x(n)
0 < n < N 1
1,
, Q
0< n < N - 1
i
I
n even
) ^
10,
odd 0 < n < Af 1
5.24 Consider the finite-duration signal
x(n) = {1, 2, 3, 1}
(a) Compute its four-point DFT by solving explicitly the 4-by-4 system of linear
equations defined by the inverse DFT formula.
(b) Check the answer in part (a) by computing the four-point DFT, using its defini
tion.
{ 1 ,2 ,3 ,2 ,1 ,0 1
0 < n < M 1
fv-00
0,
elsewhere
What is the relationship between the Af-point DFT K(Jt) of y(/i) and the Fourier
transform X(w) of x(n)?
Chap. 5
Problems
445
(b) Let
0 < n < N 1
J x (n ) + x ( n + ~ l '
(-*?)
I 0,
elsewhere
and
y(n)
DFT
K(Jt)
N/l
|n| > L
X (w )=
\N
for N = 30.
(d) D eterm ine and plot the signal
x(n) =
*=o
W hat is the relation between the signals x(n) and x ( n)l Explain.
(e) Com pute and plot the signal ii(n ) =
X x(n - IN), - L < n < L for N = 30.
Com pare the signals x(rt) and X](n).
(f) R epeat parts (c) to (e) for N = 15.
5.29* Frequency-domain sampling The signal x(n) = a 1"1, - 1 < a < 1 has a Fourier
transform
X(w) =
1
1 2a cos <o + a2
446
(a)
(b)
(c)
(d)
(e)
Chap. 5
T he discrete-time
Sketch the signals jr(n), xc(/i), and *m(n), 0 < n < 255.
Com pute and sketch the 128-point D FT of the signal
0 < n < 127.
Compute and sketch the 128-point D FT of the signal xtm(n), 0 < n < 99.
Com pute and sketch the 256-point D FT of the signal jcani{n), 0 < n < 179.
Explain the results obtained in parts (b) through (d), by deriving the spectrum of
the am plitude-m odulated signal and comparing it with the experim ental results.
5.31* The sawtooth waveform in Fig. P5.31 can be expressed in the form of a Fourier series
as
)
(a) D eterm ine the Fourier series coefficients c*.
(b) Use an N -point subroutine to generate samples of this signal in the time domain
using the first six term s of the expansion for N 64 and N = 128. Plot the signal
x(f) and the samples generated, and com m ent on the results.
Figure P531
5 3 2 Recall that the Fourier transform of x (r) = eJ0* is X ( j i 2) = 2jtS(2 - i2o) and the
Fourier transform of
0 < t < To
otherwise
is
e-jOT<i/l
Chap. 5
Problems
447
x ( n ) w N (n)
e iw " u i s ( n )
p a positive integer
and
y(n) = w N(n)x(n)
where N = IP, I a positive integer. Determ ine and sketch the N-point D FT of
y(n). R elate your answer to the characteristics of |K{w)|.
Is the frequency sampling for the D FT in part (d) adequate for obtaining a rough
approxim ation of |K(w)| directly from the magnitude of the D FT sequence |K(/t)|?
If not. explain briefly how the sampling can be increased so that it will be possible
to obtain a rough sketch of |K(o)| from an appropriate sequence |y (Jt) | .
Sec. 6.1
449
le n g th N , a c c o rd in g to th e fo rm u la
N- 1
* (* ) = V
Jt(n) W N
kn
0 < k < N -l
(6.1.1)
w h ere
WN = e - }7* ,N
(6.1.2)
0 < n < N I
(6.1.3)
Wk
N+N/2 = W N
L
(6.1.4)
W#+N = W N
k
(6.1.5)
|* * ( n ) c o s ^ ~ p - + x / ( n ) s i n ^ ^ - j
Xi(k) = - Y
|x ,f ( n ) s in
- x , ( n ) co s
(6.1.6)
(6.1.7)
450
Chap. 6
3. AN ( N 1) real additions.
(6.1.8)
T h e assum ption that N is not a prim e num ber is n ot restrictive, sin ce w e can pad
any sequ en ce with zeros to ensure a factorization o f the form ( 6 . 1 .8 ).
N o w the seq u en ce j ( n ) , 0 < n < N 1, can be stored in either a one
dim ensional array in d exed by n or as a tw o-d im en sion al array in d exed by I and
m, w here 0 < / < L 1 and 0 < m < A / - l a s illustrated in Fig. 6.1. N o te that / is
the row index and m is the colum n index. T hus, the se q u en ce x (n ) can b e stored
in a rectangular array in a variety o f w ays, each o f which d ep en d s on the mapping
o f index n to the in d exes (/, m).
For exam p le, su p p ose that w e select the m apping
n = Ml + m
(6.1.9)
T his leads to an arrangem ent in which the first row consists o f th e first M elem ents
o f x ( n ) , the secon d row consists o f the n ext M elem en ts o f x ( n ) , and so on, as
illustrated in Fig. 6.2 (a ). O n the other hand, the m apping
n l + mL
(6.1.10)
stores the first L elem en ts o f x ( n ) in the first colu m n, the n ext L elem en ts in the
second colum n, and so on , as illustrated in Fig. 6.2(b ).
A sim ilar arrangem ent can be u sed to store th e com p u ted D F T valu es. In
particular, the m apping is from the in d ex it to a pair o f in d ices (p , q), where
0 < p < L 1 and 0 < q < M 1. If w e se lect the m apping
k Mp
(6 .1 .1 1 )
Sec. 6.1
451
...
x(\)
M2)
- 1
JcCW-1)
(a)
column index
row index
*(0,0)
x(0,1)
* 1 .0 )
* 1 ,1 )
*(2,0)
*2,1)
Af-1
L- 1
(b)
Figure 6.1
N -l.
x(n).
0 < n
the D F T is stored on a row -w ise basis, w here the first row contains the first M
elem en ts o f the D F T X ( k ) , the second row contains the next set of M elem en ts,
and so on . O n the other hand, th e m apping
(6 . 1. 12)
k = qL + p
results in a colu m n-w ise storage o f X (Jt), w here the first L elem en ts are stored in
the first colu m n, th e secon d se t o f L elem en ts are stored in the secon d colum n,
and so on.
N o w su p p ose that x ( n) is m apped in to the rectangular array x ( l , m ) and X( k )
is m app ed in to a corresp on d ing rectangular array X ( p , q). T h en the D F T can be
exp ressed as a d o u b le sum o ver th e elem en ts o f the rectangular array m ultiplied
b y th e corresp on d ing p h ase factors. T o b e specific, let us ad op t a colum n-w ise
m apping fo r x ( n ) g iven by (6.1.10) and th e row -w ise m apping for the D F T given
by (6.1.11). T hen
(6.1.13)
^M L rnp ^m L q
(6.1.14)
= W[l
452
Chap.
Ml + m
M- 1
0
*0)
MM)
M 2M )
*2)
M D
MM
+ 1)
M 2M +
1)
M M + 2)
M 2M
1)
M M -
+ 2)
M2M
- 1)
M 'iM -
1)
x{L M -
1)
(a)
Column-wise
M- 1
0
MO )
jt(1)
M L+
M2)
M L + 2)
L -l
x(L
- I)
M U -
x((M
M 2L)
ML)
1)
1)
x(2L
+ 1)
M 2 L + 2)
M IL
- 1)
x((M -
1) L )
I )L + 1)
M (M -l)L + 2 )
MLM -
1)
(b)
(6.1.15)
^|R0
0 < q < M - 1
( 6 .1 .1 6 )
Sec. 6.1
453
(6.1.18)
N ( M + L + 1)
C om plex additions:
N ( M + L 2)
(6.1.19)
w here N = M L . T hus the num ber o f m ultiplications has b een reduced from N 2
to N ( M + L + 1 ) and the num ber o f additions has b een reduced from N ( N 1) to
N ( M + L 2).
For exam p le, suppose that N = 1000 and w e select L = 2 and M = 500.
T h en , instead o f having to perform 106 com p lex m ultiplications via direct com pu
tation o f the D F T , this approach leads to 503,000 com p lex m ultiplications. This
rep resents a reduction by approxim ately a factor o f 2. T h e num ber o f additions is
also red u ced by ab ou t a factor o f 2.
W h en N is a highly com p osite num ber, that is, N can be factored in to a
product o f prim e num bers o f th e form
N = r\ r 2 - r v
(6.1.20)
then the d ecom p osition ab ove can b e rep eated (v - 1 ) m ore tim es. T his procedure
results in sm aller D F T s, w hich, in turn, lead s to a m ore efficient com putational
algorithm .
In effect, th e first segm en tation o f th e seq u en ce x ( n ) in to a rectangular array
o f M colu m ns w ith L elem en ts in each colu m n resu lted in D F T s o f sizes L and M .
Further d eco m p o sitio n o f th e data in effect in volves th e segm en tation o f each row
(or colu m n ) into sm aller rectangular arrays w hich result in sm aller D F T s. This
p roced u re term inates w h en N is factored in to its prim e factors.
Example 6.1.1
To illustrate this computational procedure, let us consider the computation of an
N = 15 point DFT. Since N = 5 x 3 = 15, we select L = 5 and M = 3. In other
454
Chap. 6
1:
2:
3:
4:
5:
*(0, 0)
*(1,0)
*(2,0)
*(3,0)
* (4,0)
= *(0)
= * (1 )
= * (2 )
= * (3 )
= * (4 )
*(0.1)
*(1, 1)
x ( 2 , 1)
*(3,1)
*(4,1)
= * (5 )
= jc(6)
= x(7)
= * (8 )
= * (9 )
*(0, 2) = *(10)
*(1,2) = *(11)
x(2,2)=x(12)
*(3,2) = .r{13)
*(4,2) = *(14)
Now. we com pute the three-point DFTs for each of the five rows. This leads
to the following 5 x 3 array:
F(0, 0)
F a , o)
F( 2. 0)
F(3, 0)
F(4. 0)
F (O .l)
F O .l)
F( 2,1)
FO. 1)
F (4.1)
F( 0.2)
F (1.2)
F( 2.2)
FO- 2)
F( 4.2)
The next step is to multiply each of the terms F(l, q) by the phase factors
= M/jj. 0 < / < 4 and 0 < q < 2. This computation results in the 5 x 3 array:
Column 1
Column 2
Column 3
G (0.0)
G (1,0)
G(2, 0)
G (3.0)
G (4 .0)
C(0. 1)
C ( l.l)
C(2. 1)
G (3 ,1)
G (4 .1)
C (0.2)
G (l. 2)
C ( 2 .2)
G (3 .2)
G (4.2)
The final step is to com pute the five-point DFTs for each of the three columns.
This com putation yields the desired values of the D FT in the form
X (0.0)
X (1,0)
X (2.0)
X (3,0)
X (4,0)
=
=
=
=
=
X(0)
X(3)
X (6)
X (9)
X (12)
X (0 ,1) =
X (1.1) =
X (2 .1) =
X (3,1) =
X (4,1) =
X (l)
X (4)
X(7)
X(10)
X (13)
X (0,2)
X (1,2)
X (2,2)
X (3 ,2)
X (4 ,2)
=
=
=
=
=
X(2)
X(5)
X(8>
X ( ll)
X(14)
Sec. 6.1
455
Figure 63
DFTs.
segm entation of the one-dim ensional array into a rectangular array and the order in
which the D FTs are com puted. This shuffling of either the input data sequence or
the output D FT sequence is a characteristic of most FFT algorithms.
T o sum m arize, the algorithm that w e have introduced in volves the follow in g
com putations:
Algorithm 1
1. S tore the signal colu m n-w ise.
2. C om pute the Af-point D F T o f each row.
3. M ultiply the resulting array by the p h ase factors
4. C om p ute the L -point D F T o f each colum n
5. R ea d the resulting array row -w ise.
A n additional algorithm with a sim ilar com putational structure can b e o b
tained if th e input signal is stored row -w ise and the resulting transform ation is.
colu m n-w ise. In this case w e select as
n = Ml + m
k
(6.1.21)
= qL + p
This ch o ice o f in d ices lead s to the form ula for the D F T in the form
X {p ,q )
= * (/,
msO 1*0
(6. 1.22)
M- l
= E > c
Thus w e obtain a secon d algorithm .
urmp
WN
456
Chap. 6
A lg o rith m 2
1. S to re th e sig n al row -w ise.
2. C o m p u te th e L -p o in t D F T a t each co lu m n .
3. M u ltip ly th e re su ltin g a rra y by th e fa c to rs W%m.
4. C o m p u te th e A f-point D F T o f e a c h row .
5. R e a d th e re su ltin g a rra y colum n-w ise.
T h e tw o a lg o rith m s given a b o v e h a v e th e sa m e c o m p lex ity . H o w e v e r, they
d iffer in th e a rra n g e m e n t o f th e c o m p u ta tio n s. In th e follow ing se c tio n s w e exploit
th e d iv id e -a n d -c o n q u e r a p p ro a c h to d e riv e fast a lg o rith m s w h e n th e size o f the
D F T is re stric te d to b e a p o w e r o f 2 o r a p o w e r o f 4.
N
n = 0 ,1 ,..., ~ 1
(6.1.23)
T h u s f i ( n ) a n d f j ( n ) a re o b ta in e d by d e c im a tin g x ( n) b y a f a c to r o f 2, a n d hence
th e re su ltin g F F T a lg o rith m is called a d e c im a tio n -in -tim e a lg o rith m .
N o w th e Af-point D F T c a n b e e x p re ss e d in te rm s o f th e D F T s o f th e deci
m a te d se q u e n c e s as follow s:
A'-l
X(k) = Y x ^
n*0
wn
* = 0 ,1 ,..., A f-1
Sec. 6.1
x (n )H # + 5 3
n even
(6.1.24)
n odd
<W/2)-l
(Af/2)-l
=
B ut
457
x(k)=
5 3
(N/2)l
M m )w *ra + K
= fi(Jfc) + W * f 2(*)
it = 0 , 1 , . . . , W - l
= F , ( * ) - < F 2(/:)
* = 0 , 1 .........~ 1
(6.1.26)
* = 0 , 1 ....... y - 1
(6.1.27)
* = 0 ,l,...,y - l
G 2 (k) = W N
l F2 (k)
* = 0 , l , . . . , y 1
T h e n th e D F T X (it) m ay b e ex p re sse d as
X ( k ) = G x(k) + G 2 (k)
it = 0 , 1 ____ y - 1
(6.1.28)
X(k + j )
= G x( k ) - G 2 (k)
* = 0 , 1 .........y - 1
458
* 0 ) x{2) x(4)
Chap. 6
JrW -2)
N
= 0 , 1 ................... 1
4
n = 0, 1.........j
(6.1.29)
- 1
an d f 2 (n) w o u ld yield
V2\(n) = f 2 (2 n)
N
n = 0, 1......... - 1
4
V22(n) = /2(2n + 1)
N
n = 0 , 1......... - 1
(6.1.30)
k = 0 ,1 ,
1
(6.1.31)
Fx (* + t ) = Vl1{k) - KpynW
F 2 (k) = V21(*) + W N
k / 2 V22(k)
k=
1..... 7 - 1
k = 0 ,1 ,..., J
- 1
(6.1.32)
F2 ( * + j )
= V2i (*) -
N
k = 0, . , , , j - l
where the (Vi; (jt)} are the ///4 -p o in t D F T s o f th e seq u en ces {u,;(n)}.
Sec. 6.1
459
TABLE 6.1
Number of
Points,
N
Complex Multiplications
in Direct Computation,
N2
Complex Multiplications
in FFT Algorithm,
(JV/2) log2 N
Speed
Improvement
Factor
4
8
16
32
64
128
256
512
1,024
16
64
256
1,024
4,096
16,384
65,536
262.144
1,048,576
4
12
32
80
192
448
1,024
2,304
5,120
4.0
5.3
8.0
12.8
21.3
36.6
64.0
113.8
204.8
460
Stage 2
Chap. 6
Stage 3
X (0 )
X(l)
X(2)
X(3)
X(4)
X{5)
*(6)
X p )
finally, o n e eigh t-p oin t D F T . T he com bination o f the sm aller D F T s to form the
larger D F T is illustrated in Fig. 6. 6 for N = 8 .
O bserve that the basic com putation perform ed at every stage, as illustrated
in Fig. 6 .6 , is to take tw o com p lex num bers, say th e pair (a, b), m ultiply b by W N
r,
and then add and subtract the product from a to form tw o new com p lex numbers
(A, B ). This basic com putation, which is show n in Fig. 6.7, is called a butterfly
b ecau se the flow graph resem bles a butterfly.
In general, each butterfly involves on e com p lex m ultiplication and tw o com
plex additions. F or N = 2 V, there are N f l butterflies per stage o f th e com putation
p rocess and log 2 N stages. T h erefore, as previously indicated th e total num ber of
com plex m ultiplications is ( N f l ) log 2 N and com p lex additions is Arlog 2 N .
O nce a butterfly operation is perform ed on a pair o f com p lex num bers (a, b)
to p roduce ( A , B ) , there is no n eed to 'sa v e the input pair ( a , b ) . H en ce w e can
>A = a + W^b
B=a-Wt/b
Sec. 6.1
461
X (k) =
N- 1
x( n)W *? + Y
x(n)W %
(6.1.33)
Since WN/2 = (1)*, the exp ression (6.1.33) can b e rew ritten as
(6.1.34)
462
Chap. 6
Data
decimation 1
Memory
Memory address
(decimal) (binary)
000
(ninino)
(0 0 0)
(0 0 1)
(0 1 0)
(0 1 1)
(1 0 0)
(1 0 !)
(1 1 0)
(1 1 1)
(/To"2 ()
(nnn in ;)
(0 0 0 )
(1 0 0 )
(0 0 1)
(1 0 1 )
(0 10)
(1 1 0 )
(0 1 1)
(1 1 1 )
-
-
-
*
-
-
(0 0 0 )
(1 0 0)
(0 10)
(t 10)
(0 0 1)
(1 0 1)
(0 1 1)
(1 1 ))
-
*
-
-
-*>
-*>
4
(b)
Figure 6Jt
x(n) + x
v tr k n
N/2
k = Q, 1 , . . . , y - 1
(6.1.35)
an d
(A 72)-l
X{2k + \) =
JV \"1
"
w h ere w e h av e u se d th e fact th a t Wf, = 'Wsp.-
N
* = 0 , 1 ......y - 1
(6.1.36)
Sec. 6.1
463
If w e d e fin e th e N /2 -p o in t se q u e n c e s gi ( n) a n d gz(n) as
g i( n ) = * ( ) + *
(6.1.37)
g 2 (n) = |* ( n ) - x
+ y^)
n = 0 , 1 , 2 .........J
- 1
th e n
(N/2)-l
x ( 2 k) =
s m K )2
n=0
(6.1.38)
(AT/2)1
& W WN/2
X (2* + l ) =
n=0
464
Chap. 6
A = a + b
wi,
B = ( a b)W f/
-
stages o f decim ation , w here each stage in volves N t l butterflies o f the type shown in
Fig. 6.10. C onsequently, the com putation o f the Af-point D F T via the decim ationin-frequency FFT algorithm , requires ( N / 2) iog 2 N com p lex m ultiplications and
N lo g 2 N com p lex additions, just as in the d ecim ation -in-tim e algorithm . For il
lustrative purposes, the eight-point d ecim ation-in-frequency algorithm is given in
Fig. 6.11.
W e observe from Fig. 6.11, that the input data x ( n ) occurs in natural order,
but the output D F T occurs in bit-reversed order. W e also n ote that the com puta
tions are perform ed in place. H ow ever, it is p ossib le to reconfigure the decim ationin-frequency algorithm so that the input seq u en ce occurs in bit-reversed order
w hile the output D F T occurs in norm al order. F urtherm ore, if w e abandon the
requirem ent that the com putations b e d on e in place, it is also p ossib le to have
both the input data and the output D F T in norm al order.
Figure 6.11
N=
Sec. 6.1
465
* ( /> . ) =
[w ^F il'q ^W ?
0 ,1 .2 .3
(6.1.39)
F(l.q)=
mq
x ( l - n i ) W N/A
I = 0 .1 , 2. 3.
N
.........4 - 1
(6.1.40)
an d
(6.1.41)
x(l . m ) = x ( 4 m -j- /)
(N
X(p.q) = X / p + q
(6.1.42)
- 1 1 1 1
1
' j
-1
W F(0,<7)
j
1 - 1 1 - 1
Li j -i - j
WF(Lq)
W % F(2 ,q)
(6.1.43)
w l qF { X q )
466
Chap. 6
-1
0
1
.0
0
1
0
1
1
0
-1
0
0 -j
0
j
1
1
0
.0
0
0
1
1
1
-1
0
0
0
0
1
-1
w jjm g )
WqF(\,q)
W % F ( 2 .q)
(6.1.44)
lW *F(3,q).
467
X(p,q) =
Ip
C ( l , q) W' NfA
l
(6.1.45)
1=0
w here
q = 0 , 1 , 2, 3
G (l,q) =
w hF (l,
q)
(6.1.46)
i - 0 . 1 ......... - 1
4
and
q
F(l,q) = Y x ( l , m ) W ?
=0,1,2,3
N
/ = 0 , 1 , 2 , 3 .........- - 1
4
(6.1.47)
468
Chap. 6
X( k) = T x ( n ) W N
kn
n=0
=
JV/4-1
N/Z-1
3N/4-1
fif-l
x { n ) W kNn +
x{n)W%' +
* (* )< " +
x(n)W N
kn
n=0
n=N/4
n=Nfi
n=JN/4
Sec. 6.1
469
h= (I
=o
A'/4 1
E*("
A// 4t -- iI
A
< V/2 E
A/ N
'
\i \
N / A \
* ( + y ) <
+ < A'/4 E
'l \ ! \
A (" + t )
(6.1.48)
(6.1.49)
(jf
xa)=
x() + (
(6.1.50)
N
+ { -1 f x [ n + - J + ( ;)
W\
(6.1.51)
+? )
+a(', + i ) +j:(" + t
X (4k + l ) =
*( ) ~
ix
( +
0 urkn
w"w
N r r N /4
(6.1.52)
"j}
IV " w kn
N w yv/4
X ( 4 k + 2) =
T ; 1r
(
n \
E
* ( ) * ( + j J
- K
r
X ( 4 k + 3) =
(6.1.53)
' +t )
/
x (n '>+ J x ( " +
W 2" w
kn
w Nf4
\
J
~ x ( n ~h j ) - Jx (b+ t
(6.1.54)
) ] w^
kn
S/4
470
Chap. 6
(6.1.56)
- j [ x ( n + N / 4 ) - x( n + 3 N / 4 )]}
A74-1
(6.1.57)
+ j [ x ( n + N / 4 ) - x{ n + 3 N / 4 ) ] } W ^
T h u s th e N -p o in t D F T is d e c o m p o se d in to o n e N /2 -p o in t D F T w ith o u t ad d itio n al
tw id d le facto rs a n d tw o N /4 -p o in t D F T s w ith tw id d le facto rs. T h e /V-p o in t D F T
is o b ta in e d by su ccessiv e u se o f th e s e d e c o m p o s itio n s u p to th e la st stag e. T hus
w e o b ta in a d e c im a tio n -in -fre q u e n c y S R F F T alg o rith m .
F ig u re 6.15 sh o w s th e flow g ra p h fo r a n in -p la ce 3 2 -p o in t d ecim atio n in -freq u en cy S R F F T a lg o rith m . A t stag e A of th e c o m p u ta tio n fo r N = 32, the
Sec. 6.1
471
Figure 6,15 L ength 32 split-radix F F T algorithm s from p ap er by D uham el (1986); rep rin ted
w ith perm ission from the IE E E .
to p 16 p o in ts c o n s titu te th e se q u e n c e
go() = x ( n ) + x ( n + N / 2)
0 < n < 15
(6.1.58)
T h is is th e s e q u e n c e re q u ire d fo r th e c o m p u ta tio n o f X ( 2 k ) . T h e n e x t 8 p o in ts
c o n s titu te th e se q u e n c e
0<n<7
(6.1.59)
472
Chap. 6
82 (n) = x ( n + N / 4 ) x ( n + 3 N / 4 )
0 < < 7
(6.1.60)
<n<7
(6.1.61)
Sec. 6 .1
473
R adix
4
24
88
264
712
1,800
4.360
10.248
20
16
32
64
128
256
512
1,024
208
Radix
8
204
1.392
3.204
7,856
Real A dditions
Split
Radix
Radix
2
20
68
196
516
1.284
3.076
7,172
152
408
1.032
2.504
5,896
13.566
30.728
Radix
4
R adix
8
148
976
972
5,488
12,420
28.336
Split
Radix
148
388
964
2308
5.380
12.292
27,652
In s te a d , o n e can r e a rra n g e th e
474
Chap. 6
A '- l
* (") = 7 T ] C * (
*=0
(6' ll63)
Sec. 6.2
475
476
Chap. 6
0 < n < N 1
(6.2.1)
(6.2.2)
(6.2.3)
x(n)-x*(n)
*:() = ------- tt.--------
(6.2.4)
-] \ D F T [ x { n ) } + D F T [ x \ n ) } )
X 2(k) = j - \ D F T [ x ( n )] - DF T [ x * ( n ) ] )
(6.2.5)
(6.2.6)
(6.2.7)
(6.2.8)
T h u s, by p e rfo rm in g a single D F T o n th e co m p le x -v a lu e d se q u e n c e x ( n ), we
h av e o b ta in e d th e D F T o f th e tw o re a l se q u e n c e s w ith only a sm all a m o u n t of
a d d itio n a l c o m p u ta tio n th a t is involved in co m p u tin g Xi (Jt) a n d X 2 (k) fro m X(k)
by u se o f (6.2.7) a n d (6.2.8).
g(2 n)
(6.2.9)
*2(n) = g ( 2 n + 1)
Sec. 6.2
477
T h u s w e h a v e su b d iv id e d th e 2 N -p o in t re a l se q u e n c e in to tw o W -point real se
q u e n c e s. N o w w e can ap p ly th e m e th o d d escrib ed in th e p re c e d in g sectio n .
L et jc(n) b e th e A7-p o in t c o m p lex -v alu ed se q u e n c e
A-(n) = * i ( n ) + j x i i n )
(6 .2 .10)
F ro m th e re su lts o f th e p re c e d in g se ctio n , w e h av e
x m
= ^ [* (* ) + * * ( * - * ) ]
j
(6.2.11)
X 2(k) = [ X( k) - X * ( N - k)]
F inally, w e m u st ex p re ss th e 2/V -point D F T in te rm s o f th e tw o /V -point D F T s,
Xi(A) a n d X 2(k). T o acco m p lish this, w e p ro c e e d as in th e d e c im a tio n -in -tim e F F T
a lg o rith m , n am ely ,
N -1
N-1
C( k ) = s < 2 h ) H $ * + J 2 s ( 2 n + ^ W7 N ^ k
n=tl
n=0
N- l
N-1
=()
n=()
C o n s e q u e n tly ,
G( k ) = X t (k) + W i N X 2(k)
k = 0 . 1 ..........N - 1
( 6 . 2 . 12 )
G( k + N ) = X i ( k ) - W%N X 2(k)
k = Q . \ ..........N - l
478
Chap. 6
Sec. 6.3
479
COMPUTATIONAL COMPLEXITY
Size of FFT
i) log2 N
f(v)
Number of Complex Multiplications
per Output Point
9
10
11
12
14
13.3
12.6
12.8
13.4
15.1
480
Chap. 6
In d e e d , if w e d efin e the
(6.3.2)
m=0
(6.3.3)
(6.3.4)
(6.3.5)
Sec. 6.3
481
V i-(-l) = 0
(6.3.6)
(6'3 '7)
T h e d irect form II re a liz a tio n o f th e system illu stra te d in Fig. 6.17 is d e sc rib e d by
th e d iffe re n c e e q u a tio n
2:rk
v k(n) = 2 cos
v*.(zi 1) - vk(n - 2) + x( i t )
Vi(h) = vk in) - W N
k vk (n - 1)
(6.3.8)
(6.3.9)
482
Chap. 6
X i z k) = J 2 x ( n ) z r
* = 0 , 1 .........L - 1
(6.3.10)
n=0
For exam ple, if the contour is a circle o f radius r and the z* are N equally spaced
points, then
Zk = r e j 2*"/"
2=1
X ( z k) = J 2 i x M r ~n}e
n=0
k =
0, 1,2 ..... N - 1
(6.3.11)
n/N
k = 0 , 1 , 2 .........N - 1
In this case the FFT algorithm can be applied on the m odified seq u en ce x { n ) r ~ n.
M ore generally, suppose that the p oin ts z* in the z-plane fall on an arc which
begins at som e point
Zo
= r0eJlk
and spirals either in toward the origin or out away from the origin such that the
points
are defined as
zk = rQe je(Roei *)i
k = 0 ,1 ,..., L - 1
(6.3.12)
N o te that if R0 < 1, the points fall on a con tour that spirals tow ard th e origin and if
R0 > 1, the contour spirals away from the origin. If Ro 1, the con tou r is a circular
arc o f radius ro. If r0 = 1 and Ro = l , the con tour is an arc o f th e unit circle. The
latter contour w ould allow us to com p ute the frequency con ten t o f the sequence
x ( n ) at a dense set o f L freq u en cies in the range covered by the arc w ithout having
to com pute a large D F T , that is, a D F T o f the seq u en ce x ( n ) pad d ed with many
zeros to obtain the desired resolution in frequency. Finally, if r0 = Ro = 1,
= 0,
0o = 2n / N , and L = N , the contour is the entire unit circle and the frequencies
are those o f the D F T . T h e various contours are illustrated in Fig. 6.18.
W hen points {z*J in (6.3.12) are substituted in to the exp ression for the ztransform, w e obtain
* ( z t ) = X ! -* ( > z r i
n=0
n=
N-1
= j > ( n ) ( r 0e j * ) ~ V
(6.3.13)
Sec. 6.3
ImU)
lm (;l
Im(;)
483
n=0
Figure 6.18 Some examples of contours on which we may evaluate the ztransform.
w here, by definition.
V = R veJ^
(6.3.14)
W e can exp ress (6.3.13) in the form o f a con volu tion , by n oting that
nk = j[n 2 + k 2 (k n) 2]
(6.3.15)
X(C*) = V -
l ' Z /2
(6.3.16)
(6.3.17)
(6.3.18)
484
Chap. 6
T he sum m ation in (6.3.18) can be interpreted as the con volu tion o f the sequ en ce
g (n) with the im pulse resp onse h (n) o f a filter, where
h(n) = V n2/2
(6.3.19)
k = 0. 1.........L 1
(6.3.21)
W e observe that b oth h (n) and g(n) are com p lex-valu ed seq u en ces.
T he sequ en ce h (n) with R 0 = 1 has the form o f a com plex exp on en tial with
argum ent (on = n 2<(>o /2 = (n 0 o /2 )n. T h e quantity
rep resents the frequency
o f the com plex exp on en tial signal, which increases linearly with tim e. Such signals
are used in radar system s and are called chi rp signals. H en ce th e z-transform
evaluated as in (6.3.18) is called the chi rp-z t ransf orm.
T h e linear con volu tion in (6.3.21) is m ost efficien tly d on e by use o f the FFT
algorithm . T he seq u en ce g( n) is o f length N . H ow ever, h{n) has infinite du
ration. Fortunately, only a portion h{n) is required to co m p u te the L values
o f X (z).
Since w e will com p ute the con volu tion in (6.3.1) via the F FT, let us consider
the circular con volu tion o f the W-point seq u en ce g{n) with an M -p oint section of
/i(n), w here M > N . In such a case, w e k n ow that the first N 1 p oin ts contain
aliasing and that the rem aining M N + 1 p oints are identical to the result that
would b e obtained from a linear con volu tion o f h( n) with g(n). In view o f this, we
should select a D F T o f size
M - L + N - 1
which would yield L valid p oin ts and N - 1 points corrupted by aliasing.
T he section o f h(n) that is n eed ed for this com putation corresp on d s to the
values o f h{ri) for ( N - 1) < n < (L 1), which is o f length M = L + N 1, as
observed from (6.3.21). Let us define the seq u en ce h \{n ) o f length M as
/ii(n ) = h(n N -f 1)
n 0 , 1 .........M 1
(6.3.22)
and com p ute its Af-poin t D F T via the FFT algorithm to obtain H \ ( k ) . F rom x (n )
w e com p ute g ( n ) as specified by (6.3.17), pad g(n ) w ith L 1 zeros, and com
pute its Af-point D F T to yield G(Jfc). T h e ID F T o f th e product y i(* ) = G ( k ) H \( k )
yields the Af-point seq u en ce > i(n ), n = 0, 1 , . . . , Af 1. T h e first N 1 p oints of
y i( ) are corrupted by aliasing and are discarded. T h e desired valu es are yi(n)
f o r N 1 < n < M 1, w hich correspond to the range 0 < n < L l i n (6.3.21),
Sec. 6.3
485
that is,
y(n) = y t ( n + N 1)
n = 0, 1.........L 1
(6.3.23)
h (n),
h ( n ~ N - L + l),
< n < L 1
L < ti < M 1
(6.3.24)
n = 0, 1 , . . . , L 1
(6.3.25)
Finally, the com p lex valu es X(Zi) are com p uted by dividing y( k) by h ( k ),
k = 0, 1.........L 1, as specified by (6.3.20).
In gen eral, the com p utational com p lexity o f the chirp-z transform algorithm
described ab ove is o f the order of Af log 2 M com plex m ultiplications, where M =
N + L ~ 1. T h is num ber should be com pared with the product, N L, the num ber
o f com p utations required by direct evaluation o f the z-transform . Clearly, if L is
sm all, direct com p utation is m ore efficient. H ow ever, if L is large, then the chirp-z
transform algorithm is m ore efficient.
T h e chirp-z transform m eth od has b een im plem ented in hardware to com pute
the D F T o f signals. For the com putation of the D FT, w e select ro = /?(i = 1, 6\j = 0,
</>o = 2n / N , and L = N. In this case
y-ir/2 _
e -jjin -/N
nn2
. Tin2
= c o s --------- j s i n ------N
N
N
N
(6.3.27)
= h r(n) + jh , { n )
has b een im p lem en ted as a pair o f F IR filters w ith coefficients h r (n) and A,(n),
resp ectively. B o th su rface acous tic w av e (SAW ) d evices and charge co u p l e d d e
vices (C C D ) h ave b een u sed in practice for the F IR filters. T h e cosine and sine
seq u en ces given in (6.3.26) n eed ed for the prem ultiplications and postm ultiplica
tion s are usually stored in a read-only m em ory (R O M ). Furtherm ore, w e n ote that
if o n ly the m agnitu d e o f the D F T is desired, the postm ultiplications are u n n eces
sary. In this case,
|X (z*)l = \y(k)\
k = 0 ,1 ,...,
-1
(6.3.28)
as illustrated in Fig. 6.19. T hus the linear F IR filtering approach using th e chirp-z
transform has b een im p lem en ted for the com putation o f the D F T .
486
Chap. 6
Chirp Fillers
Figure 6.19 Block diagram illustrating the implementation of the chirp-z transform for com
puting the DFT (magnitude only).
*It is recommended that the reader review Section 7.5 prior to reading this section.
Sec. 6.4
487
analysis is perform ed for rounding, the analysis can be easily m odified to apply to
truncation in tw o's-com p lem en t arithm etic (see Sec. 7.5.3).
O f particular interest is the analysis o f rou n d -off errors in the com putation
o f the D F T via the FFT algorithm . H ow ever, w e shall first establish a benchm ark
by determ ining the round-off errors in the direct com p utation o f the D F T .
* (* ) = Y l x ( n ) w "'
j,=0
= 0 , 1 ........ N - 1
(6.4.1)
7~2b
" ' = 1 2 = 1 2
<6A2>
(6A3)
3
H en ce the variance o f the quantization error is p roportional to the size o f D FT.
N o te that w hen Af is a p ow er o f 2 (i.e., N = 2 1), the variance can be expressed
488
2 2(h1*/2
a ] = -------------
Chap. 6
(6.4.4)
This expression im plies that every fourfold increase in the size N o f the D F T
requires an additional bit in com putational precision to offset the additional quan
tization errors.
T o prevent overflow , the input seq u en ce to the D F T requires scaling. Clearly,
an upper bound on | X (A:) | is
A '- l
[* ()! < Y
|*(n )|
(6.4.5)
n=0
requires that
A '-l
|jr(/i)| < 1
(6.4.6)
n=0
If U (/i)| is initially scaled such that |a (/j)| < 1 for all n, then each point in the
seq u en ce can be divided by N to ensure that (6.4.6) is satisfied.
T h e scaling im plied by (6.4.6) is extrem ely severe. For exam p le, su p p ose
that the signal seq u en ce {*()} is white and. after scaling, each valu e |.r(n)l o f the
seq u en ce is uniform ly distributed in the range (-1 /7 V , I/ N ) . T h en the variance of
the signal sequ en ce is
<2 / * > 2 = 1 o ,2 = ----------
3N1
12
tzA-n
(6.4.7)
>
(6.4.8)
~ 3 ~N
Thus the signal-to-noise p ow er ratio is
(6.4.9)
W e observe that the scaling is responsible for reducing th e S N R by N and
the com bination o f scaling and quantization errors result in a total reduction that
is proportional to N 2. H en ce scaling the input seq u en ce (j(n )} to satisfy (6.4.6)
im poses a severe p en alty on the signal-to-noise ratio in the D F T .
Exam ple 6.4.1
Use (6.4.9) to determ ine the num ber of bits required to com pute the D FT of a 1024point sequence with a SNR of 30 dB.
Solution
Sec. 6.4
489
= W -l
490
Stage 2
Chap. 6
Stage 3
For exam ple, the butterflies that affect the com p utation o f A"(3) in the eight-point
FFT algorithm o f Fig. 6.20 are illustrated in Fig. 6.21.
T h e quantization errors introduced in each butterfly propagate to the output.
N o te that the quantization errors introduced in the first stage p ropagate through
(v - 1 ) stages, th ose introduced in the second stage propagate through (v - 2 )
stages, and so on. A s these quantization errors propagate through a num ber of
su bsequent stages, th ey are phase shifted (ph ase rotated) by th e phase factors
W^n. T h ese phase rotations do not change the statistical p rop erties o f the quan
tization errors and, in particular, the variance o f each q uantization error remains
invariant.
If w e assum e that the quantization errors in each butterfly are uncorrelated
with the errors in other butterflies, then there are 4(W - 1 ) errors that affect the
output o f each point o f the FFT. C on sequ en tly, th e variance o f the total quanti
zation error at the output is
A
f f| = 4 (A r- ! )
(6.4.13)
Sec. 6.4
Figure 6.21
491
w here A = 2 h. H en ce
a2= j
2"
(6.4.14)
T his is exactly the sam e result that w e ob tain ed for the direct com p utation o f the
DFT.
T h e result in (6.4.14) should n ot b e surprising. In fact, the FFT algorithm
d o es not reduce the num ber o f m ultiplications required to com p ute a single point
o f the D F T . It d o es, h ow ever, exp loit the p eriod icities in W^n and thus reduces
the num ber o f m ultiplications in the com p utation o f the entire block o f N points
in the D F T .
A s in the case o f the direct com p utation o f the D F T , w e m ust scale the
input seq u en ce to prevent overflow . R ecall that if |jc(n) | < \ / N , 0 < n < N
1, then |X (* )| < 1 for 0 < k < N 1. T hus overflow is avoided. W ith this
scaling, the relation s in (6.4.7), (6.4.8), and (6.4.9), ob tain ed previously for the
direct com p utation o f the D F T , apply to the F F T algorithm as w ell. C onsequently,
the sam e S N R is o b tain ed for the FFT.
Since the F F T algorithm consists o f a seq u en ce o f stages, w h ere each stage
con tains butterflies that in volve pairs o f points, it is p ossib le to d evise a differ
en t scaling strategy that is n ot as severe as dividing each input p oin t by N . This
492
Chap. 6
alternative scaling strategy is m otivated by the observation that the in term edi
ate values [Xn(/r)| in the n = 1, 2,..., u stages o f th e F F T algorithm satisfy the
conditions (see P roblem 6.35)
m ax[|X n+1 ( * ) U X n+1(/)|] > m ax[|X n( * ) U X B( 0 |]
(6.4.15)
m ax [|X n+1 ( * ) |,|X B+1(/)|] <
f l = _ L .2 ^
_
2N
22bv\
(6.4.17)
Sec. 6.5
Solution
493
The size of the FFT is N = 210. Hence the SNR according to (6.4.17) is
101gio 22h~v~l = 30
3(2b - 11) = 30
b =
bits)
This can be com pared with the 15 bits required if all the scaling is perform ed in the
first stage of the FFT algorithm.
494
Chap. 6
PROBLEMS
6.1 Show that each of the numbers
eja*/NH
o < /t < W - 1
corresponds to an Wth root of unity. Plot these numbers as phasors in the complex
plane and illustrate, by m eans of this figure, the orthogonality property
-ja ir/N M n
n=<)
N,
I 0,
I
if k ~ 1
if k ^ l
1
6.2 (a) Show that the phase factors can be com puted recursively by
W$ =
(b) Perform this com putation once using single-precision floating-point arithmetic
and once using oniy four significant digits. Note the deterioration due to the
accumulation of round-off errors in the later case.
(c) Show how the results in part (b) can be improved by resetting the result to the
correct value - j . each time gl = N/4.
6 3 Let x(n) be a real-valued N -point (N = 2' ) sequence. Develop a method to compute
an N -point D FT X (k), which contains only the odd harmonics [i.e., X'(k) = 0 if Jt is
even] by using only a real A,/2-spoint DFT.
6.4 A designer has available a num ber of eight-point FFT chips. Show explicitly how he
should interconnect three such chips in order to com pute a 24-point DFT.
6.5 The ^-transform of the sequence x(n) = u(n) - u(n - 7) is sampled at five points on
the unit circle as follows
x(k) = X(z) 1- = eJ'2jr*/5
Jt* 0,1 ,2 ,3 ,4
Determ ine the inverse D FT x'(n) of X (Jt). Com pare it with *(/t) and explain the
results.
6.6 Consider a finite-duration sequence x(n), 0 < n < 7, with z-transform X(z). We wish
to com pute X (:) at the following set of values:
zk = 0.8ejf|(2)r*/*,+(' /8)]
( b )
*(z).
Chap. 6
495
Problems
6.7 Derive the radix-2 decimation-in-time FFT algorithm given by (6.1.26) and (6.1.27)
as a special case of the more general algorithmic procedure given by (6.1.16) through
(6.1.18).
6.8 Com pute the eight-point D FT of the sequence
1.
I 0,
X^
0 < n < 7
otherwise
1,0. 0,0.0
12 2 2 2
0 < n < 15
(a
b)d
+ (c -
d)a
xi
(a
b)d
+ (c +
d)b
where
X =
x R
jx ,
= (a +
jb )(c
jd )
6.17 Explain how the D FT can be used to com pute N equispaced samples of the ztransform , of an iV-point sequence, on a circle of radius r.
496
Chap. 6
6.18 A real-valued A/-point sequence Jt(n) is called D FT bandlim ited if its D FT X(k) = 0
for ko < k < N An. We insert (L 1)N zeros in the middle of A'(Jt) to obtain the
following L N -point DFT
X(k),
X'(k) = { 0,
X(k + N - LN) .
0 < i < Ao 1
Jt0 < Jk < L N - kt,
L N - J t + 1 < Jt < L N 1
Show that
Lx'(Ln) = x(n)
0 < n < N 1
where
x\n)
X (k)
LN
Explain the meaning of this type of processing bv working out an example with N = 4,
L = 1. and A ( J t ) = { 1 , 0 . 0 . 1 ) .
6.19 Let X(k) be the A'-point DFT of the sequence .v(n). 0 < n < A - 1. What is the
A-point DFT of the sequence s(n) = X(n). 0 < n < N - 1?
6.20 Let X(k) be the A-point DFT of the sequence \(n ), (I < < N 1. We define a
2 N -point sequence _v() as
V{;I)
1-v^V
--vcn
n odd
v(n) = - ^
ai-v<n ~
+ y , b k x ( n - k)
*= 1
Jt = 0, 1........
Chap. 6
Problems
497
(a) Draw the flow graph of the radix-2 D IF FFT algorithm for N = 16 and eliminate
[i.e., prune] all signal paths that originate from zero inputs assuming that only
jc(0) and jc(1) are nonzero.
(b) R epeat part (a) for the radix-2 D IT algorithm.
(c) Which algorithm is better if we wish to com pute all points of the D FT? What
happens if we want to compute only the points X (0), X (l), X (2), and X (3)?
Establish a rule to choose between D IT and D IF pruning depending on the
values of M and L.
(d) Give an estim ate of saving in computations in term s of M, L, and N.
6.28 Parallel computation o f the D F T Suppose that we wish to com pute an N = 2P2V
point D FT using 2P digital signal processors (DSPs). For simplicity we assume that
p = v = 2. In this case each DSP carries out all the com putations that are necessary
to com pute 2V D FT points.
(a) Using the radix-2 D IF flow graph, show that to avoid data shuffling, the entire
sequence x(n) should be loaded to the memory of each DSP.
(b) Identify and redraw the portion of the flow graph that is executed by the DSP
that com putes the D FT samples X(2), X(10), X(6), and X(14).
(c) Show that, if we use M = 2'' DSPs, the com putation speed-up S is given by
S= M
log-, N
log2 N - log, M + 2(M - 1)
6.29 Develop an inverse radix-2 D IT FFT algorithm starting with the definition. Draw the
flow graph for com pulation and com parc with the corresponding flow graph for the
direct FFT. Can the IFFT flow graph be obtained from the one for the direct FFT?
6.30 R epeat Problem 6.29 for the D IF case.
6.31 Show that an FFT on data with H erm itian symmetry can be derived by reversing the
flow graph of an FFT for real data.
6.32 D eterm ine the syslem function H(z) and the difference equation for the system that
uses the G oertzel algorithm to compute ihe DFT value X ( N - k).
6.33 (a) Suppose that x(n) is a finite-duration sequence of N = 1024 points. It is desired
to evaluate the z-transform X (;) of the sequence at the points
Zk
eiQ * * *
k = 0 . 100,200 ......1000
k = 0 ,1 ,2 ........999
634 R epeat the analysis for the variance of the quantization error, carried out in Sec
tion 6.4.2, for the decimation-in-frequency radix-2 FFT algorithm.
498
Chap. 6
(a) If we require that !X(Jt)| < j and |Jf(/)| < 5 , show that
|Re[X +,(*)]| < 1,
| I m [ X + 1 (*)]l <
| / m [ A B + 1 (/)]| <
1,
, ,
[1 ,
x(n) = I
10,
(Ni ~ 16)
n = 0 ,1 ........... 7
otherwise
(N\ = 8)
= 0 ,1 ........63
otherwise
(Ni = 64)
(a) Let r = 0.9 and x(n) = &(n). G enerate the output sequence y(n) for 0 < n < 127.
Compute the N = 128 point D FT [ I'M ) and plot {|y(Jt)t).
Chap. 6
Problems
499
Implementation of
Discrete-Time Systems
The focus o f this chapter is on the realization o f linear tim e-invariant discrete
tim e system s in eith er softw are or hardware. A s w e noted in C h ap ter 2, there are
various configurations or structures for the realization o f any F IR and IIR discrete
tim e system . In C hapter 2 w e described the sim plest o f these structures, nam ely,
the direct-form realizations. H ow ever, there are other m ore practical structures
that offer som e distinct advantages, especially w hen q uantization effects are taken
into consideration.
O f particular im portance are the cascade, parallel, and lattice structures,
which exhibit robustness in finite-w ord-length im plem en tation s. A lso described
in this chapter is the frequency-sam pling realization for an F IR system , which
often has the advantage o f being com putationally efficient w hen com pared with
alternative FIR realizations. O ther im portant filter structures are ob tain ed by
em ploying a state-sp ace form ulation for linear tim e-invariant system s. A n analysis
o f system s characterized by th e state-variable form is p resen ted in both the tim e
and frequency dom ains.
In addition to describing the various structures for the realization o f discrete
tim e system s, w e a lso treat problem s associated with q uantization effects in the
im plem en tation o f digital filters using finite-precision arithm etic. T his treatm ent
includes the effects on the filter frequency response characteristics resulting from
coefficient quantization and the round-off noise effects inherent in the digital im
p lem entation o f d iscrete-tim e system s.
(7.1.1)
500
Sec. 7.1
501
(7.1.2)
502
Chap. 7
such as the num ber o f tim es a fetch from m em ory is p erform ed or the num ber of
tim es a com parison betw een tw o num bers is perform ed per output sam ple, have
b ecom e im portant in assessing the com putational com p lexity o f a given realization
o f a system .
M e m o r y requ irem ents refers to the num ber o f memory locations required
to store the system param eters, past inputs, past outputs, and any interm ediate
com puted values.
F inite- wor d-length effects or finite-precision effects refer to the quantization
effects that are inherent in any digital im plem en tation o f the system , either in
hardware or in softw are. T h e param eters o f the system m ust necessarily be repre
sented with finite precision. T h e com p utations that are p erform ed in the process
o f com puting an output from the system must be rounded- o ff or truncated to fit
within the lim ited precision constraints o f the com p uter or the hardware used in
the im plem en tation . W hether the com p utations are perform ed in fixed-point or
floating-point arithm etic is an oth er consideration. A ll these p rob lem s are usually
called finite-w ord-length effects and are extrem ely im portant in influencing our
ch oice o f a system realization. W e shall see that different structures o f a system,
which are equivalent for infinite precision, exhibit different behavior when finiteprecision arithm etic is used in the im plem entation. T h erefore, it is very important
in practice to select a realization that is not very sensitive to finite-w ord-length
effects.
A lthou gh these three factors are the major o n e s in influencing our ch oice o f
the realization o f a system o f the type described by either (7.1.1) or (7.1.2), other
factors, such as w hether the structure or the realization len d s itself to parallel
processing, or w h eth er the com p utations can b e pip elined, m ay play a role in
our selection o f the specific im plem entation. T h ese additional factors are usually
im portant in the realization o f m ore com p lex digital signal processin g algorithm s.
In our discussion o f alternative realizations, w e con cen trate on the three
m ajor factors just outlined. O ccasionally, w e will include som e additional factors
that m ay be im portant in som e im plem entations.
bkx (n ~ k)
y(n) =
(7.2.1)
*=0
or, equivalently, by the system function
A f-1
H{z)=*YibkZ~k
*=o
{122)
Furthermore, the unit sample response of the FIR system is identical to the coef-
Sec. 7.2
503
\ b,
'K,) = | o .
0 < n < Af 1
,7 , , ,
otherwise
<7-2 '3>
(7.2.4)
Figwre 7.1
504
Chap. 7
h(n) = h ( M - 1 - n)
(7.2.5)
For such a system the num ber o f m ultiplications is reduced from M to M f l for Af
even and to (Af l ) / 2 for M odd. For exam p le, the structure that takes advantage
o f this sym m etry is illustrated in Fig. 7.2 for the case in which M is odd.
0-2.6)
fl(z) = [] fl* ( z )
*=i
where
H k (z) = bk0 + bk]Z~l + bk2z~ 2
* = 1 ,2 .........K
(7.2.7)
Sec. 7.2
505
jr(n)=jr,(n)
H](z)
>'[(") =
Vjr(n) = ,Y(n)
>'2<n) =
H2(z)
*2< )
jr,(n)
(a)
In the case o f linear-phase F IR filters, the sym m etry in h (n) im plies that the
zeros o f H ( z ) a lso exhibit a form o f sym m etry. In particular, if Zk and z*k are a pair
o f co m p lex-con ju gate zeros then 1 f z t and 1 / z \ are also a pair o f com plex-conjugate
zero s (see Sec. 8.2). C on sequ en tly, w e gain som e sim plification by form ing fourthorder section s o f the FIR system as follow s
Hk(z) = c ,( l - z / t z - K l - c ^ ' K l - z ~ l / z k )(\ - z - ' / z V ,
(7.2.8)
=
w here the coefficien ts {ct i } and (c^ f are functions o f zt- Thus, by com bining
the tw o pairs o f p o les to form a fourth-order filter section , w e have reduced the
n um ber o f m ultiplications from six to three (i.e., by a factor o f 50% ). Figure 7.4
illustrates the b asic fourth-order F IR filter structure.
506
Chap. 7
M - 1
A: = 0 , 1 , . . . , -
2
M od d
M
A: = 0, 1 , . . . , -------1
M even
a =
or j
and so lv e for the unit sam ple response h( n) from these equally spaced frequency
specifications. Thus we can write the frequency response as
M- 1
h ( n ) e ~ jum
n 0
and the values o f H(a>) at freq u en cies a>t = ( 2 n / M ) { k + a ) are sim ply
H (k + a ) = H
+ cr)^
(7.2.9)
h (n )e -j2*lk+aWM
k _ 0< 1____ A/ - 1
T he set o f values { //( -(-a )} are called the frequency sam ples o f H(a)). In the case
w here a = 0, j//(Jt)} corresponds to th e M -point D F T o f (A(n)}.
It is a sim ple m atter to invert (7.2.9) and express h(n) in term s o f the fre
quency sam ples. T he result is
i M- 1
h(n) = J ' H ( k + a ) e j2*(i+a)n/M
n = 0, 1 , . . . , M - 1
(7.2.10)
n=0
M- 1
-L
i u - 1
Y \ H ( k + a ) e j2* il'H' )"/"
M *=0
(7.2.11)
^The reader may also refer to Section 8.2.3 for additional discussion o f frequency-sampling FIR
filters.
Sec. 7.2
507
B y interchanging the order o f the tw o sum m ations in (7.2.11) and perform ing
the sum m ation over the index n w e obtain
I M-1
^ ^ej2n(i+a)/M - \ y
H( z ) = ^ H ( k + a)
(7.2.12)
} - Z- Mej2na y l
2. 1
H ( k + a)
_ e j2nik+a)/M z - 1
Thus the system function H ( z ) is characterized by the set o f frequency sam ples
(W(Jt-t-cr)j instead o f {h()).
W e v iew this F IR filter realization as a cascade o f tw o filters [i.e., H { z ) =
/ / i ( z ) / / 2 (s)]- O ne is an all-zero filter, or a com b filter, with system function
H x(z) = (1 - r wf y2l )
M
(7.2.13)
Its zeros are located at equally spaced points on the unit circle at
Zt =
jt = 0 , 1 .........A f - 1
H l i z ) 2 ^ -J _
Jt=0
j2n(t+a)/M
(7.2.1 )
*
consists o f a parallel bank o f sin gle-p ole filters with resonant frequencies
Pl = e}2* ik+ayM
k = 0 , l .........M -
N o te that the p o le locations are identical to the zero locations and that both
occur at a)k = 2 k (k + a ) / M , which are the freq u en cies at which the desired fre
quency resp onse is specified. T he gains o f the parallel bank o f resonant filters
are sim ply the com p lex-valu ed param eters \ H ( k + a )}. T h is cascade realization is
illustrated in Fig. 7.5.
W hen the desired frequency resp onse characteristic o f the F IR filter is nar
row band, m ost o f the gain param eters \ H ( k + a )) are zero. C on sequ en tly, the
corresponding resonant filters can be elim inated and on ly the filters with nonzero
gains n eed be retained. T h e n et result is a filter that requires few er com p uta
tion s (m ultiplications and additions) than the corresponding direct-form realiza
tion. Thus w e ob tain a m ore efficient realization.
T h e frequency-sam pling filter structure can be sim plified further by exploiting
the s y m m e t r y in H ( k + a ) , nam ely, H ( k ) = H * ( M k) for a = 0 and
H (* + i ) = H* ( M - k - | )
for a = \
T h ese relations are easily deduced from (7.2.9). A s a result o f this sym m etry, a
pair o f sin g le-p o le filters can b e com b ined to form a sin gle tw o -p o le filter with
508
Chap. 7
real-valued param eters. Thus for a = 0 the system function Hz (z) reduces to
H ( 0) ,
fiiiz) = t _ l +
H i 0)
^
t=1
A ik ) + B(lc)z- 1
----- 7
2 c o s { 2 n k / M ) z ~ ' + z~2
, H iM /2)
, lM^ ~ ]
H^ > = r r p r + T T P - +
A{k) + B { k ) z ~ x
2cos(2;rfc/Af)z -1 + z ~ 2
w
M odd
M even
(7.2.15)
Sec. 7.2
509
w h ere, by definition,
A( k ) = H ( k ) + H ( M - k )
(7.2.16)
(f)-
* = 0 ,1 ,2
5-
4= 3
0,
* = 4 . 5 ........15
Figure 7.6
510
Figare 7.7
Chap. 7
Sec. 7.2
511
m = 0 . 1 , 2 .........M - 1
m > 1
(7.2.17)
(7.2.18)
and /lo(^) = ! T he unit sam ple resp onse o f the m th filter is /j,(0) = 1 and
h m{k) = a m(k), k = 1, 2 , . . . , m. T he subscript m on the p olyn om ial Am(c) d en otes
the d egree o f the polynom ial. For m athem atical con ven ien ce, w e define a, (0) = 1.
If (*(n)} is the input seq u en ce to the filter A,{z) and (y(n )( is the output
seq u en ce, w e have
m
v() = -*() + ^ o r m(A:)A-(?f k)
(7.2.19)
*=l
T w o direct-form structures o f the F IR filter are illustrated in Fig. 7.8.
Figure 1A
512
Chap. 7
In C hapter 11, w e show that the F IR structures sh ow n in Fig. 7.8 are inti
m ately related w ith the topic o f linear prediction, w here
m
x ( n ) = ~ ^ 2 a m( k )x (n - k)
*=i
(7.2.20)
is the o n e-step forward predicted value o f x (n), based on m past inputs, and
y ( n ) = x (n) x (n ), given by (7.2.19), rep resents the p red iction error sequ en ce.
In this context, the top filter structure in Fig. 7.8 is called a p re d ictio n er ror filter.
N o w suppose that w e have a filter of order m = 1. T h e ou tp u t o f such a filter
is
>-() = x ( n ) - f a i( l)j r ( n - 1)
(7.2.21)
This output can also be ob tain ed from a first-order or sin gle-stage lattice filter,
illustrated in Fig. 7.9, by exciting both o f the inputs by x ( n ) and selectin g the output
from the top branch. Thus the output is exactly (7.2.21), if w e select /li = ori (1).
T he param eter K i in the lattice is called a reflection coefficient and it is identical
to the reflection coefficient introduced in the S ch u r-C ohn stability test described
in Section 3.6.7.
N ext, let us consider an FIR filter for w hich m = 2. In this case the output
from a direct-form structure is
y (n ) = x ( n ) + ff;>(l)jr(/i -
) + ct2(2)x (n -
(7.2.22)
)
(7.2.24)
g 2(n) = K 2f i ( n ) + g i ( n - 1)
1)
Sec. 7.2
513
- 1) + x ( n - 2)]
(7.2.25)
= x ( n ) + ^ i ( l + K 2) x( n - 1) + K 2x {n 2)
N o w (7.2.25) is identical to the output of the direct-form F IR filter as given by
(7.2.22), if w e eq u ate the coefficients, that is,
a 2 (2) = K 2
a 2( l) = ATi(l + K 2)
(7.2.26)
Kx =
1 + a 2(2)
(7.2.27)
Thus the reflection coefficients K\ and K 2 o f the lattice can be ob tain ed from the
coefficien ts {am()} o f th e direct-form realization.
B y con tinu in g this process, o n e can easily d em onstrate by induction, the
eq u iv a len ce b etw een an m th-order direct-form FIR filter and an w -ord er or m stage lattice filter. T h e lattice filter is gen erally d escribed by the follow in g set o f
order-recursive equations:
/o (n ) = gain) = x ( n )
(7.2.28)
m = 1 ,2 .........M - 1
(7.2.29)
m = 1,2,..., M 1
(7.2.30)
T h en the ou tp u t o f th e (A fl)-sta g e filter corresponds to the output o f an (A f1)order F IR filter, that is,
y (n ) =
Figure 7.11 illustrates an (Af - l)-sta g e lattice filter in b lock diagram form along
w ith a typical stage that show s the com p utations sp ecified by (7.2.29) and (7.2.30).
A s a co n seq u en ce o f the eq u ivalen ce b etw een an F IR filter and a lattice filter,
th e ou tp u t f m(n) o f an m -stage lattice filter can b e exp ressed as
m
f m( n) = <xm( k) x( n - k)
*=o
m(0) = 1
(7.2.31)
Sin ce (7.2.31) is a con v olu tion sum , it follow s that th e z-transform relationship is
Fm(z) = Am(z)X(z)
514
Chap. 7
(a)
F (?)
X(z)
Fo(z)
A m(z) =
(7.2.32)
T h e other output com p on en t from the lattice, nam ely, g m(n), can also be
exp ressed in the form o f a con volu tion sum as in (7.2.31), by using another set
o f coefficients, say {^m(Jt)}. T hat this in fact is the case, b ecom es apparent from
ob servation o f (7.2.23) and (7.2.24). From (7.2.23) w e n ote that the filter coeffi
cients for the lattice filter that produces / i ( n ) are {1 , Al} = { 1 , ofi( 1 )} w hile the
coefficients for the filter with output g \ ( n ) are (AT], 1} = | a i ( l ) , 1}. W e n ote that
these tw o sets o f coefficients are in reverse order. If w e con sid er the tw o-stage
lattice filter, with th e output given by (7.2.24), w e find that g 2 (n) can be expressed
in the form
g 2(n) = K 2f \ ( n ) + i(n - 1)
= K 2[x in) + K \ x { n 1)] + K \ x { n - 1) + x{ n 2)
= K 2x{ n ) + K \ ( l + K 2)x{n - 1) -I- x i n - 2)
= cr2 ( 2 )jc(n) + *2 ( 1 ) * (n -
) + xin -
C onsequently, the filter coefficients are {a 2 (2), a 2 ( l ) , 1}, w h ereas the coefficients
for the filter that produces the output f i i n ) are {1, a 2( \ ) , a 2 (2)}. H ere, again, the
tw o sets o f filter coefficients are in reverse order.
F rom this d ev elo p m en t it follow s that the ou tp u t gm{n) from an m -stage
lattice filter can b e exp ressed by the con volu tion sum o f the form
m
gmin) =
A *(*M - k)
(7.2.33)
Sec. 7.2
515
w h ere the filter coefficients {& ,(*)} are associated with a filter that produces
f m(n) = y ( n ) but op erates in reverse order. C onsequently,
f}m (k) = a m (m k)
* = 0 , 1 .........m
(7.2.34)
with p m(m) = 1 .
In the co n tex t o f linear prediction, su p p ose that the data x(n), x{n - 1), . . . ,
x ( n m + 1) is u sed to linearly predict th e signal valu e x ( n m ) by u se o f a linear
filter w ith coefficients {fim(k)}. Thus the predicted value is
m-l
(7.2.35)
Since the data are run in reverse order through the predictor, the prediction per
form ed in (7.2.35) is called b a c k w a r d predictio n. In contrast, the F IR filter with
system function Am(z) is called a f o r w a r d predictor.
In the z-transform dom ain, (7.2.33) b ecom es
G m(z) = B m( z ) X ( z )
(7.2.36)
ffl
(7.2.39)
m
T h e relationship in (7.2.39) im plies that the zeros o f the F IR filter w ith system
function B m(z) are sim ply the reciprocals o f the zeros o f A ( z ) . H en ce B m(z) is
called the reciprocal or reverse p olyn om ial o f A m(z).
N o w that w e have estab lish ed th ese interesting relationships b etw een the
direct-form F IR filter and th e lattice structure, let us return t o th e recursive lattice
eq u a tio n s in (7.2.28) through (7.2.30) and transfer them to th e z-dom ain. Thus
516
Chap. 7
w e have
(7.2.40)
F0(z) = G 0(z) = X ( z )
Fm(z) = Fm_ i(z ) + J:mz - 1 Gm_ i(z )
m = 1, 2 , . . . , M - 1
(7.2.41)
G m(z) =
m =
(7.2.42)
, 2 , . . . , M 1
If w e divide each eq u ation by X (z), w e obtain the desired results in the form
(7.2.43)
A0(z) = B0(z) = 1
A m{z)
A m- X(z)
K z ~ } Bm- i ( z )
Bm(z) = K n A n - i W + z - ' B ^ i z )
(7.2.44)
m = l,2 ,...,M -l
(7.2.45)
m = 1 , 2 .........M -
T hus a lattice stage is described in the z-dom ain by the m atrix equation
(7.2.46)
B efo re concluding this discussion, it is desirable to d ev elo p the relationships
for converting the lattice param eters
that is, the reflection coefficients, to the
direct-form filter coefficients (a m(Jt)), and vice versa.
A 0 (z) = B 0(z) = 1
A m(z) = A m- \ ( z ) + K mz ~ xBm~\(z)
Bm(z) = Z- mA m(z~ l )
m =
m = 1 ,2 .........M -
1,2- -
-M -
(7.2.48)
(7.2.49)
Example 12J2
Given a three-stage lattice filter with coefficients AT] = j, K 2 =
the FIR filter coefficients for the direct-form structure.
, Ky =
, determine
Solution We solve the problem recursively, beginning with (7.2.48) for m = 1. Thus
we have
Ai(z) = A<z) + tfiZ ^ B oW
= 1 + K n - 1 = 1 + Jz "1
Hence the coefficients of an FIR filter corresponding to the single-stage lattice are
ori(0) = 1 , ari(l) = Ki = j. Since Bm(z) is the reverse polynomial of A(z), we have
Sec. 7.2
517
1 + Rc T 2'-
Hence the FIR filter param eters corresponding to the two-stage lattice are *2(0) = 1,
2(1) = | , *2(2) =
Also,
*2(z) = J + i = +z-2
Finally, the addition of the third stage to the lattice results in the polynomial
M( z ) = * z (;)+ * :3 z _ ,ft(z )
= 1+
z _1 + %z~2 + | z -3
a 3(l) = g
of3(2) = 2
o3{3) = i
A s this exam ple illustrates, the lattice structure with param eters K \ , K i .........
K m, corresp on d s to a class o f m direct-form F IR filters with system functions A\ (z),
y4i ( z) , . . . , A,(z). It is interesting to note that a characterization o f this class o f m
FIR filters in direct form requires m( m + l ) / 2 filter coefficients. In contrast, the
lattice-form characterization requires on ly the m reflection coefficients {A',}. T he
reason that the lattice provides a m ore com pact representation for the class o f m
F IR filters is sim ply du e to the fact that the addition o f stages to the lattice d o es
n ot alter the param eters o f the previous stages. O n the other hand, the addition
o f the mth stage to a lattice with ( m - 1 ) stages results in a F IR filter with system
function A m(z) that has coefficients totally d ifferent from the coefficients o f the
low er-order F IR filter with system function Am_ i(z ).
A form ula for determ ining the filter coefficients [am(Jt)} recursively can be
easily d erived from p olyn om ial relationships in (7.2.47) through (7.2.49). From the
relationship in (7.2.48) w e have
Am(z) = Am_ i(z ) + K mz ~ l B m- i ( z )
m
_i
m-t
^ a m (k ) z ~ k = ^ a m-] (k)z~ k + K m ^ a m- \ ( m - 1 - k ) z (i+1)
k=0
k=0
(7.2.50)
*=0
B y eq u atin g the coefficients o f equal pow ers o f z - 1 and recalling that a m(0) = 1
for m = 1, 2 .........M - 1, w e obtain the desired recursive eq u ation for the F IR filter
coefficients in the form
*m(0) = 1
(7.2.51)
a m(m) = K m
a m(k) = ctm- \ ( k ) +
(7.2.52)
- *)
= *mi(k) + a m(rn)am-i(rn - k)
(7-2. 53)
518
Chap. 7
m = M - h M - 2 .........1
-*"*"<*>
(7.2.54)
which is just the step-dow n recursion used in the S ch u r-C ohn stability test d e
scribed in S ection 3.6.7. T hus w e com p ute all low er-d egree p olyn om ials A m(z)
beginning with A M- \ ( z ) and obtain the desired lattice coefficien ts from the rela
tion K m = a m(m). W e ob serve that th e procedure works as lon g as \ Km \
1 for
m = 1, 2 .........A f - 1 .
Example 7.23
Determ ine the lattice coefficients corresponding to the FIR filter with system function
H(z) = A3(z) = 1 -ISolution
+ jU- 1 +
z~2 + z~y
A3(z) - K i B ^ z )
1- K
= l + f z - ^ z1 , - 2
Hence K2 a 2(2) = 5 and B i (z) =
recursion in (7.2.51), we obtain
, , ,
A i b ) ~ K2B2(z )
Sec. 7.3
519
Qfml (0) = 1
(7.2.55)
a m(k) - K mfim(k)
J __ g 2
a m(k) -
otm ( r n ) a m ( m
- k)
1 -al(m )
1 5 k < m 1
(7.2.56)
(7.3.1)
w h ere Hi (z) con sists o f th e zeros o f H ( z ) , and H z (z ) con sists o f the p o les o f H {z),
M
H l (z ) = Y ! f bkZ~k
*=o
(7-3.2)
H 2 ( z ) = ------- -- ---------
(7.3.3)
and
1+ X > z"*
*=i
In S ection 2.5.1 w e describe tw o different direct-form realizations, character
ized by w h eth er H \{z) p reced es H j i z ) , or vice versa. Since H \ ( z ) is an F IR system ,
its direct-form realization w as illustrated in Fig. 7.1. B y attaching th e all-p ole
520
All-zero system
Chap. 7
All-pole system
w(n) = - ^
ai(W{n - k) + jr(n)
(7.3.4)
bk w (n - k)
(7.3.5)
*=o
W e n o te that both (7.3.4) and (7.3.5) in volve d elayed versions o f the sequ en ce
(u>(n)}- C on sequ en tly, on ly a single d elay line or a sin gle set o f m em ory locations
is required for storing the past values o f {u>(n)}. T h e resulting structure that
im plem en ts (7.3.4) and (7.3.5) is called a direct form II realization and is depicted
in Fig. 7.13. T his structure requires M + N + 1 m ultiplications, M + N additions,
Sec. 7.3
Figure 7.13
521
(N
Af).
and the m axim um o f {M, N } m em ory locations. Since the direct form II realization
m inim izes the num ber o f m em ory locations, it is said to b e canonic. H ow ever, w e
should indicate that other IIR structures also p ossess this property, so that this
term in ology is perhaps unjustified.
T h e structures in Figs. 7.12 and 7.13 are both called direct form realiza
tions b ecau se th ey are ob tain ed directly from the system function H ( z ) w ithout
any rearrangem ent o f H ( z ) . U n fortu n ately, both structures are extrem ely sen si
tive to param eter quantization, in gen eral, and are not recom m en d ed in practical
applications. T his to p ic is discussed in detail in Section 7.6, w h ere w e dem onstrate
that w h en N is large, a sm all change in a filter coefficient d u e to param eter quan
tization, results in a large change in the location o f th e p o les and zeros o f the
system .
522
Chap. 7
(a)
Source node
Sink node
5
(b)
Fignre 7.14 Second-order filter structure (a) and its signal flow graph (b).
diagram can be converted to the signal flow graph show n in F ig. 7.14b. W e note
that the flow graph contains five n od es lab eled 1 through 5. T w o o f the nodes
( 1 ,3 ) are sum m ing n od es (i.e., they contain ad d ers), w hile the other three nodes
represent branching points. Branch transm ittances are ind icated for the branches
in the flow graph. N o te that a d elay is indicated by the branch transm ittance
z- 1 . W h en the branch transm ittance is unity, it is left u n lab eled . T h e input to
the system originates at a so ur ce n o d e and the ou tp u t signal is extracted at a sink
node.
W e observe that the signal flow graph con tains th e sam e b asic inform ation
as the block diagram realization o f the system . T h e on ly ap p aren t d ifference is
that b o th branch p oints and adders in the b lock diagram are rep resen ted by nodes
in th e signal flow graph.
T h e subject o f linear signal flow graphs is an im portant o n e in the treatm ent
o f netw ork s and m any interesting results are available. O n e b asic n otion involves
the transform ation o f o n e flow graph in to a n oth er w ithout changing the basic
in p u t-ou tp u t relationship. Specifically, o n e tech n iq u e that is usefu l in deriving
new system structures for F IR and IIR system s stem s from th e transposition or
flo w - g ra p h reversal theorem. T his th eorem sim ply states that if w e reverse the
Sec. 7.3
523
directions o f all brancb transm ittances and interchange the input and output in
the flow graph, the system function rem ains unchanged. T h e resulting structure is
called a transposed s tructure or a tran sp osed f o r m .
F or exam p le, the transposition o f the signal flow graph in Fig. 7.14b is illus
trated in Fig. 7.15a. T h e corresponding b lock diagram realization o f the transposed
form is d ep icted in Fig. 7.15b. It is interesting to n ote that the transposition o f the
original flow graph resulted in branching n od es b ecom in g ad d er n od es, and vice
versa. In Section 7.5 w e p rovid e a p ro o f o f the transposition theorem by using
state-sp ace techniques.
L et us apply the transposition theorem to the direct form II structure. First,
w e reverse all the signal flow d irections in Fig. 7.13. Second, w e change n od es
into adders and adders into n od es, and Anally, w e interchange the input and the
output. T h ese op eration s result in the transposed direct form II structure show n
in Fig. 7.16. T his structure can b e redrawn as in Fig. 7.17, which show s the input
on the left and the output on the right.
~ ai
s^\
(b)
524
Chap. 7
y ( n ) = wr f n - l ) + b o x ( n )
Wt(n) = wt+i(n - 1)
+ b kx(n)
Jt = 1 ,2 ......... N - 1
(7.3.7)
(7.3.8)
y ( n ) = ~ ^ 2 a ky (n - k ) + ^ b kx ( n - k )
(7.3.9)
Sec. 7.3
525
Finally, w e o b serv e that th e transposed direct form II structure requires the sam e
n um ber o f m ultip lication s, additions, and m em ory locations as the original direct
form II structure.
A lth o u g h our discussion o f transposed structures has b een concerned with
the general form o f an IIR system , it is interesting to n o te that an F IR system ,
ob tain ed from (7.3.9) by setting the a* = 0, k = 1, 2 , . . . , N , also has a transposed
direct form as illustrated in Fig. 7.18. T his structure is sim ply ob tain ed from
Fig. 7.17 by settin g a* = 0, k = 1, 2 , . . . , N . T his transposed form realization m ay
Figure 7.18
526
Chap. 7
(7.3.10)
k = M 1, M ~ 2, . . . , 1
y ( n ) = w i ( n - 1) +/>&*()
(7.3.11)
(7.3.12)
In sum m ary, T ab le 7.1 illustrates the direct-form structures and the corresponding
d ifference eq u ation s for a basic tw o-p ole and tw o-zero IIR system with system
function
x
b0 + b i z ~ l + b 2z ~ 2
H ( z ) = ----------- ------------ 3 -
1 + fli z 1 +azz 1
(7.3.13)
This is th e basic building block in the cascade realization o f h igh-order IIR system s,
as described in the follow in g section. O f the three direct-form structures given in
T ab le 7.1, th e direct form II structures are p referable due to the sm aller number
o f m em ory locations required in their im plem entation.
Finally, w e n o te that in the z-dom ain, the set o f d ifferen ce eq u ation s describ
ing a linear signal flow graph con stitute a linear set o f equations. A n y rearrange
m ent o f such a set o f eq u ation s is equ ivalen t to a rearrangem ent o f the signal flow
graph to obtain a n ew structure, and vice versa.
*=i
w here K is the in teger part o f (N + l ) /2 . Hk (z) has th e general form
rr , ,
bto + b u z ' 1 + bk2Z ' 2
Hk (z) = --------------------- 3 5 1 + fljtiz 1 + a k2z 2
(7.3.15)
A s in the case o f F IR system s b ased on a cascad e-form realization, the param eter
bo can be distributed equally am ong the K filter se ctio n s so that bo = >1 0 ^ 2 0 bxoT he coefficients {a*j} and {*>*, }in the secon d -ord er su b system s are real. This
im plies that in form ing th e secon d-ord er su b system s or quadratic factors in (7.3.15),
w e should group to g eth er a pair o f com p lex-con ju gate p o les and w e should group
togeth er a pair o f com p lex-con ju gate zeros. H ow ever, th e pairing o f tw o com plexconjugate p o les with a pair o f com p lex-con ju gate zeros or real-valu ed zeros to form
a subsystem o f the type given by (7.3.15), can b e d o n e arbitrarily. Furtherm ore,
any tw o real-valued zeros can b e paired to g eth er to form a quadratic factor and,
likew ise, any tw o real-valued p o les can b e paired togeth er to form a quadratic
factor. C on sequ en tly, th e quadratic factor in th e num erator o f (7.3.15) m ay consist
TABLE 7.1
Implementation Equations
System Function
xin)
H( z) =
H( Z) =
bp + bjZ 1 +bjz
1 + a u _1 +aiz~2
H( Z)
bp -t-fri? 1 +bjz 2
1 + c u - * +aiz~2
x<n)
u.( n )
~ d i w ( n I ) a 2 w ( n 2)
+ x(n)
v(n) = bu.x(n) + wt (n - 1)
= ht x( n) ai_v(n)
-t- w 2 ( n -
527
w 2 (n)
b ix(n) -
1)
a 2y ( n )
528
Chap. 7
o f either a pair o f real roots or a pair o f com p lex-con ju gate roots. T h e sam e
statem ent applies to the den om in ator o f (7.3.15).
If N > M , so m e o f the secon d-ord er subsystem s h ave num erator coefficients
that are zero, that is, eith er bk2 = 0 or bk\ = 0 or b oth bk2 = bk\ = 0 for som e k. Fur
therm ore, if N is odd, o n e o f the subsystem s, say Hk (z), m ust h ave a k2 = 0, so that
the subsystem is o f first order. T o p reserve the m odularity in th e im plem en tation
o f H ( z ) , it is o ften preferable to use the basic secon d-ord er su b system s in the cas
cade structure and h ave som e zero-valu ed coefficients in so m e o f the subsystem s.
E ach o f the secon d-ord er subsystem s with system function o f the form (7.3.15)
can be realized in eith er direct form I, or direct form II, or tran sp osed direct form
II. Since there are m any w ays to pair the p oles and zeros o f H (z ) into a cascade
o f secon d-ord er section s, and several w ays to order the resulting subsystem s, it is
p ossib le to obtain a variety o f cascade realizations. A lth ou gh all cascade realiza
tions are equ ivalen t for infinite precision arithm etic, the various realizations may
differ significantly w hen im plem en ted with finite-precision arithm etic.
T he general form o f th e cascade structure is illustrated in Fig. 7.19. If we
use the direct form II structure for each of the subsystem s, the com putational
algorithm for realizing the IIR system with system function H ( z ) is described by
the follow in g set o f equations.
>>o(n) = x ( n )
(7.3.16)
k = 1 ,2 ...........K
(7.3.17)
k = 1 ,2 ..........K
(7.3.18)
y (n ) = ytcin)
(7.3.19)
(a)
**0
-*l
S ~
> '* ( * ) = X t + 1 ( n )
^ -0
0 -
(b)
Sec. 7.3
529
Thus this set o f eq u ation s p rovides a com p lete description o f the cascade structure
based on direct form II section s.
(7.3.20)
w here {p*} are the p oles, {A t \are the coefficients (residues) in the partial-fraction
exp an sion , and the constant C is defined as C = b s / a s i . T h e structure im plied
by (7.3.20) is sh ow n in Fig. 7.20. It consists o f a parallel bank o f sin gle-p ole
filters.
In gen eral, som e o f the p oles o f H ( z ) may be com plex valued. In such a case,
the corresp on d ing coefficients A t are also com plex valued. T o avoid m ultiplica
tions by com p lex num bers, w e can com b ine pairs o f com p lex-con ju gate p oles to
form tw o -p o le subsystem s. In addition, w e can com b ine, in an arbitrary m anner,
Figure 7.20
530
Figure 7*21
Chap. 7
pairs o f real-valued p o les to form tw o-p ole subsystem s. Each o f th ese subsystem s
has the form
Hk{z) =
1
(7.3.21)
+ a kiz ] + a k2r
w here the coefficients {bk,} and (at;] are real-valued system param eters. T he over
all function can n ow be expressed as
(7.3.22)
H( z) = C + J 2 h*<*>
w here K is the in teger part o f ( N + 1)/2. W hen N is odd, on e o f the H k (z) is really
a sin gle-p ole system (i.e., bk\ = a k 2 = 0 ).
T h e individual second-order section s which are th e basic b uilding blocks for
H ( z ) can be im plem en ted in eith er o f the direct form s or in a transposed direct
form. T h e direct form II structure is illustrated in Fig. 7.21. W ith this structure as
a basic building block, the parallel-form realization o f the F IR system is described
by the follow in g set o f equations
* = 1,2,...,
(7.3.23)
k = 1 ,2 .........K
(7.3.24)
K
y(n) = Cx ( n ) + ^ y t ( n )
(7.3.25)
Example 7.3.1
Determine the cascade and parallel realizations for the system described by the system
function
10(1 -
H(z) =
1)(1 l z - 1 ) ( l +
z-1)
Sec. 7.3
531
Solution The cascade realization is easily obtained from this form. One possible
pairing of poles and zeros is
1 - lz~*
= i _ 2 .- i + 2, z- 2
1
8'
32
l + l z - '- z " 2
H2<c) = i1 - z ~ l
+ \rz~~2;
and hence
H(z) = 10//,(z)Jfe(z)
The cascade realization is depicted in Fig. 7.22a.
To obtain the parallel-form realization, H(z) must be expanded in partial frac
tions. Thus we have
Ai
Ai
" (2 ) =
+
1-fz-1
1-iz-1
i - ( i + yi)z-i
i - ( l - y i );-i
where j4t , A 2, A 3, and A j are to be determ ined. A fter some arithmetic we find that
A { = 2.93,
A, = -17.68,
A3 = 12.25 - yl4.57,
A\ = 12.25 + >14.57
(7. 3. 26)
y( n ) = ~ ^ a N (k) y( n - k) + x { n)
*=i
(7.3.27)
532
Chap. 7
(a)
(b)
Figure 7.22 Cascade and parallel realizations for the system in Example 7.3.1.
or, equivalently,
N
y ( n ) = x ( n ) 4- ^ a w(fc)*(n - k)
*=i
(7.3.28)
Sec. 7.3
533
yi.n)
*()
(7.3.29)
v(n) = fo(n)
(7.3.30)
and the ou tp u t as
T h ese are exactly the o p p osite o f the definitions for the all-zero lattice filter. T h ese
d efinitions d ictate that the qu an tities { / m(n)l be com p uted in d escen din g ord er [i.e.,
/ v ( n ) , / v _ i ( n ) , . . . ) . T h is com p utation can be accom plished by rearranging the
recursive eq u ation in (7.2.29) and thus solvin g for / m_\ (n) in term s o f f m(n ), that is,
K mgm- i ( n - 1 )
/ m - i ( n ) = f m( n) -
m =
N, N - 1 ,..., 1
(7.3.31)
f m - \ ( n ) = f m(n) - K mgm. ] ( n - 1)
gm(n) = K mf m- i ( n ) + g m- \ ( n - 1)
m = N , N - 1,.
(7.3.32)
m = N , N - 1,
(7.3.33)
(7.3.34)
y ( n ) = /o (n ) = go(n)
w hich corresp on d to the structure sh ow n in Fig. 7.24.
Input
Figure 7.24
IIR system.
534
Chap. 7
fain) = h i n ) - K\goin - 1)
g i(n ) = ATi/o(n) + go(n - 1)
(7.3.35)
?() = foin)
= xin ) - K \yin - 1 )
Furtherm ore, the eq u ation for g i(/i) can be exp ressed as
i(n ) = ATi^n) + y in - 1)
(7.3.36)
W e observe that (7.3.35) represents a first-order all-p ole IIR system w hile (7.3.36)
represents a first-order F IR system . T h e p o le is a result o f the feed b ack introduced
by the solution o f th e ( / m(n)} in descen din g order. T his feed b ack is dep icted in
Fig. 7.25a.
Forward
(a)
Forward
Reverse
(b)
Figure 125
Sec. 7.3
535
)
(7.3.37)
/o (n ) = / i ( n ) - K igo in - 1 )
gi (n) = K ifo (n ) + g o ( n - l )
y (n ) = /o (n ) = go()
A fter so m e sim ple substitutions and m anipulations w e obtain
y (n ) =
+ K 2)y (n 1) - K 2y (n - 2) + x ( n )
(7.3.38)
(7.3.39)
C learly, the differen ce equation in (7.3.38) represents a tw o-p ole IIR system , and
the relation in (7.3.39) is the in p u t-ou tp u t equation for a tw o-zero F IR system .
N o te that the coefficients for the F IR system are identical to th ose in the IIR
system excep t that they occu r in reverse order.
In general, th ese con clu sion s hold for any N . Indeed, with the definition of
Am( i) given in (7.2.32). the system function for the all-p ole IIR system is
, ,
Y (z)
Fo(z)
1
Ha (z) = -------= ----------= ---------X (z )
Fm(z)
Am( z)
7 , ,,
(7.3.40)
Y (z )
G 0(Z)
= B m(z) = z~ mA m( z ~ l )
(7.3.41)
536
Chap. 7
W e recall that the roots o f the polynom ial A N (z) lie in sid e th e unit circle if
and o n ly if the lattice param eters | ^ m| < 1 for all m = 1, 2 .........N . T h erefore, the
all-p o le lattice structure is a stable system if and on ly if its param eters \K m\ < 1
for all m.
In practical applications the all-pole lattice structure has b een used to m odel
the hum an vocal tract and a stratified earth. In such cases the lattice param eters,
{K m) have the physical significance o f b ein g identical to reflection coefficients in
the physical m edium . T his is the reason that the lattice param eters are o ften called
reflection coefficients. In such applications, a stable m od el o f the m edium requires
that the reflection coefficients, obtained by perform ing m easu rem en ts o n output
signals from the m edium , b e less than unity.
T h e all-p ole lattice provides the basic b uilding block for lattice-type structures
that im plem en t IIR system s that contain both p oles and zeros. T o d evelop the
appropriate structure, let us consider an IIR system with system function
M
H (z ) = -------------------------=
A
,
1 + J 2 a N(k)z ~ L
k= 1
* n (z )
(1 3 A 2 )
w here the notation for the num erator polynom ial has b een changed to avoid con
fusion with our previous develop m en t. W ithout loss o f generality, w e assum e that
N > M.
In the direct form II structure, the system in (7.3.42) is described by the
difference equations
N
w (n ) = ^ a tf(fc )u > (n k) + x (n )
*=i
M
y (n ) = c M(fc)w(n - k)
*=o
(7.3.43)
(7.3.44)
N o te that (7.3.43) is the in p ut-ou tp u t o f an all-p ole IIR system and that (7.3.44) is
the in p u t-o u tp u t o f an all-zero system . Furtherm ore, w e ob serve that the output of
the all-zero system is sim ply a linear com bination o f delayed ou tp u ts from the all
p o le system . This is easily seen by observing th e direct form II structure redrawn
as in Fig. 7.26.
Since zeros result from form ing a linear com bination o f previous outputs we
can carry o ver this observation to construct a p o le -z e r o IIR system using the all
p ole lattice structure as the basic building block. W e have already observed that
gm(n ) is a linear com bination o f present and past outputs. In fact, the system
Hh(z) =
= Bm(z)
Y (z)
Sec. 7.3
537
0>
^ - 0 - ------0 -------0
w (n )
w(n - 1 )
w(n - 2)
w(n - Af + 1) ------
w ( n - M)
t - M ------------- ------
e 0 )
c*<2 )
cu ( M -
1)
c^M)
yirt)
- 0 - -------0 ------- 0 ^
Figure 7.27
538
Chap. 7
Y (z )
X (z)
(7.3.46)
-Z>
G m(z)
X{z)
G m{z) Fq( z )
> u m 7 ^
G 0 (z) FN (z)
Bm{z)
a n (z )
(7.3.47)
M
y , vmBm{z)
A \(z)
If w e com pare (7.3.41) with (7.3.47), w e con clu d e that
M
C M(z) = ' / vmBm(z)
m=0
(7.3.48)
T his is the desired relationship that can be used to determ in e the w eighting coef
ficients {um). Thus, w e have dem onstrated that the coefficients o f the num erator
polyn om ial C*f(z) determ in e the ladder param eters {um}, w h ereas the coefficients
in the d en om in ator polyn om ial A ^(z) determ ine the lattice p aram eters {Km\.
G iven the polyn om ials C (z ) and A n ( z ), w here N > M , th e param eters of
the all-pole lattice are d eterm ined first, as described p reviou sly, by the conver
sion algorithm given in Section 7.2.4, which con verts the direct form coefficients
in to lattice param eters. B y m ean s o f the step -d ow n recursive relations given by
(7.2.54), w e obtain the lattice param eters {Km} and th e p olyn om ials Bm(z), m = 1,
2 ,..., N.
T h e ladder p aram eters are d eterm in ed from (7.3.48), w hich can be expressed
as
TO1
C m( z) = vk B k(z) + vmB m(z)
(7.3.49)
or, equivalently, as
C m(z) = Cm_ ,(z ) + vmB m( z)
(7.3.50)
Thus Cm(z) can b e com p uted recursively from the reverse p olyn om ials Bm(z), m =
1 , 2 , . . . , M . Since
1 for all m, th e param eters vm, m = 0, 1 , . . . , M can be
determ ined by first noting that
vm = cm(m)
m = 0,1,..., M
(7.3.51)
Sec. 7.4
539
(7.3.52)
540
Chap. 7
the use o f state-sp ace tech n iqu es in system analysis, and in the d evelop m en t o f
state-sp ace structures for th e realization o f discrete-tim e system s.
(7.4.1)
T h e direct form II realization for the system is show n in Fig. 7.28.
A s state variables, w e u se the con ten ts o f the system m em ory registers, cou n t
ing them from the b o ttom , as show n in Fig. 7.28. W e recall that th e output o f a
delay elem en t rep resen ts the present value stored in th e register and the input
represents the next v alu e to b e stored in th e m em ory. C on seq u en tly, with the aid
o f Fig. 7.28, w e can w rite
t>i(n + 1 ) = V2 (n)
v i (n +
) = U3 ()
(7.4.2)
Sec. 7.4
541
<*>
o
- l
v2()
0
U,()
" 3
Figure 7.28 Direct form II realization of system described by the difference equa
tion in (7.5.1).
(7.4.3)
V2 (n + 1) =
_ v 3 (n + 1 ) .
.-0 3
-a 2
t>] ( n ) -
1
-a \.
V2 (n)
-i> 3 (n )-
and
y ( n ) = [(b3 - b0a 3) ( ^ - M
) (i>i ~ M l ) ]
-0 0
x(n)
(7.4.4)
.1 .
~ v i(n )
v2(n) +box(n)
(7.4.5)
-V 3 ( * ) -
T h e eq u a tio n s (7.4.4) and (7.4.5) provide a com p lete description o f the sys
tem . F urtherm ore, th e variables v i(n ), V2 (n), and 113( 0 ), w hich sum m arize all the
n ecessary past inform ation, are the state variables o f the system . W e also observe
that as in d icated previou sly, eq u ation s (7.4.4) and (7.4.5) split the system in to tw o
co m p o n en t parts, a dynam ic (m em ory) subsystem and a static (m em oryless) sub
system . W e say that this se t o f eq u ation s provides a state-space description o f the
system .
542
Chap. 7
B y generalizing the previous exam p le, it can easily be se en that the A'th-order
system described by
N
Af
,( ) = - a ty(n ~
*=i
bkX^n ~ k)
(7.4.6)
Jt=0
State equation
v(n -j- 1 ) = Fv(n) + q x(n )
(7.4.7)
>() = gf v ( n ) + d x ( n )
(7.4.8)
Output equation
w here the elem en ts o f F, q, g, and d are con stan ts (i.e., they d o n ot change as a
function o f the tim e index n ), given by
-
~a -1
-a2
~a\
"0 "
q=
F =
.-a s
(7.4.9)
0
b N boaN
b fj - 1 bo a n-\
g=
b\ boa\
A n y discrete-tim e system w h ose input x (n ), ou tp u t y( n ) , and state v{n), for
all n > no, are related by the state-sp ace eq u ation s ab ove, w h ere F, q, g, and d are
arbitrary but fixed quantities, will be called linear and tim e invariant. If at least
o n e o f the quantities in F, q, g, or d d ep en d s on tim e, the system b ecom es time
variant.
W e will refer to (7.4.7) through (7.4.8) as the linear tim e-in va rian t state-space
m o d el, which can b e represented by the sim ple vector-m atrix block diagram in
Fig. 7.29. In this figure the d ou b le lin es represent vector qu an tities and the blocks
represent the v ector or m atrix coefficients.
Example 7.4.1
Determine the state-space equations for the transposed direct form II structure shown
in Fig. 7.30.
Solution
- k) - aky(n - * )] + box(n)
Sec. 7.4
543
.0
'M n )
bi boaj "
-a 2
i>2 (n) = * 2 - M 2 x(n)
-b\ bod\ .
- a i . .t>B(n).
03
(7.4.10)
Di(n)
y(n) = [0
1 ]
l> 2 (fl)
-f box(n)
(7.4.11)
V3(n) J
T h e state-sp ace description specified by (7.4.4) and (7.4.5) is know n as a ty p e
1 state-sp ace realization, w h ereas the o n e described by (7.4.10) and (7.4.11) is
ca lled a typ e 2 state-sp ace realization.
544
Chap. 7
(7.4.12)
(7.4.13)
and given the initial co n d ition v ( 0), we have for n > n0,
v(n 0 + 1) = Fv(n0) + q*(n)
v(no + 2 ) = F v(n 0 + 1 ) + qjr(n0 + 1 )
= F 2 v(n0) + F q j( o ) + q-^(o + 1)
w here F 2 represents the matrix product FF and Fq is the product o f the m atrix F
and the vector q. If w e continue as in the on e-dim en sion al case, w e obtain, for
n > n0,
(7.4.14)
The matrix F is defined as the N x N identity matrix, having unity on the
main diagonal and zeros elsew h ere. T he m atrix F'- -' is often d en o te d as 4>(/ - j ) ,
that is,
* (/ - j) = F ~ J
(7.4.15)
for any p ositive in tegers i > j . T his m atrix is called the state transition matrix of
the system .
T h e output o f the system is obtained by substituting (7.4.14) in to (7.4.13).
T he result o f this substitution is
y(n) = g'F" nov(n0) +
g'F" 1 kq x ( k ) + d x { n )
*=0
(7.4.16)
n- 1
- floM no) + ^
1 - &)q*(*) + d x ( n )
From this general result, w e can determ ine the output for tw o special cases.
First, the zero-input resp onse o f the system is
yzM ) = g'F" nv(n0) = g '$ ( n - floM no)
(7.4.17)
g' $ { n - 1 - fc)q*(/:) + d x ( n )
(7.4.18)
Clearly, the A'-dim ensional state-sp ace system is zero-in p u t linear, zero-state
linear, and since y ( n ) = y Zi(n) + y zs(n), it is linear. F urtherm ore, sin ce any system
described by a linear con stan t-coefficien t d ifferen ce eq u ation can be put in the
state-space form, it is linear, in agreem en t with the results ob tain ed in S ection 2.4.
Sec. 7.4
545
(7.4.19)
(7.4.20)
(7.4.23)
(7.4.24)
N o w , w e d efine a n ew system param eter matrix
F = PFP-1
(7.4.25)
W ith th ese d efinition s, th e state eq u ation s can b e exp ressed in term s o f th e new
system qu an tities as
(7.4.26)
y ( n ) = fv(n) -j- d x ( n )
(7.4.27)
If w e com p are (7.4.19) and (7.4.20) with (7.4.26) and (7.4.27), w e ob serve
that by a sim p le linear transform ation o f the state variables, w e have gen erated
a n ew set o f sta te eq u ation s and an output eq u ation , in w hich th e input x ( n ) and
the ou tp u t y ( n ) are unchanged. Since there is an infinite n um ber o f ch oices o f the
transform ation m atrix P, there is also an infinite num ber o f state-sp ace eq u ation s
546
Chap. 7
and structures for a system . S om e o f these structures are different, w hile som e
others are very sim ilar, differing o n ly by scale factors.
A ssociated with any state-sp ace realization o f a system is the con cep t o f a
m i n i m a l realization. A state-sp ace realization is said to b e m i n i m a l if the d im ension
o f the state sp a ce (th e num ber o f state variab les) is th e sm allest o f all p ossible
realizations. Since each state variable rep resen ts a quantity that m ust be stored
and updated at every tim e instant n , it fo llo w s that a m inim al realization is o n e
that requires the sm allest num ber o f d elays (storage registers). W e recall that the
direct form II realization requires the sm allest num ber o f storages registers, and
con sequ en tly, a state-sp ace realization based on the con ten ts o f the d elay elem en ts
results in a m inim al realization. Sim ilarly, an F IR system realized as a direct form
structure leads to a m inim al state-sp ace realization if th e valu es o f the storage
registers are defined as the state variables. O n the other hand, the direct form I
realization o f an IIR system d oes n ot lead to a m inim al realization.
N o w , let us determ in e the im pulse resp on se o f the system from the statespace realization. T he im pulse resp onse provid es o n e o f the links betw een the
in p u t-o u tp u t and state-space description o f system s.
B y definition the im pulse resp onse h ( n ) o f a system is the zero-state re
sponse o f the system to the excitation x ( n ) = 6 (n). H e n c e it can be obtained from
equation (7.4.16) if w e set no = 0 (th e tim e w e apply th e input), v(0) = 0, and
x ( n ) S(n). T hus the im pulse resp onse o f the system describ ed by (7.4.19) and
(7.4.20) is given by
h (n) g, Fn~ 1 q(n 1) + d 8(n)
(7.4.28)
= g '$ ( n l)qw (n 1 ) + d 8 ( n )
G iven a state-sp ace description, it is straightforward to d eterm in e the im pulse re
sp on se from (7.4.28). H ow ever, the inverse is n ot easy since there is an infinite
number o f state-sp ace realizations for the sam e in p u t-o u tp u t description.
f\N '
/21
/2 2
-/v 1
fs2
r /n
f2N
fsN
F* =
-
r /11
/21
/12
/2 2
/V 2
-flN
flN
f NN -
fm '
(7.4.29)
y '( n ) = q V (n ) - \-d x ( n )
(7.4.30)
(7.4.31)
Sec. 7.4
547
The diagonal system. A closed -form solu tion o f the state-space equations
is easily ob tain ed w hen the system m atrix F is diagonal. H en ce, by finding a m atrix
P so that F = P F P - 1 is diagonal, the solu tion of the state eq u ation s is sim plified
considerably. T h e d iagonalization o f the m atrix F can be accom plished by first
d eterm ining the eigen valu es and eigen vectors o f the matrix.
A num ber A is an eigenvalue o f F and a n on zero vector u is the associated
eigen vecto r if
Fu = Au
(7.4.32)
(7.4.33)
T his eq u ation has a (nontrivial) non zero solu tion u if the m atrix F - XI is singular
[i.e., if (F Al) is n oninvertible], which is the case if the determ inant o f (F /.I)
is zero, that is, if
d et (F - XI) = 0
(7.4.34)
f t
U =
Ul
- 1 1
t
U2
UjV
i J
548
Chap. 7
then the m atrix F = U -1 F U is diagonal. Thus w e have solved for the m atrix that
diagonalizes F.
T h e follow in g exam ple illustrates the procedure o f d iagon alizin g F.
Example 7.4.2
The Fibonacci sequence, which is the sequence {1,1,2, 3, 5 ,8 .1 3 ....} , can be gener
ated as the impulse response of the system that satisfies the state-space equations
v ( + 1) =
j j v < n ) + j ^ J .x ( n )
y(rt) = [ 1
1 ] v ( n ) + x(n)
such that the matrix F is diagonal. From (7.4.25) we recall that the two systems are
equivalent if
F = PFP'
q = P?
X 1 = 0
or
1 + V5
2
x, = -
1 - Vs
X2 = - 1 -
[?
r '=[i]
Similarly, we obtain
0 1
Sec. 7.4
549
-M
= __ !__ r ^
A.2 A.i LA-i
1 J
M o':]
where the diagonal elements are the eigenvalues of the characteristic polynomial.
Furthermore, we obtain
_1_
vl
q = Pq =
L 'V 5 J
and
r =
'3 + V s 3 - V 5
2
(^K^y
m
u(n - 1 ) + 5(n)
p r ^ n
Lv2 <0 )J
zi
5
r - 3 + V5 n
2
3 + VS
550
Chap. 7
This exam ple illustrates the m eth od for diagonalizing the matrix F. The
diagonal system y ield s a set o f N d ecou p led , first-order linear d ifferen ce equations
that are easily solved to yield the state and the ou tp u t o f the system .
It is im portant to n ote that the eigen valu es o f the matrix F are identical to the
roots o f the characteristic polynom ial, which are ob tain ed from th e h om ogen eou s
d ifferen ce eq u ation that characterizes the system . F or exam p le, the system that
g en erates the F ibonacci seq u en ce is characterized by the h o m o g e n e o u s difference
equation
y(n)
y(n
I)
y{n - 2) = 0
(7.4.35)
R ecall that the solu tion is ob tain ed by assum ing that the h o m o g e n e o u s solution
has the form
yh(n) = kn
Substitution o f this solu tion into (7.4.35) yield s the characteristic polynom ial
A2 - / - 1 = 0
B ut this is exactly the sam e characteristic polynom ial ob tain ed from the determ i
nant o f (F - XI).
Since the state-variable realization o f the system is not u n iq u e, the matrix
F is also not unique. H ow ever, the eigen valu es o f the system are unique, that is,
they are invariant to any nonsingular linear transform ation o f F. C onsequently,
the characteristic polynom ial o f F can be determ in ed eith er from evaluating the
determ inant o f ( F - A l ) or from the d ifferen ce eq u ation characterizing the system .
In conclusion, th e state-sp ace description provides an alternative character
ization o f the system that is eq u ivalen t to the in p u t-ou tp u t description. O n e ad
vantage o f the state-variable form ulation is that it provid es us with the additional
inform ation concerning the internal (state) variables o f the system , inform ation
that is not easily ob tain ed from the in p u t-ou tp u t description. Furtherm ore, the
state-variable form ulation o f a linear tim e-invariant system allow s us to represent
the system by a set o f (usually cou p led ) first-order differen ce eq u ation s. T he d e
coupling o f the eq u ation s can be ach ieved by m eans o f a linear transform ation that
can b e ob tain ed by solvin g for the eigen valu es and eigen vectors o f the system . The
d ecou p led eq u ation s are then relatively sim ple to solve. M ore im portant, how ever,
the state-space form ulation provides a pow erful, yet straightforward m eth od for
d ealing with system s that have m ultiple inputs and m ultiple ou tp u ts (M IM O ). A l
though w e have n ot con sid ered such system s in our study, it is in the treatm ent of
M IM O system s w h ere the true p ow er and the b eau ty o f the sp ace-sp ace form ula
tion can be fully appreciated.
Sec. 7.4
551
d om ain , often w ith greater ease. In this section w e treat the state-sp ace rep
resen tation o f linear tim e-invariant d iscrete-tim e system s in the z-transform d o
main.
L et us con sid er the state-sp ace eq u ation
v(rt + 1) = Fv(n) + <pr(n)
(7.4.36)
(7.4.37)
LVV(z).
then (7.4.36) can b e ex p ressed in m atrix form as
zV (z) = F V (z) + q * ( z )
T h e tw o term s in volving
can b e used to so lv e for
V(z) can be
V(z). Thus
(7.4.38)
(7.4.39)
V(z) = ( z I - F r V ( z )
T h e inverse z-transform o f (7.4.39) yield s the solu tion for the state equations.
N ex t, w e turn our atten tion to the output eq u ation , which is given as
j (n ) = g*v (n ) + d x ( n )
(7.4.40)
y ( z ) = g ' V ( z ) + d X (z)
(7.4.41)
T h e z-transform o f (7.4.40) is
B y using the solu tion in (7.4.39) w e can elim in ate th e state vector V (z) in
(7.4.41). Thus w e obtain
y (z ) = [g, ( z I - F ) ~ 1q + d ]X (z)
w hich is the z-transform o f the zero-state resp onse o f th e system .
fun ction is easily ob tain ed from (7.4.42) as
H (z ) = y = g ' ( z I - F ) - 1q + <f
(7.4.42)
T h e system
(7.4.43)
552
Chap. 7
(7.4.44)
= z - H l + F z 1 + F 2 z - 2 + ---)
(7.4.45)
(7.4.46)
(n) is
00
V z~" = I + F z - 1 + F 2 z - 2 + F V 3 +
= ( I - F z - 1) - 1 = z ( z I - F ) - 1
T h e relation in (7.4.47) p rovides a sim p le m eth od for determ ining the state
transition m atrix by m eans o f z-transform s. W e recall that
(z I-F T 1 =
d e t(z l - F)
(7.4.48)
w here a d j(A ) d en o te s the a djo int m a trix o f A and d et ( A ) d en o te s the determ inant
o f the matrix A . Substitution o f (7.4.48) in to (7.4.43) yield s the result
(7A49>
C on sequ en tly, the den om in ator D ( z) o f th e system fun ction H ( z ) , w hich contains
the p o les o f the system is sim ply
D ( z ) = d e t(z l - F)
(7.4.50)
But the d e t(z l F) is just the characteristic p olyn om ial o f F. Its roots, w hich are
the p o les o f system , are th e eigen valu es o f th e m atrix F.
Sec. 7.4
553
Example 7A 3
Determine the system function H(z), the impulse response h(n), and the state tran
sition matrix 3>(n) of the system that generates the Fibonacci sequence. This system
is described by the state-space equation
v(n + l) = j^
y(n) = [ 1
Solution
j j v(n) +
x(n)
1 ] v(n) + jr(n)
Hence
z2 - ; - 1
l- z - '-z - 2
(H)
y/5
We note that the poles of H(z) are />] = (] + \/5 )/2 and p 2 = (1 - \/5)/2. Since
| Pi | > 1, the system that generates the Fibonacci sequence is unstable.
The state transition matrix # (n ) has the z-transform
z(zl - F) " 1 =
2 1
[ ;2 ~ Z
z2 - z - 1 L z
z J
The four elements of ^(n ) are obtained by computing the inverse transform of the
four elements of z(zI - F)_1. Thus we obtain
L<fci(n) <h2(n)l
where
<hi(n) = ~7 =
H T -(4 T >
()
We note that the impulse response h{n) can also be computed from (7.4.28) by using
the state transition matrix.
554
Chap. 7
This analysis m ethod applies specifically to the com p utation o f the zero-state
response o f the system . T his is the con seq u en ce o f the fart that w e have used the
tw o-sided z-transform .
If w e wish to determ in e the total resp on se o f the system , beginning at a
nonzero state, say v(/i0), w e m ust use the on e-sid ed z-transform . Thus, for a given
initial state v(n0) and a given input * ( ) for n > no, w e can d eterm in e th e state
vector v(n) for n > no and the output y ( n ) for n > no, by m ean s o f the one-sided
z-transform.
In this d ev elo p m en t w e assum e that no = 0, w ithou t loss o f generality. T hen,
given ;r(n) for n > 0 , and a causal system , d escrib ed by th e state eq u ation s in
(7.4.36), the on e-sid ed z-transform o f the state eq u ation s is
zV + (z) - zv(0) = F V + (z) + q X (z)
or, equivalently,
V + (z) = z (z l - F r V O ) + (z l - F ) - 1 q X (z)
(7.4.51)
(7.4.52)
(7.4.53)
O f the terms on the right-hand side o f (7.4.53), the first rep resen ts the zero-input
response o f the system due to the initial con d ition s, w hile the secon d represents
the zero-state resp onse o f the system that w e ob tain ed previously. C onsequently,
(7.4.53) constitutes the total resp onse o f th e system , which can b e exp ressed in the
tim e dom ain by inverting (7.4.53). T h e result o f this inversion y ield s the form for
y(n) given p reviously by (7.4.16).
(7.4.54)
Sec. 7.4
555
N o te that this is a d ifferent exp an sion from that given in (7.3.20). T h e output o f
the system is
Y (z ) = H ( z ) X ( z ) = C X ( z ) +
(7.4.55)
Bk Yk(z)
k=1
w here, by definition,
X(Z)
it = 1 ,2 .........N
Z - Pt
In the tim e dom ain, the eq u ation s in (7.4.56) b ecom e
(7.4.56)
Yk (z) =
y t (n + 1) = p kyk(n) + * ( )
k = 1 , 2 , , N
(7.4.57)
k = 1 ,2 ,..., N
vt(n ) = yt (n)
* = 1 , 2 .........N
(7.4.59)
o
pj
0 0
"1"
1
v(n) +
v(n + 1) =
_
jc(rt)
(7.4.60)
.1 .
Pn -
B2
B n ] v(n ) + C x ( n )
(7.4.61)
bo + b i z ~ l + f a z ~ 2
1 + O iZ - 1 + 0 2 Z ' 2
boz2 + b i z + b 2
(7.4.62)
z 2 + a i z + 02
A
A*
+
z - p
Z -p *
The output of this system can be expressed as
= bo +
t ( z ) +, ----------AX& h
. -------- y(z) = b0x
z - p
Z -p
(7.4.63)
556
Chap. 7
(7.4.64)
z -p
(7.4.65)
(/i) + j v 2(n)
P = i + ;' 2
A -
(7.4.66)
q \+ jq2
U p o n substitution o f these relations into (7.4.65) and separating its real and
im aginary parts, w e obtain
i>i ( + ] ) = cfiui (n) ct2V2( n ) + q \ x { n )
(7.4.67)
U2( + 1) = <*2i>i(n) + a ] U 2 ( n ) + q2x ( n )
W e ch oose vi(n) and v2(n) as the state variables and thus ob tain the coupled pair
o f state equations w hich can be expressed in matrix form as
v(n + 1 ) =
ai
a2
a 2
ai
v() +
L</2 j
j:(n)
(7.4.68)
(7.4.69)
U p on substitution for s(n ) in (7.4.69), w e obtain the desired result for the output
in the form
y ( n ) = [2
0 ] v ( ) + b0x ( n )
(7.4.70)
A realization for the secon d-ord er section is show n in Fig. 7.31. It is simply
called the co u p le d - fo rm state-sp ace realization. T his structure, w hich is used as the
building block in the im plem en tation o f cascade-form realizations for higher-order
IIR system s, exh ib its low sensitivity to finite-w ord-length effects.
Sec. 7.5
Representation of Numbers
557
i>o
i
Figure 7 3 1
system.
floating-point arithm etic operations briefly, our m ajor concern is with fixed-point
realizations o f digital filters.
In this sectio n w e con sid er the representation o f n um bers for digital com pu
tations. T h e m ain characteristic o f digital arithm etic is the lim ited (usually fixed)
nu m b er o f digits used to represent num bers. T his constraint leads to finite n u
m erical p recision in com putations, w hich leads to rou n d -off errors and nonlinear
effects in th e p erform ance o f digital filters. W e n ow provide a brief introduction
to digital arithm etic.
>,r~
0 < ,< ( r - l)
<7'5 1 )
i rzA
w h ere bt rep resen ts the digit, r is th e radix or base, A is th e num ber o f integer
sse
Chap. 7
digits, and B is the num ber o f fractional digits. A s an exam p le, th e decim al num ber
(123.45)io and the binary num ber ( 1 0 1 .0 1 ) 2 r e p r e se n t th e fo llo w in g sums:
(123.45)io =
x 10 2 + 2 x 10 1 + 3 x 10 + 4 x 10_I + 5 x 10 ~ 2
( 1 0 1 .0 1 ) 2 = 1 x 2 2 + 0 x 2 1 + 1 x 2 + 0 x 2 _ 1 + 1 x 2 2
L et us focus our atten tion on the binary representation sin ce it is the m ost
im portant for digital signal processing. In this case r = 2 and the digits {,} are
called binary digits or bits and take the valu es {0 ,1 }. T h e binary digit b - A is called
the m ost significant bit (M S B ) o f th e num ber, and the binary d igit b B is called the
least significant bit (L S B ). T h e binary p o in t b etw een the digits bo and b\ d oes
not exist physically in the com puter. Sim ply, the logic circuits o f the com puter
are design ed so that the com p utations result in num bers that correspond to the
assum ed location o f this point.
B y using an n-bit integer form at (A = n 1, B = 0), w e an represent
unsigned integers with m agnitude in the range 0 to 2" - 1. U sually, w e use the
fraction format (A = 0, B = n - 1), with a binary p oin t b etw een bo and b \, that
perm its num bers in the range from 0 to 1 - 2~n. N o te that any in teger or m ixed
num ber can be represented in a fraction form at by factoring o u t the term r A in
(7.5.1). In the sequ el w e focu s our atten tion on the binary fraction form at because
m ixed num bers are difficult to m ultiply and the num ber o f b its representing an
integer cannot be reduced by truncation or rounding.
T here are three w ays to represent n egative num bers. T h is leads to three
form ats for the representation o f signed binary fractions. T h e form at for positive
fractions is the sam e in all three representations, nam ely,
B
(7.5.2)
X = - O M h bB = - J 2 b i - 2 ~
(7 -5 -3>
T his num ber can b e represented using o n e o f th e follow in g th ree form ats.
for X < 0
(7.5.4)
resen ted as
X iC = l b i h - b B
X < 0
(7.5.5)
Sec. 7.5
Representation of Numbers
559
(7.5.6)
r=l
X < 0
(7.5.7)
w here + represents m o d u lo -2 addition that ignores any carry gen erated from the
sign bit. For exam p le, the num ber 2 is sim ply ob tain ed by com p lem en tin g 0011
( | ) to obtain 1100 and then adding 0001. T his yield s 1101, which rep resents j
in tw o s com p lem en t.
From (7.5.6) and (7.5.7) is can easily be seen that
X 2Q = X ]C + 2 ~ H = 2 - \X\
(7.5.8)
T o d em onstrate that (7.5.7) truly represents a n egative num ber, w e use the identity
B
l = J 2 2 ~i + 2 ' B
i=i
(7 -5 -9 )
X 2C = - J 2 b i - 2 "' + 1 - 1
1= 1
B
= - 1 + J ] ( l - bi)2~' + 2~B
i=i
= - l + ^ b i -2 -1 + 2~b
i= i
560
Chap. 7
In sign-
m agnitude form at, X = | is rep resen ted as 1.111. In o n e 's co m p lem e n t, we have
X,c = 1.0 0 0
In tw os co m p lem en t, th e result is
X 2C = 1.0 0 0 + 0.00 1 = 1 .0 0 1
T he basic arithm etic op eration s o f addition and m ultiplication d epend on
the form at used. For o n e s-com p lem ent and tw o s-com p lem ent form ats, addition
is carried out by adding the num bers bit by bit. T h e form ats differ only in the way
in which a carry bit affects the M SB. F or exam p le, f = g. In tw o s com p lem en t,
we have
0 1 0 0 1101 = 0 0 0 1
where indicates m o d u lo-2 addition. N o te that the carry bit, if p resent in the
M SB. is dropped. O n the o th er hand, in o n e s- com p lem en t arithm etic, the carry in
the M SB, if present, is carried around to the LSB. T h u s the com p utation g | = g
b ecom es
-2
0.5
-4
(a)
1.0
(b)
Figure 7.32 Counting wheel for 3-bit twos-complement numbers (a) integers and
(b) functions.
Sec. 7.5
561
Representation of Numbers
-*max
-Xmin
w h ere m = 2* is the num ber o f levels and b is the num ber o f bits. A basic character*
istic o f the fixed-point represen tation is that the resolution is fixed. Furtherm ore,
A increases in direct p roportion to an increase in the dynam ic range.
A floating-point representation can be em p loyed as a m ean s for covering a
larger dynam ic range. T h e binary floating-point representation com m on ly used
in practice, con sists o f a m antissa M , which is the fractional part o f the num ber
and falls in the range | < M < 1, m ultiplied by the exp on en tial factor 2 E, w here
the exp on en t E is either a p ositive or n egative integer. H en ce a num ber X is
represented as
X = M -2E
T h e m antissa requires a sign bit for representing p ositive and negative num bers,
and the ex p o n en t requires an additional sign bit. Since th e m antissa is a signed
fraction, w e can use any o f the four fixed-point rep resen tation s just described.
For exam p le, the num ber X i = 5 is represented by the follow in g m antissa
and exponent:
M i = 0 .10 10 0 0
= 0 11
w hile the num ber X 2 = | is represented by th e follow in g m antissa and exp on en t
M2 -
0.110000
E 2 = 101
where the leftmost bit in the exponent represents the sign bit.
562
Chap. 7
If the tw o num bers are to b e m ultiplied, the m antissas are m ultiplied and the
exp on en ts are added. Thus the product o f th e se tw o num bers is
X i X 2 = M \ M 2 2 El+E2
=
( 0 .011110) - 2010
( 0 . 111100) - 2001
O n the other hand, the addition o f the tw o floating-point n um bers requires that
the exp on en ts be equal. T his can b e accom p lish ed by sh iftin g th e m antissa o f the
sm aller num ber to the right and com p en sating by increasing the corresponding
exp on en t. Thus the num ber X 2 can b e exp ressed as
M 2 = 0 .0 0 0 0 1 1
E 2 = O il
W ith E 2 = E], w e can add the tw o num bers X \ and X 2. T h e result is
X i + X 2 = (0.101011) -2 011
It should be ob served that the shifting operation required to equalize the
exp on en t o f X 2 with that for X 1 results in loss o f precision, in general. In this
exam p le the six-bit m antissa w as sufficiently lon g to a ccom m od ate a shift o f four
bits to the right for M 2 w ithout dropping any o f the on es. H ow ever, a shift o f five
bits w ould have caused the loss o f a single bit and a shift o f six bits to the right
w ould have resulted in a m antissa o f M 2 = 0.000000, u n less w e round upward after
shifting so that M 2 = 0.000001.
O verflow occurs in the m ultiplication o f tw o floatin g-poin t num bers w hen the
sum o f the exp on en ts exceed s the dynam ic range o f the fixed -p oin t representation
o f the exp on en t.
In com paring a fixed-point represen tation w ith a floatin g-poin t representa
tion, each w ith the sam e num ber o f total bits, it is apparent that the floating
p oin t representation allow s us to cover a larger dynam ic range by varying the
resolution across the range. T h e resolu tion d ecreases w ith an increase in the
size o f successive num bers. In other words, the distance b etw een tw o successive
floating-point num bers increases as the num bers increase in size. It is this vari
able resolution that results in a larger dynam ic range. A ltern atively, if w e wish
to co v er the sam e dynam ic range with b oth fixed-point and floating-point rep
resentations, th e floating-point representation provid es finer resolu tion for sm all
num bers but coarser resolution for th e larger num bers. In contrast, the fixedp oin t representation provides a uniform resolu tion through ou t the range o f num
bers.
For exam p le, if w e have a com p uter with a w ord size o f 32 bits, it is p ossible
to represent 2 32 num bers. If w e wish to represent the p o sitiv e integers beginning
w ith zero, th e largest p ossib le in teger that can b e accom m od ated is
2 32 1 = 4,294,967,295
Sec. 7.5
563
Representation of Numbers
T h e distance b etw een su ccessive num bers (th e resolu tion ) is 1. A ltern atively, w e
can d esign ate the leftm ost bit as the sign bit and u se the rem aining 31 bits for
th e m agnitu d e. In such a case a fixed-point rep resen tation allow s us to cover the
range
(2 31 - 1) = 2,147,483,647
to
(2 31 - 1) = 2,147,483,647
( 2 31 1 ) 2 ~ 10 = ( 2 21 2 -t0 )
to
( 2 31 1 ) 2 - 1 0 = 2 21 2 ~ 10
to
2,097,151.999
In this case, the resolution is 2 ~ 10. Thus, th e dynam ic range has b een decreased
b y a factor o f approxim ately 1 0 0 0 (actually 2 10), w hile th e resolution has b een
increased by the sam e factor.
For com parison, su p p ose that the 32-bit w ord is u sed to represent floating
poin t num bers. In particular, let the m antissa be rep resen ted by 23 bits plus a sign
bit and let th e exp on en t b e represented by 7 bits plus a sign bit. N ow , the sm allest
num ber in m agnitude will have the representation,
sign
0,
23 bits
- 0
sign
7 bits
1111111
10 0
= i x 2 127 ^ 0 . 3 x 1 0 ' 38
A t the o th er extrem e, the largest num ber that can be represented w ith this floating
p oin t representation is
sign
0
23 bits
111 -- 1
sign
0
7 bits
1111111 = ( l - 2 23) x 2 m 1.7 x 1038
Thus, w e h ave ach ieved a dynam ic range o f ap p roxim ately 1076, but with varying
resolu tion . In particuiar, w e have fine resolu tion for sm all num bers and coarse
resolu tion for larger num bers.
T h e representation o f zero p o ses so m e special p rob lem s. In general, on ly
th e m antissa has to be zero, but not the exp on en t. T h e ch oice o f M and ,
the representation o f zero, th e handling o f overflow s, and other related issu es
h ave resu lted in various floating-point rep resen tation s o n different digital co m
puters. In an effort to define a com m on floating-point form at, the Institute o f
E lectrical and E lectron ic E n gin eers (IE E E ) in trodu ced th e IE E E 754 standard,
w hich is w id ely used in practice. For a 32-bit m achine, th e IE E E 754 standard
sin gle-p recision , floating-point num ber is rep resen ted as X = ( 1)* 2 - l 27 (Af),
w here
8 9
31
564
Chap. 7
has th e value X =
1 0 0 0 0 0 10
10 1 0
00
1 x 2 13 0 -12 7 x 1 .1 0 1 0 ...0 = 2 3 x y
13.
T h e m agni
x = o.ioi i
after quantization, w h ere b < bu. F or exam p le, if x rep resen ts th e sam p le o f
an analog signal, then bu m ay b e taken as infinite. In any ca se if th e quantizer
truncates th e value o f x , th e truncation error is defined as
Et = Q , ( x ) - x
(7.5.10)
Sec. 7.5
Representation of Numbers
565
First, w e con sid er th e range o f valu es o f the error for sign-m agnitude and
tw o s-com p lem ent representation. In both o f th ese representations, the positive
num bers have identical rep resen tation s. For p ositive num bers, truncation results in
a num ber that is sm aller than the unquantized num ber. C on sequ en tly, the trunca
tion error resulting from a reduction o f the num ber o f significant bits from b to b is
- Q T b - 2 ~ b) < E, < 0
(7.5.11)
w h ere the largest error arises from discarding bu b bits, all o f which are ones.
In the case o f n egative fixed-point num bers based on the sign-m agnitude
representation, the truncation error is p ositive, since truncation basically reduces
the m agnitude o f the num bers. C on sequ en tly, for negative num bers, w e have
0 < E, < ( X b - 2 ~ b-)
(7.5.12)
In the tw o s-com p lem en t rep resen tation , the negative o f a num ber is obtained
by subtracting the corresp on d ing p ositive num ber from 2. A s a con seq u en ce, the
effect o f truncation on a negative num ber is to increase the m agnitude o f the
negative num ber. C on sequ en tly, x > Q t (x) and hence
(2~h 2~b) < E, < 0
(7.5.13)
H en ce w e con clu d e that the truncation er ror f o r the sig n-m ag nitu de representation
is sy m m e t r i c a b o u t ze ro a n d falls in the range
- ( 2 ~ h - 2~b) < , < ( 2~h - 2 ~b")
(7.5.14)
O n the other hand, f o r tw o 's-co m p lem e n t representation, the trunc ation error is
a lw a ys neg ative a n d falls in the range
(2~h 2 ~ b ) < E, < 0
(7.5.15)
N ex t, let us con sid er the quantization errors due to rounding o f a num ber. A
num ber x , rep resen ted by bu bits b efore quantization and b bits after quantization,
incurs a q uantization error
r = Q r(x ) - X
(7.5.16)
B asically, rounding in v o lves on ly the m agnitude o f the num ber and, con sequ en tly,
the rou n d -off error is in d ep en d en t o f the type o f fixed-point representation. T he
m axim um error that can be introduced through rounding is (2~ b 2~b,) /2 and this
can be eith er p ositive or n egative, d ep en d ing on the valu e o f x . T h erefore, the
r o u n d - o f f er ro r is s y m m e t r i c a b o u t z e r o a n d falls in the ra nge
- \ { 2 ~ b - 2~ h ) < E r < \ { 2 ~ b - 2~b' )
(7.5.17)
T h ese relation sh ip s are sum m arized in Fig. 7.33 w hen x is a continuous signal
am plitude (b u = oo).
In a floating-point rep resen tation , the m antissa is either rounded or truncated.
D u e to the n onuniform resolu tion , the corresponding error in a floating-point
rep resen tation is p rop ortional to the num ber b ein g quantized. A n appropriate
566
Chap. 7
QM)
E, - QM) - *
2'
(a )
,= Q,M - x
2-b < , < 0
, = (2,M - x
- 2 -* 5 , < 2 -
(b)
(c )
Figure 733 Quantization errors in rounding and truncation: (a) rounding; (b) truncation
in twos complement; (c) truncation in sign-magnitude.
represen tation for th e quantized value is
Q ( x ) = x + ex
(7.5.18)
(7.5.19)
Sec. 7.5
Representation of Numbers
567
In the case o f truncation based on tw o s-com p lem en t rep resen tation o f the
m antissa, w e have
- 2 E2~b < e,x < 0
(7.5.20)
< e, < 0
x > 0
(7.5.21)
O n the other hand, for a negative num ber in tw o s-com p lem en t representation,
the error is
0 < e,x < 2E2~b
and h en ce
0 < e, < 2~ b+l
x <0
(7.5.22)
In the case where the m antissa is rounded, the resulting error is sym m etric
relative to zero and has a m axim um valu e o f 2 ~ hf l . C on sequ en tly, the round-off
error b eco m es
- 2 e 2~hf l < erx < 2 E 2~ hf l
(7.5.23)
A gain , since x falls in the range 2 _ 1 < x < 2 , w e divide through by 2 E~ ] so that
- 2~h < er < 2~b
(7.5.24)
In arithm etic com putations in volving q uantization via truncation and round
ing, it is con ven ien t to adopt a statistical approach to the characterization o f such
errors. T h e quantizer can be m od eled as introducing an additive n oise to the
unquantized value x . T hus w e can w rite
Q(x )
= X
(a)
{*)---(b)
568
Chap. 7
within the lim its specified. T his random variable is assum ed to be uniform ly
distributed w ithin th e ranges sp ecified for th e fixed-point rep resen tation s. Fur
therm ore, in practice, bu > > b, so that w e can n eglect th e factor o f 2~ b- in
the form ulas given b elow . U n d er th ese con d ition s, the probability density func
tions for the rou n d -off and truncation errors in the tw o fixed-point representations
are illustrated in Fig. 7.35. W e n ote that in the case o f truncation o f the tw o scom plem ent representation o f the num ber, the average value o f the error has a
bias o f 2~ bf2, w h ereas in all other cases just illustrated, th e error has an average
value o f zero.
W e shall use this statistical characterization o f the q uantization errors in our
treatm ent o f such errors in digital filtering and in the com p utation o f the D F T for
fixed-point im plem entation.
p(r)
A=
2~h
Er
2
(a)
P(E,)
2A
A = 2-*
-A
E,
(b)
P<|)
A
A = 2~b
0
(c)
Sec. 7.6
569
(7.6.1)
T h e direct-form realization o f the IIR filter w ith quantized coefficients has the
system function
*3=0
(7.6.2)
jfc = 1 ,2
b t = bt + A b t
k = 0, 1 ,,.., M
(7.6.3)
570
Chap. 7
d (z )
w h ere
H { z ) as
= i + Y l akZ * = n a
~ PkZ ^
(7.6.4)
N
(7.6.5)
T hen
dPi _ { d D ( z ) / d a k)z=Pi
dak
O D ( z ) / d z ) z=Pl
(7.6.8)
(7.6.9)
T h e den om in ator o f (7.6.8) is
Sec. 7.6
571
(7.6.10)
7 * n (n -p i)
* /=i
1=1
Substitution o f the result in (7.6.11) into (7.6.6) yield s the total perturbation
error A p, in the form
N
N-k
(7.6.12)
/=]
Mt
T his exp ression provides a m easure o f the sensitivity o f the /th p ole to changes in
the coefficients {a*). A n analogous result can b e ob tain ed for the sensitivity o f the
zero s to errors in the param eters ( it ) .
T h e term s (p,- pi) in th e denom inator o f (7.6.12) represent vectors in the
z -plane from the p o les {/?/} to the p ole p,. If th e p oles are tightly clustered as
th ey are in a narrowband filter, as illustrated in Fig. 7.36, the lengths |p, - p t \ are
sm all for th e p o les in the vicinity o f p, . T h ese sm all len gth s will contribute to large
errors and h en ce a large perturbation error Ap, results.
T h e error Ap, can b e m inim ized by m axim izing the lengths |p,- p/|. T his can
be accom p lish ed by realizing the high-order filter with eith er sin gle-p ole or d o u b le
p o le filter section s. In general, how ever, sin gle-p ole (and sin gle-zero) filter section s
have com p lex-valu ed p o les and require com p lex-valu ed arithm etic op eration s for
their realization. T h is problem can b e avoided by com b inin g com plex-valued p o les
(and zero s) to form secon d-ord er filter section s. Since th e com p lex-valu ed p oles
are usually sufficiently far apart, the perturbation errors {A p,} are m inim ized. A s
a co n seq u en ce, the resulting filter with quantized coefficien ts m ore closely ap
proxim ates th e freq u en cy resp onse characteristics o f th e filter w ith unquantized
coefficients.
It is interesting to n ote that ev en in the case o f a tw o -p o le filter section , the
structure used to realize the filter section plays an im portant role in the errors
572
Chap. 7
Im(z)
Figure 7 3 6
caused by coefficient quantization. T o be specific, let us con sid er a tw o-p ole filter
with system function
H{z) =
1
1 (2 /- c o s 0 )z - 1 + r 2z~ 2
(7.6.13)
This filter has p o les at z = r e j<i. W hen realized as shown in Fig. 7.37, it has two
coefficients, a\ 2 r cos 6 and a 2 = r 2. W ith infinite precision it is p ossib le to
achieve an infinite num ber o f p ole p osition s. Clearly, with finite precision (i.e.,
q uantized coefficients oi and a2), th e p ossib le p ole p osition s are also finite. In
fact, w hen b bits are used to represent the m agnitudes o f a\ and a2, there are at
m ost (2h l ) 2 p ossib le p osition s for the p o les in each quandrant, exclu d in g the
case a\ = 0 and a2 = 0 .
F or exam ple, su p p ose that b = 4. T hen there are 15 p ossib le n on zero values
for a\. T here are a lso 15 p ossib le valu es for r 2. W e illustrate th e se p ossib le valu es
in Fig. 7.38 for the first quandrant o f the z-plane only. T here are 169 p ossib le pole
Mn)
-y(n)
<*>
2rcos 6
Figure 7.37
IIR filter.
Realization of a two-pole
Sec. 7.6
573
Figure 7.38 Possible pole positions for two-pole IIR filter realization in Fig. 7.37.
p o sition s in this case. T h e nonuniform ity in their p osition s is d u e to th e fact that
w e are quantizing r 2, w h ereas the p ole p osition s lie on a circular arc o f radius r. O f
particular significance is the sparse set o f p oles for valu es o f 6 near zero and, due to
sym m etry, near 6 = n . T h is situation w ould b e highly unfavorable for low pass fil
ters and highpass filters w hich norm ally h ave p o les clustered near 6 = 0 and 8 = jr.
A n alternative realization o f the tw o*pole filter is th e coupled-form realiza
tion illustrated in Fig. 7.39. T h e tw o cou p led eq u ation s are
> i( ) = x i n ) + r c o s # >j( 1 ) - r s i n # y (n 1 )
(7.6.14)
y (n ) = r sin # y \( n 1 ) + r c o s 0 y (n 1 )
B y transform ing these tw o eq u ation s into the z-d om ain , it is a sim p le m atter to
sh ow that
y (z)
X (z ) ~
( r s in 0 ) z - 1
1 - (2 r c o s 6 )z -
+ r2 z~ 2
574
Chap. 7
>i(n)
rcos 9
V|{n - 1 )
rsin 6
t sin 6
V|(n - 1)
In the cou p led form w e ob serve that there are also tw o coefficients, a i
r s in # and a 2 = r c o s 9. Since they are both linear in r, th e possib le p o le positions
are now equally spaced points on a rectangular grid, as sh ow n in Fig. 7.40. A s
a co n seq u en ce, the p ole p osition s are now uniform ly distributed inside the unit
circle, which is a m ore d esirable situ ation than the p reviou s realization, especially
for low pass filters. (T h ere are 198 possib le p o le p osition s in this case.) H ow ever,
the price that w e pay for this uniform distribution o f p ole p osition s is an increase
in com putations. T h e cou p led -form realization requires four m ultiplications per
ou tp u t point, w h ereas the realization in Fig. 7.37 requires o n ly tw o m ultiplications
p er output point.
It is interesting to com pare the coupled-form realization o f Fig. 7.39 with
the cou p led (or norm al) form state-sp ace structure o f Fig. 7.31. T h e p oles o f the
state-space structure are directly related to its coefficients, sin ce on and a 2 are
the real and im aginary parts o f the roots. Since aj = r co s and a 2 r sin ,
it is clear that quantizing cri and a 2 results in a rectangular grid o f possib le p o le
p osition s, as sh ow n in Fig. 7.40.
Since there are various w ays in which o n e can realize a secon d-ord er filter
section , there are o b v iou sly m any p ossib ilities for d ifferen t p o le locations with
quantized coefficients. Ideally, w e should select a structure that provides us with
a d en se set o f p o in ts in th e region s w here th e p o les b e. U n fortu n ately, how ever,
there is n o sim ple and system atic m eth od for determ ining th e filter realization that
yield s this d esired result.
G iven that a higher-order IIR filter should be im p lem en ted as a com bination
o f secon d-ord er section s, w e still m ust d ecid e w h eth er to em p lo y a parallel config
uration or a cascade configuration. In other w ords, w e m ust d ecid e b etw een the
realization
(7.6.16)
Sec. 7.6
575
(z ) = T
1
CM + C 1Z'
1 + fltiZ"1 + a*2Z-2
(7.6.17)
If the IIR filter has zeros on the unit circle, as is gen erally the case with ellip tic
and C h eb ysh ev type II filters, each secon d-ord er sectio n in th e cascade configu
ration o f (7.6.16) contains a pair o f com p lex-con ju gate zeros. T h e coefficients
{&*} directly d eterm in e the location o f th ese zeros. If th e [by] are quan tized , the
sen sitivity o f th e system resp onse to th e q uantization errors is easily and directly
con trolled by allocating a sufficiently large num ber o f b its to th e representation
o f th e {bki }. In fact, w e can easily evalu ate th e perturbation effe ct resulting from
quan tizin g the coefficients
to so m e sp ecified p recision. T h u s w e h ave direct
con trol o f both th e p o les and th e zeros that result from th e quantization p rocess.
O n th e other hand, the p arallel realization o f H ( z ) provid es direct con trol
o f th e p o le s o f the system only. T h e num erator co efficien ts {chi} and {c*i} d o not
576
Chap. 7
specify the location o f the zeros directly. In fact, the {c*o) and fc*i} are ob tain ed
by perform ing a partial-fraction exp an sion o f H ( z ). H en ce th ey d o not directly
influence the location o f th e zeros, but on ly indirectly through a com b in ation o f all
th e factors o f H ( z ) . A s a co n seq u en ce, it is m ore difficult to d eterm in e the effect
o f quantization errors in the coefficients {c*, }, on the location o f the zeros o f the
system .
It is apparent that quantization o f the param eters {c*, J is lik ely to produce a
significant perturbation o f the zero p osition s and usually, it is sufficiently large in
fixed-point im plem en tation s to m ove the zeros o ff the unit circle. T his is a highly
undesirable situation, w hich can b e easily rem edied by use o f a floating-point
representation. In any case the cascade form is m ore robust in th e p resen ce o f co
efficient quantization and should b e the preferred ch oice in practical applications,
especially w here a fixed-point representation is em p loyed .
Example 7.6.1
Determine the effect of parameter quantization on the frequency response of the
7-order elliptic filter given in Table 8.11 when it is realized as a cascade of secondorder sections.
Solution The coefficients for the elliptic filter given in Table 8.11 are specified for
the cascade form to six significant digits. We quantized these coefficients to four and
then three significant digits (by rounding) and plotted the magnitude (in decibels)
and the phase of the frequency response. The results are shown in Fig. 7.41 along the
frequency response of the filter with unquantized (six significant digits) coefficients.
We observe that there is an insignificant degradation due to coefficient quantization
for the cascade realization.
Example 7.(L2
Repeat the computation of the frequency response for the elliptic filter considered in
Example 7.6.1 when it is realized in the parallel form with second-order sections.
Solution
The system function for the 7-order elliptic filter given in Table 8.11 is
0 .2 7 8 1 3 0 4 + 0 .0 0 5 4 3 7 3 1 0 8 Z -1
(2) "
1 - 0 .7 9 0 1 0 3 Z '1
- 0 .3 8 6 7 8 0 5 + 0 .3 3 2 2 2 2 9 ;- '
+ 1 - 1 .5 1 7 2 2 3 j-1 + 0 .7 1 4 0 8 8 z ~ 2
0.1 2 7 7 0 3 6 - 0 .1 5 5 8 6 9 6 :- 1
+ 1 - 1 .4 2 1 7 7 3 * -1 + 0 .8 6 1 8 9 5 z 2
- 0 .0 1 5 8 2 4 1 8 6 + 0 .3 8 3 7 7 3 5 6 z " ]
+ 1 - 1.387447*-1 +0.962242z-i
The frequency response of this filter with coefficients quantized to four digits
is shown in Fig. 7.42a. When this result is compared with the frequency response in
Fig. 7.41, we observe that the zeros in the parallel realization have been perturbed
sufficiently so that the nulls in the magnitude response are now at - 8 0 , - 8 5 , and
92 dB. The phase response has also been perturbed by a small amount.
577
Phase (degree)
Gain (db)
Sec. 7.6
Figure 7.41 Effect of coefficient quantization of the magnitude and phase response of an
N 7 elliptic filter realized in cascade form.
When the coefficients are quantized to three significant digits, the frequency
response characteristic deteriorates significantly, in both magnitude and phase, as
illustrated in Fig. 7.42b. It is apparent from the magnitude response that the zeros
are no longer on the unit circle as a result of the quantization of the coefficients. This
result clearly illustrates the sensitivity of the zeros to quantization of the coefficients
in the parallel form.
When compared with the results of Example 7.6.1, it is also apparent that the
cascade form is definitely more robust to parameter quantization than the parallel
form.
Chap. 7
Phase (degree)
Gain (db)
578
Figure 7.42 Effect of coefficient quantization of the magnitude and phase response of an
N = 7 elliptic filter realized in cascade form: (a) quantization to four digits; (b) quantization
to three digits.
579
Phase (degree)
Gain (db)
Sec. 7.6
a cascad e o f secon d-ord er and first-order filter section s to m inim ize the sensitivity
to coefficient quantization.
O f particular interest in practice is the realization o f linear p h ase F IR filters.
T h e direct-form realizations show n in Figs. 7.1 and 7.2 m aintain th e linear-phase
property ev en w h en th e coefficients are quantized. T his follo w s easily from the o b
servation that the system function o f a linear-phase F IR filter satisfies th e property
H( z ) =
580
Chap. 7
in d ep en dent o f w h eth er the coefficien ts are quantized or unq uan tized (see S ec
tion 8.2). C on sequ en tly, co efficien t quantization d o es not affect th e p h ase charac
teristic o f the F IR filter, but affects o n ly the m agnitude. A s a result, coefficient
quantization effects are n ot as severe on a linear-phase F IR filter, since the on ly
effect is in the m agnitude.
Example 7.63
Determine the effect of parameter quantization on the frequency response of an
Af = 32 linear-phase FIR bandpass filter. The filter is realized in the direct form.
Solution The frequency response of a linear-phase FIR bandpass filter with unquantized coefficients is illustrated in Fig. 7.43a. When the coefficients are quantized to
four significant digits, the effect on the frequency response is insignificant. However,
when the coefficients are quantized to three significant digits, the sidelobes increased
by several decibels, as illustrated in Fig. 7.43b. This result indicates that we should use
a minimum of 10 bits to represent the coefficients of this FIR filter and, preferably,
12 to 14 bits, if possible.
From this exam ple w e learn that a m inim um o f 10 bits is required to represent
the coefficients in a direct-form realization o f an F IR filter o f m od erate length. A s
the filter length increases, the num ber o f bits per coefficient m ust be increased to
m aintain the sam e error in the freq u en cy resp onse characteristic o f the filter.
For exam ple, suppose that each filter coefficient is rounded to {b + 1) bits.
T hen the m axim um error in a coefficien t value is bounded as
_ 2 -<fr+t> < e h(n) < 2 ~ (b+l)
Since the quantized valu es m ay b e rep resen ted as h(n) = h (n) + eh(n), th e error in
the frequency resp onse is
= y ^ f ek {n)e'
Since eh(n) is zero m ean, it follow s that E m (to) is also zero m ean . A ssu m in g that
the coefficient error seq u en ce eh(), 0 < n < M - 1, is uncorrelated, the variance
o f the error E m {co) in the frequency resp on se is just the sum o f the variances o f
the M terms. Thus w e have
2 - 2 (i>+i)
2~2(b+2>
cr| = : M = -----------M
12
3
H ere w e note that the variance o f the error in H(a>) increases linearly with M .
H en ce the standard d eviation o f the error in H { a>) is
2 ~(H-2 )
a =
\ /3
581
Gain (dB)
Sec. 7.6
Relative frequency
Gain (dB)
(a) No quantization
582
Chap. 7
(7.6.18)
(7 A 1 9 )
= 2rk cos 6k and
bk2 = r\. Q uantization o f bki and bk2 result in zero location s as sh ow n in Fig. 7.38,
ex cep t that the grid exten d s to p oin ts ou tsid e th e unit circle.
A problem m ay arise, in this case, in m aintaining the lin ear-ph ase property,
b ecau se th e quantized pair o f zeros at z = ( l / r k)ej6k m ay n ot b e th e m irror im age
o f the quantized zero s at z = rke j6k. T his problem can be avoid ed by rearranging
the factors corresponding to the m irror-im age zero. That is, w e can write the
m irror-im age factor as
f l co s0 * z _ 1 + -~rz- 2 ) = -^-(r? 2 rk cos 0 *7 + z ~ 2)
rk
r\
(7.6.20)
T h e factors {1 / r 2} can be com bined with the overall gain factor G, or they can
be distributed in each o f the secon d-ord er filters. T h e factor in (7.6.20) contains
exactly the sam e param eters as the factor ( 1 2rk c o s 0 *z - 1 + r^z- 2 ), and co n se
quently, the zeros now occur in m irror-im age pairs even w hen th e param eters are
quantized.
In this brief treatm ent w e have given the reader an introduction to the
problem s o f coefficient q uantization in IIR and F IR filters. W e have dem onstated that a high-order filter should b e reduced to a cascad e (for F IR or IIR
filters) or a parallel (for IIR filters) realization to m inim ize th e effects o f quan
tization errors in the coefficients. T his is esp ecially im portant in fixed-point re
alizations in w hich the coefficients are represented by a relatively sm all num ber
o f bits.
Sec. 7.7
583
(7.7.1)
(7.7.2)
Figure 7.44
system.
584
Chap. 7
Wn)
In T able 7.2 w e list the resp onse o f the actual system for four different
locations o f the p o le z a, and an input x(n ) = /9S(n), w here fi = 15/16, which
has the binary representation 0.1111. Ideally, the resp onse o f th e system should
decay toward zero exp on en tially [i.e., y( n ) = a" * 0 as n * oo]. In the actual
system , how ever, the resp onse v(n) reaches a steady-state p eriod ic output sequ en ce
with a period that d ep en d s on the value o f the p ole. W hen the p o le is p ositive, the
oscillations occur with a period N p = 1, so that the output reach es a con stan t value
of ^ for o = j and g for a =
O n th e other hand, w hen the p o le is n egative, the
output sequ en ce o scillates b etw een p ositive and negative valu es ( ^ for a = |
for a =
He n c e the p eriod is N p = 2.
T h ese limit cycles occur as a result o f the quantization effe cts in m ultipli
cations. W hen the input seq u en ce x ( n ) to the filter b ecom es zero, the output o f
the filter then, after a num ber o f iterations, enters into the lim it cycle. T h e ou t
put rem ains in the lim it cycle until an oth er input o f sufficient siz e is applied that
drives the system ou t o f the limit cycle. Sim ilarly, zero-input lim it cycles occur
from nonzero initial con d ition s with the input x ( n ) = 0 . TTie am plitudes o f the
output during a lim it cycle are confined to a range o f values that is called the d ead
b a n d o f the filter.
and
TABLE 7.2
a =
~
0 .1 1 1 1
0 .1 0 0 0
a =
1 .1 0 0 0
1
2
\ 16 /
(f t)
0 .1 1 1 1
1 .1 0 0 0
0 .0 1 0 0
0 .0 0 1 0
0 .0 0 0 1
(f t)
0 .0 0 0 1
(f t)
0 .0 0 0 1
0 .0 0 0 1
(f t)
1 .0 0 0 1
0 .0 0 0 1
(ft)
0 .0 0 0 1
(f t)
(f t)
(f t)
0 .0 1 0 0
1 .0 0 1 0
0 .0 0 0 1
1 .0 0 0 1
0 .0 0 0 1
(if)
( - ft)
( - ft)
(f t)
(-ft)
(f t)
(- ft)
(ft )
a =
_
0 .1 0 1 1
0 .1 0 0 0
0 .0 1 1 0
0 .0 1 0 1
0 .0 1 0 0
0 .0 0 1 1
0 .0 0 1 0
0 .0 0 1 0
0 .0 0 1 0
0 .1 1 0 0
3
4
(S )
(f t)
(ft)
(f t)
(f t)
(f t)
(f t)
(f t)
(ft)
a =
1 .1 1 0 0
3
0 .1 0 1 1
(B )
1 .1 0 0 0
( - ft)
0 .0 1 1 0
1 .0 1 0 1
0 .0 1 0 0
1 .0 0 1 1
0 .0 0 1 0
1 .0 0 1 0
0 .0 0 1 0
(f t)
(- ft)
(f t)
(-ft)
(f t)
(- ft)
(ft)
Sec. 7.7
585
It is interesting to n ote that w h en the resp onse o f the sin gle-p ole filter is in
the lim it cycle, the actual n onlinear system op erates as an equivalent linear system
w ith a p o le at z = 1 w h en the p o le is p ositive and z = 1 w h en the p o le is negative.
That is,
(7.7.3)
Since the qu an tized product av(n 1) is ob tain ed by rounding, it fo llo w s that the
quantization error is b ou n ded as
\Q r[av(n - 1)] - a v ( n - 1)| < \ 2~b
(7.7.4)
w h ere b is th e num ber o f bits (exclu sive o f sign) used in th e representation o f the
p o le a and u(n). C on sequ en tly, (7.7.4) and (7.7.3) leads to
|v(n - 1 )| - \ctv{n - 1 )| < \ 2~b
and h en ce
1
2~b
N " ~ DI < f 7
1 - \a\
(7.7.5)
T he exp ression in (7.7.5) d efines the dead band for a sin gle-p ole filter. F or
ex a m p le, w hen b = 4 and ja| = 1, w e have a dead band with a range o f am plitudes
^ ) . W hen b = 4 and \a\ = 2, th e dead band increases to (g, | ) .
T h e lim it-cycle behavior in a tw o-p ole filter is m uch m ore com plex and a
larger variety o f o scillation s can occur. In this case the ideal tw o-p ole system is
described by the linear differen ce eq u ation ,
(
(7.7.6)
w h ereas the actual system is described by the non linear d ifferen ce eq u ation
v(n) = Qr [a iv( n - 1)] + Q r f a v i n - 2)] + x ( n )
(7.7.7)
W hen th e filter coefficients satisfy the con d ition a \ < 4o2, the p oles o f the
system occur at
z = r e ie
w h ere a 2 = r 2 and ai = 2 r c o s 0 . A s in the case o f th e sin gle-p ole filter, w hen
the system is in a zero-input or zero-state lim it cycle,
Qr[a2v(n - 2)] = - v ( n - 2)
(7.7.8)
In other w ords, th e system b eh aves as an oscillator with com p lex-con ju gate p o les
on the unit circle (i.e., a2 r 2 = 1). R ou n d ing the product a v ( n 2) im plies
that
| Q r[a2v(n - 2)] - a2v{n - 2 ) \ < \ - 2~ b
U p o n substitution o f (7.7.8) into (7.7.9), w e obtain the result
|u(n - 2 )| - |a2v( n - 2 )| < \ 2~b
(7.7.9)
586
Chap. 7
or equivalently,
(7.7.10)
T h e expression in (7.7.10) d efines the dead band o f th e tw o-p ole filter with com plexcon gu gate p oles. W e ob serve that the dead-band lim its d ep en d on ly on |ci2 1- T he
param eter a\ = 2r cos 8 d eterm in es th e frequency o f oscillation.
A n oth er p o ssib le lim it-cycle m od e with zero input, w hich occurs as a result
o f rounding the m ultiplications, corresponds to an eq u ivalen t secon d -ord er system
with p o les at z = 1 . In this case it w as show n by Jackson (1969) that the tw o-p ole
filter exh ib its oscillation s with an am plitude that falls in the d ead band b ounded
by 2 - * / ( l - | il - 0 2 )It is interesting to n ote that these lim it cycles result from rounding the prod
uct o f the filter coefficients with the previous outputs, t>( 1 ) and v(n 2 ).
Instead o f rounding, w e m ay ch o o se to truncate the products to b bits. W ith trun
cation, w e can elim in ate m any, although not all, o f the lim it cycles as show n by
Claasen et al. (1973). H ow ever, recall that truncation results in a biased error
unless the sign-m agnitude representation is u sed, in which case the truncation er
ror is sym m etric about zero. In general, this bias is undesirable in digital filter
im plem entation.
In a parallel realization o f a high-order IIR system , each secon d-ord er filter
section exhibits its ow n lim it-cycle behavior, with n o interaction am ong the secondorder filter section s. C on sequ en tly, the output is the sum o f the zero-input limit
cycles from the individual section s. In the case o f a cascade realization for a highorder IIR system , the lim it cycles are m uch m ore difficult to an alyze. In particular,
w hen the first filter section exhibits a zero-input limit cycle, the output lim it cycle
is filtered by the su cceed in g section s. If the frequency o f the lim it cycle falls near a
resonance frequency in a su cceed in g filter section , th e am plitu d e o f the seq u en ce
is en h an ced by the reson ance characteristic. In general, w e m ust be careful to
avoid such situations.
In addition to lim it cycles caused by rounding the result o f m ultiplications,
there are limit cycles caused by overflow s in addition. A n o v erflow in addition
o f tw o or m ore binary num bers occurs w hen the sum e x cee d s the w ord size
available in the digital im plem en tation o f the system . F or exam p le, let us con
sider the secon d-ord er filter section illustrated in Fig. 7.46, in w hich th e addi
tion is perform ed in tw os-com p lem ent arithm etic. Thus w e can w rite the output
y i n ) as
y i n ) = g [ a i y in - 1 ) + a 2y i n - 2 ) + -c(/i)]
(7.7.11)
Sec. 7.7
587
y(n)
<>
Q>
02
(7.7.12)
586
Chap. 7
g(v)
Saturation arithm etic as just d escribed elim in ates lim it cycles d u e to overflow , on
the o n e hand, but o n the other hand, it cau ses undesirable signal distortion due to
the nonlinearity o f the clipper. In order to limit the am ount o f n on linear distortion,
it is im portant to scale the input signal and the unit sam ple resp onse, b etw een the
input and any internal sum m ing n od e in the system , such that overflow b ecom es
a rare event.
For fixed-point arithm etic, let us first con sid er the extrem e con d ition that
overflow is not perm itted at any nod e o f th e system . Let yk (n ) d en o te the response
o f the system at the Jtth n od e w hen the input seq u en ce is x{n) and the unit sam ple
response b etw een the n od e and the input is h t i n ) . T hen
!>*() I =
h k( m ) x ( n - m )
-oo
oo
\hk (m)\
for all n
(7.7.13)
(7.7.14)
IM m)l
for all p ossib le n o d es in th e system . T h e con d ition in (7.7.14) is b oth necessary
and sufficient to p revent overflow .
Sec. 7.7
589
T h e con d ition in (7.7.14) is overly con servative, h ow ever, to the point w here
the input signal m ay be scaled to o m uch. In such a case, m uch o f the precision
used to represent x ( n ) is lost. T his is especially true for narrowband sequ en ces,
such as sinusoids, w here the scaling im plied by (7.7.14) is extrem ely severe. For
narrowband signals w e can use the frequency resp on se characteristics o f the system
in determ ining the appropriate scaling. Since |//(a>)| rep resents the gain o f the
system at frequency co, a less severe and reason ably ad eq u ate scaling is to require
that
m ax |
(7-7 -15)
(ct>) |
0 <o><;r
-------
(7.7.16)
l*t(m )|
m=0
which is now a sum over the M n on zero term s o f the filter unit sam ple response.
A n oth er approach to scaling is to scale the input so that
OO
OO
(7.7.17)
|>-t( ) | 2 =
n ^oo
\H(co)X(co)\2da>
2 * J -*
(7.7.18)
^ /I
B y com b inin g (7.7.17) with (7.7.18), w e obtain
fn
00
T
\hk(n )\2
t^o o
( 1 /2 * ) /
\H(a>)\2da)
J ~n
n = -o o
I M n )|2
00
IM )I
(7-7-20)
n-oo
590
Chap. 7
(7.7.21)
(7.7.22)
W ith this m odel for the q uantization error, the system under consideration is
described by the linear difference eq uation
v( n) = a v ( n 1) + x ( n ) + e(n)
(7.7.23)
(7.7.24)
Sec. 7.7
591
w h ere y ( n ) rep resen ts the response o f the system to * (n ), and q ( n ) rep resen ts the
resp onse o f th e system to the quantization error e(n). U p o n substitution from
(7.7.24) fo r v(n) in to (7.7.23), w e obtain
y ( n ) + q(rt) = a y(n - 1 ) + a q (n - 1) + je(n) + e(n)
(7.7.25)
T o sim p lify the analysis, w e m ake the follow in g assu m p tion s ab ou t the error
seq u en ce e(n).
1. For any n, th e error sequ en ce {e(n)\ is uniform ly distributed o v er the range
( _ i . 2 ~b, i - 2~b). T his im plies that the m ean value o f e(n) is zero and its
variance is
2 - 2b
e = - f i 0 -1.26 )
2 . T h e error {()) is a stationary w hite n oise seq u en ce. In o th er words, the
error e( n) and the error e(m ) are uncorrelated for n ^ m.
3. T h e error seq u en ce {e(n)} is uncorrelated with the signal se q u en ce {*()}.
T h e last assum ption allow s us to separate the differen ce eq u ation in (7.7.25)
into tw o uncou p led differen ce equations, nam ely,
y (n ) = a y(n - 1) + x (n)
(7.7.27)
q (n) = aq(tt - 1) + e ( n )
(7.7.28)
mq = me
h(rt)
(7.7.29)
fl=00
(7.7.30)
w h ere H { 0 ) is the v alu e o f the frequency resp onse H(co) o f th e filter evalu ated at
(o = 0.
T h e seco n d im portant relationship is the exp ression for th e au tocorrelation
seq u en ce o f th e output q ( n ) o f the filter with im pulse resp on se h ( n ) w h en the input
random se q u en ce e{ri) has an autocorrelation y ( n ) . T h is result is
=
i oo/=oo
h ( k ) h ( l ) y te(k l + n)
(7.7.31)
592
Chap. 7
In th e im portant special case w h ere the random seq u en ce is w h ite (spectrally flat),
the autocorrelation yee(n) is a unit sam p le seq u en ce scaled by the variance a 2,
that is,
Yee(n) = cr2S (n)
(7.7.32)
y(n) =
Y , h i k >h ^k + n)
(7 7 33)
fc=00
q2 = < Y , h2^
<7 -7-34>
* = s -O C
and w ith the aid o f P arsevals th eorem , w e have the alternative expression
a] = ^
\H(a>)\2du>
(7.7.35)
In the case o f the sin gie-p ole filter under consideration, the unit sam ple
resp onse is
h (n) = a nu ( n )
(7.7.36)
Since the quantization error d u e to rounding has zero m ean, th e m ean value o f
the error at the ou tp u t o f the filter is m q = 0. T h e variance o f the error at the
output o f the filter is
00
*=
(7.7.37)
,2
1 a2
Sec. 7.7
593
is
OO
*
(7.7.38)
1 - a2
w h ere a 2 = (1 - |a |) 2/3 is the variance o f the input signal. T h e ratio o f the signal
p ow er a 2 to the quantization error p ow er a 2, w hich is called the signal-to-noise
ratio (S N R ), is sim ply
= d
<*}
(7.7.39)
= ( 1 - | s |)2 2 2(6+l)
T his exp ression for th e output S N R clearly illustrates the severe penalty paid
as a con seq u en ce o f the scaling o f the input, expecially w h en the p ole is near the
unit circle. B y com parison, if the input is not scaled and the adder has a sufficient
num ber o f bits to avoid overflow , then th e signal am plitude m ay b e confined to
the range ( 1 , 1 ). In this case, cr2 =
which is in d ep en d en t o f the p ole position.
T hen
2
% = 2 1(b+l)
(7.7.40)
T h e d ifferen ce b etw een th e S N R s in (7.7.40) and (7.7.39) clearly dem onstrates the
need to use m ore bits in addition than in m ultiplication. T h e num ber o f additional
bits d ep en d s on the p osition o f the p ole and sh ou ld b e increased as the p ole is
m oved closer to the unit circle.
N ex t, let us consider a tw o-p ole filter w ith infinite p recision which is described
by the linear d ifferen ce equation
3>(n) = a i y ( n - 1) + a 2y ( n - 2) + .x(n)
(7.7.41)
(7.7.42)
594
Chap. 7
A block diagram for the corresponding m od el is show n in Fig. 7.51. N o te that the
error sequ en ces e\ (n) and e 2 (n) can b e m oved directly to the input o f the filter.
A s in the case o f the first-order filter, the output o f the secon d -ord er filter
can be separated in to tw o com p onents, the desired signal com p on en t and the
quantization error com p onent. T he form er is described by the differen ce equation
y(n) = a t y ( n - 1) + a 2 y(n 2) + x ( n )
(7.7.44)
(7.7.45)
It is reasonable to assum e that the tw o seq u en ces e\( n ) and e 2 (n) are uncorrelated.
N o w the secon d-ord er filter has a unit sam ple resp onse
h ( n ) = sin(/t +
sin 6
) 9 u (n)
(7.7.46)
H en ce
^
X j
j(n)
O'
+ r2
1 _ r 2 r 4 + J __ 2 r 2 c o s 26
(7.7.47)
u(n)
<l(n)
O'0e2(n)
Sec. 7.7
595
B y applying (7.7.34), w e ob tain the variance o f the quantization errors at the output
o f the filter in th e form
k2
(7.7.48)
In the case o f the signal com p on en t, if w e scale the input as in (7.7.14) to
avoid overflow , the p o w er in the output signal is
a l = o 2l ' Y J h 2 {n)
where the p ow er in the input signal
jc()
(7.7.49)
(7.7.50)
X > ( )l
C on sequ en tly, th e S N R at the output o f the tw o-p ole filter is
_\,
0
cr,:
o:
(^+1 )
(7.7.51]
X
> ( n ) l
A lth ou gh it is difficult to determ in e the exact value o f the den om in ator term
in (7.7.51), it is easy to obtain an upper and a low er bound. In particular, |/7 (n)| is
upper b ounded as
\H n )\ < - J r n
sm 6
n>
(7.7.52)
so that
OO
A;
n=o
OC
-I
( 11 - r ) s in e
- s in 0
(7.7.53)
y^h(n)e
jam
< X
> ( ) 1
B ut
1
H(a>) =
(1
- r e j s e-j>)( 1 - r e ~ j ee ~ im)
A t a> = $, w hich is th e reson ant freq u en cy o f the filter, w e ob tain the largest value
o f \HU d )\. H en ce
1
(1 r) V 1 + r 2 2r cos 26
(7.7.54)
596
Chap. 7
T h erefore, the S N R is b ounded from a b ove and b elo w according to the relation
2
2 2
>+i)(i _
r ) 2 s in 2
<
2<6+1)( l - r ) 2( 1 + r 2 -
r c o s 2 9)
( 7 . 7 .5 5 )
<i>+i>( i _
r ) 2
(7.7.56)
Example 7.7.1
Determine the variance of the round-off noise at the output of the two cascade
realizations of the filter with system function
H{z) = Hi (z)H2(z)
where
1
Sec. 7.7
597
m z) =
i- iz -
SolntioD Let h(n), hj(n), and h 2 (n) represent the unit sample responses correspond
ing to the system functions H(z),
M ) = ( jV ^ n )
M ) = (;)*<()
nxO
OO
5 2 h 2 (n) + ^
*i<)
xM
>
vOO
-O
e\(")
K *)
e2(n)
598
Chap. 7
Now
X > i< " ) =
RbO
l-l
>
(") =
1
16
- 15
4
iYs V ( n ) = i _ i r -
i _ iT + i _ j. = 1-83
Therefore,
= 2.90er?
a22 = 3.16ct;
and the ratio of noise variances is
a\
= 1.09
Consequently, the noise power in the second cascade realization is 9% larger than
the first realization.
Sec. 7.8
599
600
Chap. 7
H ess (1971), B rubaker and G ow d y (1972), Sandberg and K aiser (1972), and Jack
son (1969, 1979). T he latter paper deals with lim it cycles in state-sp ace structures.
M eth od s have also b een d evised to elim in ate lim it cycles cau sed by round-off er
rors. For exam ple, the papers by B arnes and Fam (1977), F am and B arnes (1979),
C hang (1981), B utterw eck et al. (1984), and A u e r (1987) discuss this problem .
O verflow oscillation s have b een treated in the pap er by E bert et al. (1969).
T he effects o f param eter quantization has b een treated in a num ber o f papers.
W e cite for reference the work o f R ad er and G old (1967b), K n ow les and O lcayto
(1968), A v en h a u s and S chuessler (1970), H errm ann and Sch u essler (1970b), Chan
and R abiner (1973c), and Jackson (1976).
Finally, w e m en tion that the lattice and lattice-ladder filter structures are
know n to b e robust in fixed-point im plem en tation s. For a treatm ent o f th ese types
o f filters, the reader is referred to the p apers o f G ray and M arkel (1973), M akhoui
(1978), and M orf et al. (1977) and to the b ook by M arkel and Gray (1976).
PROBLEMS
7.1 Determine a direct form realization for the following linear phase filters.
(a) h(n) = {1,2,3,4,3,2,1)
t
Figwe P7J
1A Determine the system function and the impulse response of the system shown in
Fig. P7.4.
7.5 Determine the transposed structure of the systems in Fig. P7.4 and verify that both
the original and the transposed system have the same system function.
Chap. 7
Problems
601
Figure P7.4
7.6 Determine a,, a2, and fi and c0 in terms of b\ and b2 so that the two systems in
Fig. P7.6 are equivalent.
7.7 Consider the filter shown in Fig. P7.7.
(a) Determine its system function.
(b) Sketch the pole-zero plot and check for stability if
(3)
= ^2 = 1,
(2) b{) = >2 = 1,
b\ = 2,
b] = 2,
! = 1.5, fl2 = -0 .9
flj = 1,^2 = 2
(c) Determine the direct form II,parallel-form, and cascade-form realizations for this
system.
<d) Sketch roughly the magnitude response |//(w)| of this system.
7.9 Obtain the direct form I, direct form II, cascade, and parallel structures for the fol
lowing systems.
(a) y(n) = |y (n - 1) - g>>(n - 2) + x(n) + ijc(n - 1)
602
Chap. 7
Figure P7.6
*()
Chap. 7
Problems
603
Figure P7.10
7.13* Write a program that implements a parallel-form realization based on transposed
direct form II second-order modules.
7.14* Write a program that implements a cascade-form realization based on regular direct
form II second-order modules.
7.16 (a) Determine the zeros and sketch the zero pattern for the FIR lattice filter with
parameters
Ki = \,
( b )
K2 = - l
*3 = 1
= -1 .
(c) You should have found that all the zeros lie exactly on the unit d rd e. Can this
( d )
7.17 Consider an FIR lattice filter with coefficients K i = 0.65, K 2 = -0 .3 4 , and K 3 = 0.8.
(a) Find its impulse response by tracing a unit impulse input through the lattice
structure.
( b )
Draw the equivalent direct-form structure.
604
Chap. 7
v(n)
rcos 8
Figure P7.19
7.20 Determine the coupled-form state-space realization for the digital resonator
1
H(z) =
1
- (2 r cos o)z - 1 + r 2 z ~2
7.21 (a) Determine the impulse response of an FIR lattice filter with parameters Aj = 0.6,
Ki = 0.3,
= 0.5, and KA = 0.9.
(b) Sketch the direct form and lattice all-zero and all-pole filters specified by the
^-parameters given in part (a).
7.22 (a) Sketch the lattice realization for the resonator
1
H(z) =
1
Chap. 7
605
Problems
ro 0.111
F = Li
ro.11-1
J'
i J-
roi
=LiJ-
. .
<i=1
(1
(a) Sketch the regular and transpose direct form II realizations of the system.
(b) Determine and sketch the type 1 and type 2 state-space realizations.
(c) Determine the impulse response of the system by inverting H(z) and by using
state-space techniques.
(d) Determine the coupled-form state-space realization.
(e) Repeat parts (a) through (d) for the system obtained by changing the angle of
the poles from jt/3 to n/4.
731 (a) Determine a parallel and a cascade realization of the system
(1
(b) Determine the type 1 and type 2 state-space descriptions of the system in part (a).
7 3 2 Show how to use a lattice structure to implement the following all-pass filter
T<" + 1 ) = [-0 8 1
y(n) = [-1 .8 1
(a) Determine the characteristic polynomial and the eigenvalues of the system.
(b) Determine the state transition matrix $ (n ) for n > 0.
(c) Determine the system function and the impulse response of the system.
( d )
Compute the step response of the system if v(0) = [0 1 ]'.
(e) Sketch a state-space re alizatio n for the system.
606
Chap. 7
^ J v(n) +
v(n + 1 ) =
y(n) =
[1
j x{n)
] v(n)
7 3 5 Repeat Problem 7.33 for the system described by the state-space equations
, ( " + 1 ) - [ c u
y (n )
= [1
1 ] v (n ) + x ( n )
1) - 0 .0 8 y (n 2 ) + jc(r) + x ( r t - 1)
(a) Determine the type 1 and type 2 state-space realizations of the system.
(b) Determine the parallel and cascade state-space realizations of the system.
(c) Determine the impulse response of the system by at least two different methods,
7 3 7 Consider the causal system
- 1)
- n - .-[?]
using the z-transform approach.
7 3 9 A discrete-time system is described by the following state-space model:
F=[-0ji
i] -[!] -[?] -
Chap. 7
607
Problems
exponent
if 5 = 0
if 5 = 1
0
if is the most negative twos-complement value
Determine the range of positive and negative numbers for the following two formats:
12
15
()
24
31
(b)
11
10
23
S
0
short format
M
0
22
M
single-precision format
7.42 Consider the IIR recursive filter shown in Fig. P7.42 and let h F(n), h K(n), and h(n)
denote the impulse responses of the FIR section, the recursive section, and the overall
filter, respectively,
(a) Find all the causal and stable recursive second-order sections with integer coef
ficients (ax, a2) and determine and sketch their impulse responses and frequency
responses. These filters do not require complicated multiplications or quantiza
tion after multiplications.
Figure P7.42
608
Chap. 7
(b) Show that three of the sections obtained in part (a) can be obtained by intercon
nection of other sections.
(c) Find a difference equation that describes the impulse response h{n) of the filter
and determine the conditions for the overall filter to be FIR.
(d) Rederive the results in parts (a) to (c) using z-domain considerations.
7.43 This problem illustrates the development of digital filter structures using Horners
rule for polynomial evaluation. To this end consider the polynomial
p(x) = atpXp + ap- 1*'-1 -I--- h aix + ao
which computes p(x) with the minimum cost of p multiplications and p additions.
(a) Draw the structures corresponding to the factorizations
Hr(z) = b0(l + b i z - l (l + b2 z - l a + b i z ^ ) ) )
H(z) = bv(z ~ 3 + (] z ~ 2 + (b2 Z~ 2 +!%)))
and determine the system function, number of delay elements, and arithmetic
operations for each structure
(b) Draw the Horner structure for the following linear-phase system:
3
H( z ) = Z ~ l
*o +
7.44 Let x\ and xi be (b + l)-bit binary numbers with magnitude less than 1. To compute
the sum of xi and x2 using twos-complement representation we treat them as (b + 1)bit unsigned numbers, we perform addition modulo-2 and ignore any carry after the
sign bit.
(a) Show that if the sum of two numbers with the same sign has the opposite sign,
this corresponds to overflow.
(b) Show that when we compute the sum of several numbers using twos-complement
representation, the result will be correct, even ifthere are overflows, ifthe correct
sum isless than 1 in magnitude. Illustrate this argument by constructing a simple
example with three numbers.
7.45 Consider the system described by the difference equation
y(n) = ay(n - 1) - ax(n) -I-x(n 1)
(a) Show that it is all-pass.
(b) Obtain the direct form II realization of the system
(c) If you quantize the coefficients of the system in part (b), is it still all- pass?
(d) Obtain a realization by rewriting the difference equation as
y(n) = a[y{n - 1)- x(n)] + x(n - 1)
(e) If you quantize the coefficients of the system in part (d), is it still all-pass?
7.46 Consider the system
y(n) = \y ( n - 1) + *()
(a) Compute its response to the input x(n) = (j)"n(n) assuming infinite-predsion
arithmetic.
Chap. 7
Problems
609
(b) Compute the response of the system y(n), 0 < n < 5 to the same input, assuming
finite-precision sign-and-magnitude fractional arithmetic with five bits (i.e., the
sign bit plus four fractional bits). The quantization is performed by truncation.
(c) Compare the results obtained in parts (a) and (b).
7 .4 7 The input to the system
(a) The first five outputs if a = 0.5. D oes the filter go into a limit cycle?
(b) The first five outputs if a = 0.75. Does the filter go into a limit cycle?
7 .5 1 The digital system shown in Fig. P7.51 uses a six-bit (including sign) fixed-point twos-
610
Chap. 7
Figure P7.51
(a) What value of attenuation should be applied prior to the A /D converter to assure
that it does not overflow?
(b) With the attenuation above, what is the signal-to-quantization noise ratio (SNR)
at the A /D converter output?
(c) The six-bit A /D samples can be left-justified, right-justified, or centered in the
eight-bit word used as the input to the digital filter. What is the correct strategy
to use for maximum SNR at the filter output without overflow?
(d) What is the SNR at the output of the filter due to all quantization noise sources?
7 .5 2 Shown in Fig. P7.52 is the coupled-form implementation of a two-pole filter with
poles at x = reje. There are four real multiplications per output point. Let c, (n),
i = 1, 2, 3, 4 represent the round-off noise in a fixed-point implementation of the
filter. Assume that the noise sources are zero-mean mutually uncorretated stationary
white noise sequences. For each n the probability density function p(e) is uniform in
the range - A f l < e < A /2 , where A 2~h.
(a) Write the two coupled difference equations for y(/i) and t>(n), including the noise
sources and the input sequence x(rt).
(b) From these two difference equations, show that the filter system functions H\(z)
and H2 (z) between the input noise terms ej(n) + e2 (n) and e3 (n) + et (n) and the
output y(n) are:
rsin<?z-1
Hiiz)
1
~lrCO& 6 z~v + r 2 z ~2
r cos 6 z~l
r c o s# z - 1 + r 2 z ~2
m t)
We know that
H(z) = - --------~ 2 j => Hri) =
1 - 2 TCOS0 Z- 1 + r 2 z ~2
sin(n + l)0u(/i)
sin#
(*)>
Chap. 7
Problems
611
7.53 Determine the variance of the round-off noise at the output of the two cascade real
izations of the filter shown in Fig. P7.53, with system function
H{z) =
where
" =
H 2(z ) =
A(z)
la
(1 - Q-8ej," V 1)(l L 1
(1 - h - W + 3Z-1)
1r
(1 + i z - H i - sz~l)
1
JL 2( l - 0 . ^ - > ) ( l - 0 . 8 e- > ^ - 1)J
(a) Choose Gi and G 2 so that the gain of each second-order section at to = 0 is equal
to 1.
612
Chap. 7
x (n)
Xn)
k>-f
c,(n)
*2 (n)
(a) Cascade realization I
Figure P7.53
(b) Sketch the direct form 1 , direct form 2, and cascade realizations of the system.
(c) Write a program that implements the direct form 1 and direct form 2, and compute
the first 1 0 0 samples of the impulse response and the step response of the system.
(d) Plot the results in part (c) to illustrate the proper functioning of the programs.
736* Consider the system given in Problem 7.55 with Gi = G 2 = 1.
(a) Determine a lattice realization for the system
H(z) = B(z)
A{z)
(c) Determine a lattice-ladder realization for the system H(z) = B(z)/A(z).
(d) Write a program for the implementation of the lattice-ladder structure in part (c).
(e) Determine and sketch the first 100 samples of the impulse responses of the sys
tems in parts (a) through (c) by working with the lattice structures.
(f) Compute and sketch the first 100 samples of the convolution of impulse responses
in parts (a) and (b). What did you find? Explain your results.
Chap. 7
Problems
613
W ith the background that w e have d evelop ed in the p reced in g chapters, w e are
n ow in a position to treat the subject o f digital filter d esign . W e shall describe
several m eth od s for designing F IR and IIR digital filters.
In the design o f freq u en cy-selective filters, the desired filter characteristics
are specified in th e frequency dom ain in term s o f the desired m agnitude and phase
resp onse o f the filter. In the filter design p rocess, w e d eterm in e th e coefficients of a
causal F IR or IIR filter that closely approxim ates the desired frequency response
specifications. T h e issue o f which type o f filter to design, F IR or IIR , depends
on the nature o f the p roblem and on the specifications o f th e desired frequency
response.
In practice, F IR filters are em p loyed in filtering p rob lem s w here there is
a requirem ent for a linear-phase characteristic w ithin the passband o f the filter.
If there is n o requirem ent for a linear-phase characteristic, eith er an IIR or an
F IR filter m ay b e em p loyed . H ow ever, as a gen eral rule, an IIR filter has lower
sid elo b es in the stopband than an F IR filter having th e sam e n u m b er o f parameters.
F or this reason, if som e p h ase distortion is either tolerab le or unim portant, an IIR
filter is preferable, prim arily because its im plem en tation in v o lv es few er parameters,
requires less m em ory and has low er com putational com p lexity.
In conjunction w ith our discussion o f d igital filter d esign , w e describe fre
quency transform ations in b oth the analog and digital d om ain s for transforming a
low pass p rototyp e filter in to either an oth er low p ass, bandpass, bandstop, or highpass filter.
T oday, F IR and IIR digital filter design is greatly facilitated by the availability
o f num erous com puter softw are program s. In describing th e various digital filter
design m eth od s in this chapter, our primary objective is to give the reader the
background n ecessary to select the filter that b est m atches th e application and
satisfies the design requirem ents.
Sec. B.1
615
General Considerations
section , the issu e o f causality and its im plications is con sid ered in m ore detail.
F ollo w in g this discussion, w e presen t the frequency resp on se characteristics o f
causal F IR and IIR digital filters.
C0 c < O) < 7T
(8. 1.1)
n
coc sin a>cn
n -
(8.1.2)
n^O
A p lot o f h{n) for <oc = n / 4 is illustrated in Fig. 8.1. It is clear that the ideal
low p ass filter is noncausal and h en ce it cannot be realized in practice.
O ne p ossib le solu tion is to introduce a large delay no in h (n) and arbitrarily
to set h in ) = 0 for n < no- H ow ever, the resulting system no longer has an
id eal frequency resp onse characteristic. In d eed , if w e set h ( n ) 0 for n < n0,
the F ourier series exp an sion o f H(to) results in the G ibbs p h en om en on , as will be
described in Section 8.2.
A lth o u g h this discussion is lim ited to the realization o f a low pass filter, our
con clu sion s hold, in gen eral, for all th e other ideal filter characteristics. In brief,
non e o f the id eal filter characteristics previously illustrated in Fig. 4.43 are causal,
h en ce all are physically unrealizable.
A q u estion that naturally arises at this p oin t is the follow ing: W hat are the
necessary and sufficient con d ition s that a frequency resp onse characteristic H(co)
h (n )
Figure 8.1
616
Chap. 8
(8.1.3)
(8.1.4)
h e(n) = \ [ h ( n ) + h ( - n ) ]
(8.1.5)
h 0 (n) = \ [ h ( n ) - h { - n )]
( 8 . 1 .6 )
w here
and
n> 0
(8.1.7)
h ( n ) = 2h 0 (n )u (n ) + h (0)S (n)
n > 1
(8.1.8)
and
Since h 0 {n) = 0 for n = 0, w e cannot recover ft(0) from h 0 (n) and h en ce w e also
m ust know /i(0). In any case, it is apparent that h 0 (n) = h e(n) for n > 1, so there
is a strong relationship b etw een h 0 (n) and h t (n).
If h ( n ) is ab solu tely sum m able (i.e., B IB O stab le), th e frequency response
H{co) exists, and
(8.1.9)
Sec. 8.1
General Considerations
617
In addition, if h (n) is real valued and causal, the sym m etry p rop erties o f the F ourier
transform im ply that
h e(n)
H R(a>)
h 0 (n)
Hi (to)
( 8 . 1. 10)
Since h(n) is co m p letely specified by h e(n), it follow s that H(to) is com p letely
d eterm in ed if w e k n ow H R(to). A ltern atively, H(to) is com p letely determ in ed
from H j(a >) and fc(0). In short, H R(to) and Hi(to) are in terd ep en d en t and cannot
b e specified in d ep en d en tly if the system is causal. E q u ivalen tly, the m agnitude
and phase resp onses o f a causal filter are in terd ep en dent and h en ce cannot b e
specified ind ep en dently.
G iven H g(w) for a corresponding real, even , and ab solu tely sum m able s e
q u en ce h e(rt), w e can determ in e H(to). T h e follow in g exam p le illustrates the p ro
cedure.
Example 8 .L 1
Consider a stable LTI system with real and even impulse response h(n). Determine
H(w) if
1 a cos to
HR(w) SB ----- ----------- - J<*j < 1
1 2 a cos w + a 1
Solution
The first step is to determine he(n). This can be done by noting that
H r (w ) = H r ( z )
where
H ( )=
RZ
1 ~ Q(z +
_ z - a(z 2 + l ) / 2
1 - a(z + z_1) + a 2
(z - a ) ( l ~ a z )
The ROC has to be restricted by the poles at pi = a and pj = \ / a and should include
the unit circle. Hence the ROC is (oj < |z| < l/|o |. Consequently, ht (n) is a twosided sequence, with the pole at z = a contributing to the causal part and p 2 = 1 /a
contributing to the anticausal part. By using a partial-fraction expansion, we obtain
ht(n) =
ifl11+
\&(h)
(8.1.11)
a"()
ae~lto
H R ( k ) U ( t o - k ) d k ~ h e ( 0)
(8.1.12)
618
Chap. 8
w h ere U(u>) is th e Fourier transform o f the unit step seq u en ce u (n). A lth ou gh the
unit step seq u en ce is n ot ab solu tely sum m able, it has a F ourier transform (see
S ection 4.2.8).
U(u)) = n&(a>)+
1
1
- e-J*
(8.1.13)
r/ x + -1 y r1 cot
"
7TS(a))
J2
H,(to) =
H (k) cot
(8.1.14)
T hus HiUo) is uniquely determ in ed from H r (uj) through this integral relationship.
T h e integral is called a discrete H ilb ert tra nsform . It is left as an exercise to the
reader to establish the relationship for H R(a>) in term s o f the discrete H ilbert
transform o f
T o sum m arize, causality has very im portant im plications in the design o f
freq u en cy-selective filters. T h ese are: (a) th e frequency resp on se H(a>) cannot
b e zero, excep t at a finite set o f p oin ts in frequency; (b) th e m agnitude }tf(ti>)|
cannot be con stan t in any finite range o f freq u en cies and the transition from pass
band to stopband cannot b e infinitely sharp [this is a co n seq u en ce o f the G ibbs
p h en o m en o n , w hich results from the truncation o f h (n) to a ch iev e causality]; and
(c) the real and im aginary parts o f H(a>) are in terd ep en dent and are related by the
discrete H ilb ert transform . A s a con seq u en ce, the m agnitu d e \H(a>)\ and phase
0 (<y) o f H(a>) cannot be ch osen arbitrarily.
N o w that w e k n ow th e restrictions that causality im p oses on the frequency
resp onse characteristic and th e fact that ideal filters are not ach ievab le in practice,
w e lim it our atten tion to the class o f linear tim e-invariant system s specified by the
differen ce eq u ation
N
3,(n ) = ~ H ak y(n - *) +
*= 1
bkX<Jl ~ k )
*= 0
w hich are causal and physically realizable. A s w e h ave d em onstrated , such system s
have a frequency response
H(co) =
------------a ke -jwk
(8.1.15)
Jc=l
T h e basic digital filter d esign prob lem is to approxim ate any o f th e ideal frequency
resp onse characteristics w ith a system that has the freq u en cy resp on se (8.1.15), by
properly selectin g the coefficients {ak} and {bt}. T h e approxim ation problem is
Sec. 8.1
General Considerations
619
treated in d etail in Sections 8.2 and 8.3, w h ere w e discuss tech n iqu es for digital
filter design.
Figure &2
620
Chap. 8
) -I-------- H bM- \ x ( n - M +
)
(8.2.1)
w here {*} is the set o f filter coefficients. A ltern atively, w e can exp ress the output
seq u en ce as the con volu tion o f the unit sam p le resp onse h (n) o f th e system with
the input signal. T hus w e have
y(n) =
h (k)x(n-k)
(8 .2 .2 )
w here th e low er and upper lim its on the con volu tion sum reflect the causality and
finite-duration characteristics o f the filter. Clearly, (8.2.1) and (8.2.2) are identical
in form and h ence it fo llow s that i>* = h ( k ), k = 0 , 1 , . . . , M ~ 1 .
T h e filter can a lso be characterized by its system function
M-
(8.2.3)
Sec. 8.2
621
n = 0,1,..., M - 1
(8.2.4)
W hen th e sym m etry and antisym m etry conditions in (8.2.4) are incorporated into
(8.2.3), w e have
H ( z ) = /i(0) + M D z "
(M /2 ) - l
-m
Y ,
M even
(8.2.5)
N o w , if w e sub stitu te z 1 for z in (8.2.3) and m ultiply both sides o f the resulting
eq u ation by z_tw_1), w e obtain
z- (w - i ) H ( z - i ) _ H { Z )
(82>6)
T h is result im plies that the roots o f the polyn om ial H ( z ) are identical to the roots
o f the p olyn om ial H { z - 1 ). C on sequ en tly, the roots o f H ( z ) m ust occur in reciprocal
pairs. In other w ords, if zj is a root or a zero o f H ( z ), then \ / z \ is also a root.
Furtherm ore, if the unit sam ple resp onse h(n) o f the filter is real, com p lex-valu ed
roots m ust occur in com p lex-con ju gate pairs. H en ce, if zi is a com p lex-valu ed
root, z* is a lso a root. A s a con sequ en ce o f (8.2.6), H ( z ) also has a zero at 1 /z j .
Figure 8.3 illustrates the sym m etry that exists in the location of th e zeros o f a
linear-phase F IR filter.
T he frequency resp onse characteristics o f linear-phase F IR filters are o b
tained by evaluating (8.2.5) on th e unit circle. This substitution yield s the exp res
sion for H ( w ) .
622
Chap. 8
(8.2.7)
jm iM ~ 1)/2
fu / __ i \
(M - 3 ) f2
^2
n= 0
^ ( n ) c o s a ) ^ -------- n j
__ i
M odd
( 8 .2 .8)
(Af/2)1
Hr (co) = 2
L7
( M 1
\
^
h (n) cosco ( -------- n j
=o
\
'
M even
(8.2.9)
to
i f t f r fcu) > 0
(8.2.10)
@(<o) =
71 *
i i H
r ( a > ) < 0
W hen
h(n) = h ( M -
- n)
the unit sam ple resp onse is antisym m etric. For M odd, the cen ter p oin t o f the
antisym m etric h(n) is n = ( M - l ) / 2 . C onsequently,
(8.2.11)
where
( -3 )/2
/ M
- 1
Hr (co) 2
^
o
A( n ) s i n a > ( -------- n l
\
2
/
M od d
(8.2.12)
H r(io) = 2
^
=o
A ( n ) s i n o ; f -------- n J
\
2
/
M ev en
(8.2.13)
( M - 1\
"_ < w ( 2 )
'&Hr (a>)>
(o>) =
(8.2.14)
T ~ w( ~
~ )
H H r (co)
< 0
T h ese general freq u en cy resp onse form ulas can b e used to design linearphase F IR filters w ith sym m etric and antisym m etric unit sam ple resp onses. W e
Sec. 8.2
623
n o te that, for a sym m etric h ( n ), the num ber o f filter coefficien ts that specify th e
frequency resp onse is (Af + l ) / 2 w hen M is odd or M / 2 w h en M is even . O n the
other hand, if the unit sam ple resp onse is antisym m etric,
so that there are (Af l ) / 2 filter coefficients w hen M is odd and M / 2 coefficients
w h en M is ev en to be specified.
T he ch o ice o f a sym m etric or antisym m etric unit sam p le resp on se dep en d s
on the application. A s w e shall se e later, a sym m etric unit sam ple resp onse is
suitable for so m e applications, w h ile an antisym m etric unit sam p le resp onse is
m ore su itab le for other applications. For exam p le, if h(n) = h ( M - 1 - ri) and M
is odd, (8.2.12) im plies that Hr (0) = 0 and Hr ( n ) = 0. C on sequ en tly, (8.2.12) is n ot
suitable as eith er a low pass filter or a highpass filter. Sim ilarly, the antisym m etric
unit sam ple resp onse w ith M even also results in H r (0) = 0, as can b e easily verified
from (8.2.13). C onsequently, w e w ould not use the antisym m etric con d ition in the
design o f a low pass linear-phase F IR filter. O n the other hand, the sym m etry
con d ition h(n) = h ( M 1 - n) yields a linear-phase F IR filter w ith a nonzero
resp onse at to = 0 , if desired, that is,
/ Af 1 \
w -W
tfr(0) = / i ( - 1 + 2
h{n),
M odd
(8.2.15)
Hr (0) = 2
M even
(8.2.16)
2 /
n=0
J
n= 0
h ( n ),
In sum m ary, the problem o f F IR filter design is sim ply to d eterm in e the Af
coefficients A( n) , n = 0 , l , . . . , A f 1 , from a specification o f the desired frequency
resp onse Hj(to) o f th e F IR filter. T he im portant param eters in the specification o f
Hd (co) are given in Fig. 8.2.
In the follow in g subsections w e describe design m eth od s based on specifica
tion o f Hjico).
(8.2.17)
ItsO
where
1
f*
hd {n) = /
2j t
Hd {co)ejamd(o
(8.2.18)
624
Chap. 8
In general, the unit sam ple resp onse h d {n) ob tain ed from (8.2.17) is infinite
in duration and m ust be truncated at som e p oin t, say at n = M 1 , to yield an
F IR filter o f length Af. Truncation o f h d (n) to a length M 1 is equivalent to
m ultiplying h d (n) by a rectangular w in d ow , defined as
" " - { i
othervrise " ^
<8 '2 1 9 )
- 1
(8 .2 .2 0 )
n =
{0,
, 1 .........M
otherw ise
It is instructive to con sid er the effect o f the w indow fun ction on the d e
sired frequency response Hd ito). R ecall that m ultiplication o f th e w indow function
w i n ) with h d (n) is equivalent to con volu tion o f H d (w) with Wi<o), w here W(<o) is
the frequency-dom ain representation (Fourier transform ) o f th e w indow function,
that is,
A f-1
W i w ) = Y i w ( n ) e - jwn
n= 0
(8.2.21)
T hus the con volu tion o f H d i<o) with W i w ) yields the freq u en cy resp onse of the
(truncated) F IR filter. That is,
1
f*
H i w ) = / H d( v ) W ( w - v ) d v
2n J.
(8.2.22)
W (w ) = Y e ~ jan
n* 0
(8.2.23)
=
=
1
sin(a>M/2 )
sin(a>/2 )
e~ iw
|sm (<u/ 2 )|
- 7t < w < 7t
(8.2.24)
w h en sin(uAf/2) > 0
}M 1\
& I - I + n ,
w h en sm (tuAf/2) < 0
co
( oj) =
(8.2.25)
Sec. 8.2
625
626
Chap. 8
Name of
window
Time-domain sequence,
h (n ),
0<
n < M
M -l
Bartlett (triangular)
M-
Blackman
Hamming
+ 0.08 cos ^
M -l '
1 /.
M -l
2n n
M -l
2n n \
- 11 c o s ------- r
2 \
M-lJ
Hanning
Kaiser
* [.(!? )]
Lanczos
L >0
, 1
A/ 1 ]
1. ------- <
I
2
I
Tukey
2 L
M -l
-------
0 < or <
) ( M l)/2
(1 aot)(M
l) /2
a(A / l) /2 < n
Af-1 I
)\
A /-1
1 0,
s M < o>c
(8
.2 6 )
o t h e r w is e
- _1
/
M - l\
2 )
n *
(*2.27,
Sec. 8.2
------------------------------- 7--------/ /
0.8
f t
f t
* Z Hanning
0.6
0.4
0.2
627
// /
// *.
Blackman
Rectangular
\
y Hamming
\
\ \\
' *\
\ \\
\ W
V <v.
M- 1
Magnitude (dB )
Figure 8J5
Magnitude (dB)
628
Chap. 8
Type of window
Approximate
transition width of
main lobe
Peak sidelobe
(dB)
Ait/M
&7T/M
%ixjM
&JI/M
YI tz/ M
-1 3
-2 7
-3 2
-4 3
-5 8
Rectangular
Bartlett
Hanning
Hamming
Blackman
< n < M 1
(8.2.28)
) , =
(8.2.29)
Sec. 8.2
629
(a)
0.8
n
a
0.6
oc
2 0.4
o
O 1
0.2
M = 101
0.2
0.3
Normalized frequency
(b)
0.4
630
Chap. 8
* =
,1,
M -l
M
M od d
(8.2.30)
and solve for the unit sample response h ( n ) of the FIR filter from these equally
Sec. 8.2
631
spaced frequency specifications. T o reduce sid elob es, it is desirable to optim ize the
frequency specification in the transition band o f the filter. T his optim ization can be
accom plished num erically on a digital com p uter by m eans o f linear program m ing
tech n iqu es as show n by R abiner et al. (1970).
In this section w e exploit a basic sym m etry property o f th e sam pled frequency
resp onse function to sim plify the com putations. L et us begin with the desired
frequency resp onse o f the F IR filter, w hich is [for sim plicity, w e drop the subscript
in Hd (a>)],
M-
H(a>) =
h ( n )e ~ iwn
(8.2.31)
=o
Su p pose that w e specify the frequency resp on se o f the filter at the freq u en cies
given by (8.2.30). T hen from (8.2.31) w e obtain
H (k + a) = H ^ - i k + a y j
H (k + a) s
M -1
Y h ( n ) e ~ i2n{k+a)n,M
n= 0
k = 0 , 1 , . . . . Af 1
(8.2.32)
n = 0,1,...,A/ 1
(8.2.33)
(8.2.34)
T h is sym m etry co n d ition , along with the sym m etry con d ition s for \h (n )), can b e
u sed to reduce the frequency specifications from M p oin ts to ( M + l ) / 2 p oin ts for
M od d and M f l p oin ts for M even . T hus the linear eq u ation s for determ ining
{h(n)} from [ H ( k + a )} are considerably sim plified.
In particular, if (8.2.11) is sam pled at the freq u en cies
= 2n ( k + a ) / M ,
k = 0, 1 , . . . , Af 1, w e obtain
/ 2 jt
H ( k + a ) = Hr l (k + a ) J
(8.2.35)
632
Chap. 8
w here j3 = 0 w h en
is sym m etric and p = 1 w hen {h(n)} is antisym m etric. A
sim plication occurs by defining a set o f real frequency sam ples { G (k + m)}
G ( k + a ) = ( ~ l ) kH r
k = 0 , 1 .........M - l
(8.2.36)
(8.2.37)
N o w the sym m etry con d ition for H ( k + a ) given in (8.2.34) tran slates into a corre
sponding sym m etry con d ition for G (k + a ), which can be ex p lo ited by substituting
into (8.2.33), to sim plify th e expressions for the F IR filter im pu lse resp onse {h(n))
for the four cases ar = 0, a = j ,
= 0, and f$ = \ . T h e results are sum m arized in
T able 8.3. T h e d etailed derivations are left as exercises for the reader.
A lth o u g h the frequency sam pling m eth od provides us w ith another m ean s for
designing linear-phase F IR filters, its major advantage lies in th e efficien t frequency
sam pling structure, w hich is obtained w hen m ost o f the freq u en cy sam ples are zero,
as dem onstrated in S ection 7.2.3.
T h e follow in g exam p les illustrate the design o f linear-phase F IR filters based
on the frequency sam pling m ethod. T h e optim um valu es for th e sam ples in the
transition band are ob tain ed from the tables in A p p en d ix C w h ich are taken from
the paper by R abiner et al. (1970).
Example 8 .2 . 1
Determine the coefficients of a linear-phase FIR filter of length M 15 which has a
symmetric unit sample response and a frequency response that satisfies the conditions
1,
0.4,
0.
* = 0 ,1 , 2, 3
k=4
k = 5 ,6 , 7
Solution Since h(n) is symmetric and the frequencies are selected to correspond to
the case a = 0, we use the corresponding formula in Table 8.3 to evaluate h(n). In
this case
G(k) = ( ~ l ) kHr
' 2n k \
)
u j
k = 0 , 1 ........7
= -0.014112893
= -0.001945309
= 0.04000004
= 0.01223454
-0.09138802
= -0.01808986
= 0.3133176
= 0.52
Sec. 8.2
633
Symmetric
H(k) = G(k)e>*k/M
k = 0,1...., M - 1
G(Jt) C l)*r
a =
<?(*) = ~G(M - *)
G(0) + 2
= *
G(*) cos
Jk=l
M -l
+ i)
M odd
f->-
A/ even
tf (* + i) = G (k + A) e->*/2e>0*+D/2*f
|(+
^ = EC(* Sin (*
G ( * + i ) = ( - l) * f f r
G (i + i) = G (M - k - i)
2
. ,
,v
jt
+ 5) (" + 5)
Antisymmetric
H(k) = G(k)eJ,r/2eJ,lk/M
k = 0,1,..., M - 1
G{k) = (-1)kHr ( j p j
G(k) = G(M - k)
h{n) = -^7 V
G(fc)sin^^ (n + ;)
Af
'
Af v
*() =
{ l)"+1G(A//2) - 2
G(&)sin
Af odd
( + j)
(* + i) = G (* + i) e 0k+l)fUI
G{k + \) = ( - l ) kHr \ ~ (* + l)j
G (k + i) = - G (Af - k - \) ;G(M/2) = 0 for Af odd
* (n )=
j; 12 G(k+5) 005
Af - 3
V =
( * + j ) (w + 2)
Af odd
Af even
Af even
634
Chap. 8
3ir
4
The frequency response characteristic of this filter is shown in Fig. 8.14. We should
emphasize that Hr{w) is exactly equal to the values given by the specifications above
at a)k = 2jr)t/15.
Example HJ- 2
* = 7, 8,.... 15
where T\ = 0.3789795 for a = 0, and 7\ = 0.3570496 for a = 5 . These values of T\
were obtained from the tables of optimum transition parameters given in Appendix C.
The appropriate equations for this computation are given in Table 8.3 for
a = 0 and a =
These computations yield the unit sample responses shown in
Table 8.4. The corresponding frequency response characteristics are illustrated in
Figs. 8.15 and 8.16, respectively. Note that the bandwidth of the filter for a = 5 is
wider than that for a = 0.
Solution
Sec. 8.2
635
TABLE 8.4
M = 32
ALPHA 0 .
T1 * 0 . 3 7 8 9 7 9 5 E + 0 0
= -0 .7 1 4 1 9 7 8 E -0 2
= - 0 . 3 0 7 0 8 0 I E - 02
0 . 5B 91327E-02
= 0 . 1349923E-01
= 0 . 8087033E-02
* -0 .1 1 0 7 2 5 8 E -0 1
- 0 . 2420687E-01
- 0 . 9446550E-02
= 0 . 2544464E-01
= 0 . 3985050E-01
0 . 2753036E-02
= - 0 . 5913959E-01
= - 0 . 6841660E-01
= 0 . 3 175741E-01
= 0.2080981E+00
= 0 . 3471138E+00
h ( 0)
h ( 1)
h ( 2)
h ( 3)
h ( 4)
h ( 5)
h ( 6)
h ( 7)
h ( 8)
h ( 9)
h(10)
h (1 1 )
h (1 2)
h(13)
h (14)
h(15)
= - 0 . 40B9120E-02
= - 0 . 9973779E-02
= - 0 . 7379891E-02
= 0 . 5949799E-02
= 0 . 1727056E-01
= 0 . 7878412E-02
= - 0 . 1798590E-01
= -0 .2 6 7 0 5 8 4 E -0 1
= 0 . 3778549E-02
= 0 . 4191022E-01
= 0.283 9 3 4 4 E -0 1
= - 0 . 4 1 6 3 144E-01
= - 0 . 8254962E-01
= 0 . 2802212E-02
= 0 . 2013655E+00
= 0 . 3717532E+00
Magnitude (d B )
h ( 0)
h ( 1)
h ( 2)
h ( 3)
h ( 4)
h ( 5)
h ( 6)
h ( 7)
h ( 8)
h ( 9)
h(10)
h (ll)
h (1 2)
h(13)
h (1 4)
h (15)
M * 32
ALPHA 0 . 5
T1 = 0 . 3 5 7 0 4 9 6 E + 0 0
636
Figure 8.16
32 and a =
Chap. 8
5).
a)M
M-
G (k + a )
l)/2
(8.2.38)
w here
[-G (M -k),
G{k + or) _ | C (M _ k _ j ^
a = 0
asci
(8.2.39)
sin
H(co) =
(w M
\
G ( k + a)
u> IX
2
~ M (k +
a)\
where
r(lr,
f G ( M k) ,
a = 0
(8.2.41)
W ith these ex p ression s for the frequency resp onse H(co) given in term s o f the
desired frequency sam p les {G (*+<*)}, w e can easily explain th e m eth o d for selectin g
the param eters {G(k + a )} in th e transition band w hich result in m inim isin g the
peak sid elo b e in th e stopband. In brief, th e valu es o f G ( k + a ) in the passband are
Sec. 8.2
637
set to (1)* and th ose in th e stopband are set to zero. F or any ch oice o f G (k +ot)
in the transition band, the value o f H ( w ) is com puted at a d en se set o f frequencies
(e.g., at co = 2n n / K , n = 0, 1 , . . . , K 1, w h ere, for exam p le, K = 10M ) . T he
valu e o f the m axim um sid elo b e is d eterm ined, and the valu es o f the param eters
[G (k + a)} in th e transition band are changed in a d irection o f steep est descent,
w hich, in effect, red u ces th e m axim um sid elob e. T h e com p utation o f H(a>) is now
rep eated w ith the n ew ch oice o f {G(k + a )}. T h e m axim um sid elob e o f H ( a>) is
again determ in ed and the values o f the param eters {G (ik+a)} in the transition band
are adjusted in a direction o f steep est d escen t that, in turn, reduces the sidelobe.
T his interactive process is perform ed until it con verges to the optim um choice o f
the param eters {G(jfc + a )} in the transition band.
T h ere is a p otential p roblem in the frequency-sam pling realization o f the FIR
linear-phase filter. T h e frequency sam pling realization o f the F IR filter introduces
p o les and zeros at equally spaced p oints on the unit circle. In the ideal situation, the
zeros can cel the p o les and, con sequ en tly, the actual zeros o f H ( z ) are determ ined
by the selectio n o f the frequency sam ples { / / ( i k - f a ) } . In a practical im plem entation
o f the frequency-sam pling realization, how ever, q uantization effects preclude a
perfect can cellation o f the p oles and zeros. In fact, the location o f p oles on the
unit circle provide no dam ping o f th e rou n d -off n oise that is introduced in the
com putations. A s a result, such n oise tends to increase w ith tim e and, ultim ately,
m ay destroy the norm al operation o f the filter.
T o m itigate this problem , w e can m ove b oth the p o le s and zeros from the
unit circle to a circle just inside the unit circle, say at radius r = 1 e, w here e
is a very sm all num ber. T hus the system function o f the linear-phase F IR filter
b eco m es
(8.2.42)
T h e corresponding tw o -p ole filter realization given in Section 7.2.3 can be m odified
accordingly. T h e dam ping provided by selecting r < 1 ensures that rou n d off noise
will be b ou n ded and thus instability is avoided.
638
Chap. 8
and even ly across th e stopband o f the filter m inim izing the m axim um error. T he
resulting filter designs have ripples in b oth the passband and th e stopband.
T o describe the design procedure, let us con sid er the design o f a lowpass
filter with passband ed ge frequency a>p and stop b an d ed ge frequency oos. From
the general specifications given in Fig. 8.2, in th e passband, the filter frequency
resp onse satisfies the condition
1 - i < Hr (w) < 1 + Si
M < o)p
(8.2.43)
Similarly, in the stopband, the filter frequency resp on se is sp ecified to fall betw een
the lim its 5 2 > that is,
8 2 < Hr ((D) < S2
M > OJ,
(8.2.44)
Thus Si represents the ripple in the passband and &2 rep resen ts th e attenuation or
ripple in the stopband. T h e rem aining filter param eter is M , th e filter length or
the num ber o f filter coefficients.
L et us focus on the four different cases that result in a linear-phase F IR filter.
T h ese cases w ere treated in Section 8.2.2 and are sum m arized b elow .
h(ri)
COS
c u f -------- n )
(8.2.45)
a (k) =
* V( ^ ) -
(8.2.46)
(M - 1 ) /2
^
a (k) cos (ok
(8.2.47)
kse0
/ i ( ) c o s g j | -------- n l
n= o
(8.2.48)
(M
Sec. 8.2
639
up.
H r(w) = X
/
1\
b(k) cos to [ k - - j
(8.2.50)
(A//2 ) 1 _
H k)co sa > k
o
(8.2.51)
w h ere the coefficients {(*)] are linearly related to the coefficients {i>(fc)}. In fact,
it can b e show n that the relationship is
m
= \ h i)
k = 1,2,3,..., y
-2
(8.2.52)
/ M _ 1
\
A( ) s i n a > f -------- n l
\
2
/
(8.2.53)
* = L 2 .........(Af l ) / 2
(8.2.54)
(8.2.55)
H r (co )=
5Z
*=i
(8.2.56)
w h ere th e coefficients {c(Jfc)} are linearly related to the p aram eters {c(Jfc)}. T h is d e
sired relationship can b e derived from (8.2.55) and (8.2.56) and is sim ply
640
Chap. 8
given as
' M - l
m - -m
c(k 1) c(k 4- 1) = 2c(k)
(8.2.57)
2 < k <
M -5
5(0) + \ c ( 2 ) = c( l )
(Mf2 ) 1
/ M _ 1
\
X
/i(n)sincti ( - - n \
=o
\
2
/
(8,2.58)
A change in the sum m ation index from n to k = M f l n com b ined with a definition
o f a n ew set o f filter coefficients {^(*)), related to {/i(n)} according to
d (k)~ 2 h (^-k^j
* = l,2,...,y
(8.2.59)
results in th e expression
M/2
j \
(8.2.60)
A s in the previous tw o cases, w e find it con ven ien t to rearrange (8.2.60) in to the
form
(j)
Hr (a>) = s i n
ft
*=o
mm
(8.2.61)
w here the n ew filter p aram eters {d(fc)} are related to {<*()} as follow s:
H
d(k -
t
1
- ' H
) - d(k) =
2 d(k)
M
< k <
(8.2.62)
d(0 ) - \ d ( 1 ) = d( 1 )
T h e exp ression s for H r (a>) in these four cases are sum m arized in T ab le 8.5.
W e n o te that the rearrangem ents that w e m ade in ca ses 2, 3, an d 4 h ave allow ed
Sec. 8.2
641
Filter type
h(n) ~ h(M M odd
(case 1 )
Q(<o)
P(co)
y ' a(k)coscok
k=0
(M/2 J- 1
b(k) cos cok
M
- n)
- n)
CO
COS
2
h(n) = ~ h ( M - I - n)
Af odd
(case 3)
sin to
h(n) = h{M 1 n)
M even
(case 4)
. co
sin
(M-31/2
Y
km0
(*/2 )-l
d(k) cos cok
kmO
us to express H r (co) as
H r (co) = Q(co)P(co)
(8.2.63)
where
Q(<o) =
case
COS
case
sin co
.
CO
sin
case 3
(8.2.64)
case 4
(8.2.65)
with {(*)} representing the param eters o f the filter, w hich are linearly related to
th e unit sam ple resp onse h (n) o f th e F IR filter. T h e upper lim it L in the sum is
L = ( M - l ) / 2 for Case 1, L = (Af 3 )/2 for C ase 3, and L = A f/2 1 for C ase 2
and C ase 4.
In addition to the com m on fram ew ork given ab ove for the representation
o f H r (eo), w e also define th e real-valued desired frequency resp onse H j r ((o) and
the w eigh ting function W(co) on the approxim ation error. T h e real-valued d e
sired frequency resp onse Hdr (co) is sim ply defined to b e unity in the passband and
zero in the stopband. For exam p le, Fig. 8.17 illustrates several d ifferen t typ es
o f characteristics for Hdr(co). T he w eigh ting function on the approxim ation er
ror allow s u s to ch o o se the relative size o f the errors in the different frequency
b ands (i.e., in th e passband and in the stopband). In particular, it is con ven ien t to
norm alize W(co) to unity in the stopband and set W(a>) = B2 /& 1 in the passband,
642
Chap. 8
HdJ&)
(a)
(b)
H dr{w )
(o]
o>2
(c)
tu
that is,
W(a>)
I S2 /S 1 ,
co in the passband
& in the stopband
(8.2.66)
Then w e sim ply select W(a>) in the passband to reflect our em p h asis o n the relative
size o f the ripple in the stopband to the ripple in the passband.
W ith th e specification o f Hdr(oi) and W O ), w e can n ow d efin e the w eighted
approxim ation error as
E(a>) = W ( o ) [ H dr(co) - Hr (a>)\
= W (w )[ H dr((o) - Q(co)P(w)]
Sec. 8.2
643
= W(co)Q(co)
Hdr(co)
. Q(C0 )
(8.2.67)
P(co)
For m athem atical con ven ien ce, w e define a m odified w eigh ting function W (co) and
a m odified desired frequency resp onse Hdr(co) as
W(a>) = W(co)Q(co)
Hdr(co) =
( 8 .2 .68)
Hdr(co)
Q(co)
T h en the w eigh ted approxim ation error m ay b e exp ressed as
E(co) = W(co)[Hdr(co) ~ P(o>)\
(8.2.69)
min
m ax [ ( oj)|
min
m ax \W(co)[Hdr(co) y ^ g ( * ) c o s cok]\
. WfS
*=o
(8.2.70)
w here 5 rep resents the set (disjoint union) o f frequency bands over which the
op tim ization is to be perform ed. B asically, the set 5 consists o f the passbands and
stopbands o f the desired filter.
T h e solu tion to this problem is due to Parks and M cC lellan (1972a), w ho
applied a th eorem in the theory of C h eb ysh ev approxim ation. It is called the
al ternation theo rem , which w e state w ithout proof.
over (a ( i) J
toeS
over jo<(t)}
tt).
i
P(co) = y ^ g ( f c )c o s cok
k= 0
to b e the unique, best w eigh ted C hebyshev approxim ation to Hdr(co) in S, is that
the error function E (co) exhibit at least L + 2 extrem al freq u en cies in S. That is,
there m ust exist at least L + 2 freq u en cies {co,} in 5 such that co\ < c&i < < coL+2,
E(coj) = E(a>i+j), and
jfO oi)! = m a x \E(cv)\
axS
i = 1,2,..., L + 2
W e n o te that the error function E(co) alternates in sign b etw een tw o su cces
sive extrem al frequencies. H en ce the theorem is called the alternation theorem .
T o elab orate on the alternation theorem , let us con sid er the design o f a
low p ass filter with passband 0 < co < cop and stopband cos < co < t t . Since the
644
Chap. 8
desired frequency resp onse Hdr(&) and the w eigh ting function W (w ) are p iecew ise
constant, w e have
dE{w)
d
~ = ( W O ) [Hdr(w) - H r {w) }
dw
aw
_
d H r (w) = Q
dw
C onsequently, the freq u en cies {oj,} corresponding to the p eak s o f E (w ) also cor
respond to peaks at w hich H r (w) m eets the error toleran ce. Since H r(w) is a
trigonom etric polyn om ial o f d egree L , for C ase 1, for exam p le,
L
H r (w) Y _ a ( k ) co s wk
k=0
l
]P a r (* )
X ^ni(C O SW )n
i=0
L
= ][V (Jfc)(cosa> )k
*=o
(8.2.71)
it follow s that Hr (w) can have at m ost L 1 local m axim a and m inim a in the op en
interval 0 < w < n . In addition, w = 0 and w = n are usually extrem a o f H r (w) and,
also, o f E{w). T h erefore, H r {w) has at m ost L - l - l extrem al frequencies. Further
m ore. the ban d -ed ge freq u en cies w p and ws are also extrem a o f E (w ), since |(a>)|
is m axim um at w = wp and w = ws . A s a con seq u en ce, there are at m ost L + 3 ex
trem al frequencies in ( w) for the unique, best approxim ation o f the ideal low pass
filter. O n the other hand, the alternation theorem states that there are at least L + 2
extrem al freq u en cies in E (w ). T hus the error function for th e low pass filter design
has either L + 3 or L + 2 extrem a. In gen eral, filter designs that contain m ore than
L + 2 alternations or ripples are called extra ripple filters. W h en the filter design
contains the m axim um num ber o f alternations, it is called a m a x i m a l ripple filter.
T he alternation th eorem guarantees a unique solu tion for the C hebyshev
optim ization problem in (8.2.70). A t the desired extrem al freq u en cies {w}, w e
have the set o f equations
W (w n)[Hdr(wn) - P ( w n)] = ( - i y \ 5
= 0 , 1 .........L + 1
(8.2.72)
n = 0 , 1 .........L + 1
^
= H dr((On)
W (v*)
= 0,1,..., L + 1
(8.2.73)
Sec. 8.2
645
I f w e treat the {()} and S as the param eters to be determ in ed , (8.2.73) can be
exp ressed in matrix form as
1
co s COo
co s 2 cdo
cos Lwo
a (0 )
Hdr (<*>0 )
W(coo)
1
co s cd\
co s 2 o>]
cos Lcoi
- 1
a(l)
W(<ui)
c o s w t+ i
c o s 2 a>z,+i
cosZ.gj+ i
a(L)
(-l)i
Hdr(0 h )
_ H dr (&1 +1 ) _
(8.2.74)
Initially, w e k n ow neither the set o f extrem al freq u en cies {io} nor the p a
ram eters {(*()} and S. T o solve for the param eters, w e use an iterative algorithm ,
called th e R e m e z e xch an ge a lgorithm [see R abiner et al. (1975)], in which w e
begin by guessing at the set o f extrem al freq u en cies, d eterm in e P (w ) and <5, and
then co m p u te the error function E (w ). From (w ) w e d eterm in e an oth er set o f
L + 2 extrem al freq u en cies and repeat the process iteratively until it con verges to
the optim al set o f extrem al freq u en cies. A lth ou gh the m atrix eq u ation in (8.2.74)
can b e used in the iterative procedure, matrix inversion is tim e consum ing and
inefficient.
A m ore efficient procedure, su ggested in the paper by R abiner et al. (1975),
is to co m p u te <5 analytically, according to the form ula
S=
Y\
( - r V u i
W(o)o)
W (w i)
W { a>t + i)
(8.2.75)
w here
(8.2.76)
x = cosa)
n = 0 , 1.....L + 1
(8.2.77)
646
Chap. 8
w e can use the Lagrange interpolation form ula for P(a>). T h u s P(to) can be ex
pressed as [see H am m ing (1962)]
L
> ( o * )[& /(*
JC *)]
(8.2.78)
H aving the solu tion for P(co), w e can n ow com p ute the error function E(co) from
(o>) = W{u>)[Hdr{a>) - P(co)]
(8.2.80)
on a den se set o f frequency points. U sually, a num ber o f p oints equal to 16Af,
w here M is the length o f the filter, suffices. If |(&))| > 8 for so m e freq u en cies on
the den se set, then a new set o f frequencies corresponding to the L + 2 largest peaks
o f |(<y)| are selected and the com putational procedure b egin n ing with (8.2.75)
is repeated. Since the new set o f L + 2 extrem al freq u en cies are selected to
correspond to the peaks o f the error function |(a>)|, the algorithm forces 5 to
increase in each iteration until it con verges to the upper b ou n d and h en ce to the
optim um solu tion for the C h eb ysh ev approxim ation problem . In other words,
w hen [(a>)| < 5 for all frequencies on the d en se set, the optim al solu tion has
b een found in term s o f the polynom ial H(co).
A flowchart o f the algorithm is sh ow n in Fig. 8.18 and is d u e to R em ez (1957).
O nce the optim al solu tion has b een ob tain ed in term s o f P(co), the unit
sam ple resp onse h (n) can b e com p uted directly, w ithout h aving to com p ute the
p aram eters (ar(fc)}. In effect, w e have d eterm ined
H r(co) = Q ( oj) P ( co)
w hich can be evalu ated at co = 2n k / M , k = 0, 1 , . . . , (Af l ) /2 , for Af odd, or
A f/2 for M ev en . T hen, d ep en d ing on the type o f filter b ein g d esign ed , h (n) can
b e determ in ed from th e form ulas given in T able 8.3.
A com puter program written by Parks and M cC lellan (1972b) is available for
d esigning iinear phase F IR filters b ased on the C h eb ysh ev approxim ation criterion
and im plem en ted with the R em ez exch an ge algorithm . T h is program can be used
to design low pass, highpass or bandpass filters, differentiators, and H ilbert trans
form ers. T he latter tw o types o f filters are described in the follow in g section s. A
num ber o f softw are packages for designing equiripple lin ear-ph ase F IR filters are
n ow available.
T h e P ark s-M cC lellan program requires a num ber o f in p u t param eters which
determ in e th e filter characteristics. In particular, the follow in g param eters must
Sec. 8.2
647
Initial guess of
M + 2 extremal freq.
Fifnre 8.18
Flowchart o f R em ez algorithm.
b e specified:
L IN E 1
N F 1 LT:
JT Y P E :
T yp e o f filter
JT Y P E = 1 results in a m ultiple passband/stopband filter.
648
Chap. 8
JT Y P E = 2 results in a differentiator.
JT Y P E = 3 results in a H ilb ert transform er.
N BA NDS:
The num ber o f frequency bands from 2 (for a low pass filter) to
a m axim um o f 1 0 (for a m ultiple-band filter).
L G R ID :
L IN E 2
EDGE:
L IN E 3
FX:
L IN E 4
W TX;
The follow in g exam p les d em onstrate the use o f this program to design a
low pass and a bandpass filter.
Example 8.23
Design a lowpass filter of length M = 61 with a passband edge frequency f p = 0.1
and a stopband edge frequency f s = 0.15.
Solution The lowpass filter is a two-band filter with passband edge frequencies
(0,0.1) and stopband edge frequencies (0.15,0.5). The desired response is (1, 0) and
the weight function is arbitrarily selected as ( 1 , 1 ).
61, 1, 2
0.0, 0.1,0.15,0.5
1. 0. 0.0
1. 0, 1.0
The result of this design is illustrated in Table 8 .6 , which gives the filter coefficients.
The frequency response is shown in Fig. 8.19. The resulting filter has a stopband
attenuation of - 5 6 dB and a passband ripple of 0.0135 dB.
If w e increase the length o f the filter to M = 101 w h ile m aintaining all the
other param eters given ab ove the sam e, the resulting filter h as the frequency re
sp o n se characteristic sh ow n in Fig. 8.20. N o w , th e stopband atten u ation is 85 dB
and the passband ripple is reduced to 0.00046 dB .
W e should indicate that it is p ossib le to in crease the atten u ation in the stop
band by k eep in g th e filter len gth fixed, say at Af = 61, and decreasin g the weighting
function W(co) = S2 / S 1 in th e passband. W ith Af = 61 and a w eigh ting function
649
Chap. 8
Magnitude (dB)
650
Figure 8.19
Figure
Example 8*2,4
Design a bandpass filter of length M = 32 with passband edge frequencies f pi = 0.2
and fpi = 0.35 and stopband edge frequencies of f M\ = 0.1 and f ,2 = 0.425.
Sec. 8.2
651
Solution This passband filter is a three-band filter with a stopband range of (0,0.1), a
passband range of (0.2,0.35), and a second stopband range of (0.425,0.5). The weight
ing function is selected as (1 0 .0 , 1 .0 , 1 0 .0 ), or as ( 1 .0 , 0 .1 , 1 .0 ), and the desired response
in the three bands is (0.0,1.0,0.0). Thus the input parameters to the program are
32, 1, 3
0.0,0.1,0.2,0.35,0.425,0.5
0 . 0, 1. 0, 0.0
10.0, 1. 0, 10.0
The results of this design are shown in Table 8.7, which gives the filter coefficients.
We note that the ripple in the stopbands Bz is 10 times smaller than the ripple in
TABLE 8.7
(13)
(14)
(15)
(16)
= 0 .,8 5 1 3 6 1 6 0 E - 0 1 = H(
= -0..1 2 0 2 4 9 8 8 E + 0 0 = H (
= - 0 .,2 9 6 7 8 5 8 0 E + 0 0 * = H(
= 0 . 3 0 4 1 0 9 1 3 E + 0 0 = H(
BAND 1
BAND 2
20)
19)
18)
17)
Chap. 8
Magnitude (d B )
652
Figure JL21
the passband due to the fact that errors in the stopband were given a weight of 10
compared to the passband weight of unity. The frequency response of the bandpass
filter is illustrated in Fig. 8.21.
T h ese exam p les serve to illustrate the relative ease w ith which optim al low pass, highpass, bandstop, bandpass, and m ore general m ultiband linear-phase FIR
filters can be designed based on the C h eb ysh ev approxim ation criterion im ple
m ented by m eans o f the R em ez exch an ge algorithm . In the n ext tw o sections w e
consider the design o f differentiators and H ilbert transform ers.
7r < u) < n
(8.2.81)
Hd((*>)eiwnda>
2n
cosnn
j(jDeJconda>
oo < n < oo, n ^ 0
(8.2.82)
Sec. 8.2
653
W e ob serve that the ideal differentiator has an antisym m etric unit sam ple resp onse
[i.e., h d (n) = h d( n)]. H en ce, h d (0) = 0.
In this section w e consider the design o f lin ear-ph ase F IR differentiators
b ased o n the C h eb ysh ev approxim ation criterion. In view o f the fact that the
ideal differentiator has an antisym m etric unit sam p le resp onse, w e shall con fine
our atten tion to F IR designs in which h ( n ) = h ( M 1 n). H en ce w e con sid er
the filter types classified in the p receding section , as C ase 3 and C ase 4.
W e recall that in C ase 3, w h ere Af is od d , the real-valu ed frequency resp onse
o f the F IR filter H r(co) has the characteristic that H r (0) = 0. A zero resp onse at
zero freq u en cy is just the con d ition that the d ifferen tiator should satisfy, and w e
se e from T ab le 8.5 that b oth filter types satisfy this con d ition . H ow ever, if a fullband differentiator is desired, this is im possib le to ach ieve with an F IR filter having
an od d num ber o f coefficients, since H r ( n ) = 0 for Af odd. In practice, h ow ever,
full-band differentiators are rarely required.
In m ost cases o f practical interest, the desired freq u en cy resp onse character
istic n eed o n ly be linear over the lim ited frequency range 0 < co < 2 n f p , w h ere f p
is called the bandw idth o f the differentiator. In the frequency range 2n f p < co < n ,
the desired resp onse m ay be either left unconstrained or constrained to b e zero.
In the design o f F IR differentiators b ased on the C h eb ysh ev approxim ation
criterion, the w eigh ting function W(co) is sp ecified in th e program as
(8.2.83)
W (co) =
0 < co < 2 n f p
co
in order that the relative ripple in the passband be a constant. T hus the ab solu te
error b etw een the desired resp onse co and th e approxim ation Hr(co) increases as
co varies from 0 to 2n f p. H ow ever, the w eigh ting fun ction in (8.2.83) ensures that
the relative error
8
m ax
O s a><2nfp
H r (CO)
m ax
1 -
(8.2.84)
Example 8^5
Use the Remez algorithm to design a linear-phase FIR differentiator of length hi =
60. The passband edge frequency is 0.1 and the stopband edge frequency is 0.15.
2 ,
0.1,
0.0
1.0
0.15,
0.5
The results of this design including the filter coefficients are shown in Table 8 .8 . The
frequency response characteristic is illustrated in Fig. 8.22. Also shown in the same
figure is the approximation error over the passband 0 < / < 0 . 1 of the filter.
TABLE 8.8
F I N I T E I M P U L S E R E S P O N S E (FIR)
LINEAR-PHASE DIGITAL FILTER DESIGN
REMEZ EXCHANGE ALGORITHM
DIFFERENTIATOR
FILTER LENGTH = 6 0
IMPULSE RESPONSE '
H ( 1) = - 0 . 1 2 4 7 8 0 7 5 E - 0 2 = -H{ 60)
- 0 . 1 5 7 1 3 5 6 0 E - 02 = -H( 59)
H ( 2)
H ( 3) = 0 . 3 6 8 4 6 7 3 7 E - 0 2 = -H ( 58)
0 . 1 9 2 9 8 0 2 0 E - 0 2 = - H ( 57)
H ( 4) =
H( 5) = 0 . 1 4 2 6 4 1 4 I E - 02 = - H ( 56)
H ( 6) = - 0 . 1 7 6 1 5 2 7 7 E - 0 2 = -H( 55)
H ( 7) = - 0 . 4 3 1 1 0 5 7 3 E ~ 02 = -H( 54)
- 0 . 4 6 9 5 3 4 0 5 E - 0 2 = -H( 53)
H ( 8)
H ( 9) = - 0 . 1 4 1 0 5 2 4 4 E - 02 * -H( 52)
0 . 4 1 6 9 4 2 2 2 E - 0 2 = -H( 51)
H (10)
H (11) = 0 . 8 5 7 3 6 2 1 5 E - 0 2
- H ( 50)
H (12) =
0 . 7 9 8 1 3 0 3 1 E - 0 2 = -H( 49)
0 . 1 1 8 3 3 3 8 5 E - 0 2 = H ( 48)
H(13)
H (14) = - 0 . 8 7 3 9 6 0 6 5 E - 0 2 = -H( 47)
H (15) = - 0 . 1 5 4 0 1 8 4 7 E - 0 1 = H ( 46)
H (16) K - 0 . 1 2 8 7 8 4 4 5 E - 0 1 = -H ( 45)
H (17) = - 0 . 1 8 8 2 6 8 7 2 E - 0 3 = ~H( 44)
H (18) = 0 . 1 6 6 2 0 5 0 6 E - 0 1 = -H ( 43)
H (19) ss 0 . 2 6 7 4 1 5 2 3 E - 0 1 = -H( 42)
H (20) = 0.2 0 8 9 2 0 1 8 E - 0 1 = -H ( 41)
H(21) = - 0 . 1 8 5 8 4 0 9 5 E - 02 = -H( 40)
H (22) = - 0 . 3 1 1 0 9 9 0 9 E - 0 1 = -H ( 39)
H (23) = - 0 . 4 8 8 2 2 1 7 6 E - 0 1 = -H( 38)
H (24) = - 0 . 3 8 6 7 3 4 5 3 E - 01 = " H ( 37)
H (2 5) = 0 . 3 6 7 6 0 1 2 2 E - 0 2 = -H( 36)
H (26) =
0 . 6 5 4 6 2 4 7 8 E - 0 1 = -H ( 35)
H (27) = 0 . 1 2 0 6 6 3 1 7 E + 0 0 = -H( 34)
H (28) = 0 . 1 4 1 8 2 1 3 4 E + 0 0 = -H( 33)
H (29) = 0 . 1 1 4 0 3 7 5 7 E + 0 0 * -H( 32)
H ( 3 0 > = 0 . 4 3 6 2 0 0 8 0 E - 0 1 = - H ( 31)
BAND 1
BAND 2
LOWER BAND EDGE
0.0000000
0.1500000
UPPER BAND EDGE
0.1000000
0.5000000
DESIRED SLOPE
10.0000000
0.0000000
WEIGHTING
1.0000000
1.0000000
DEVIATION
0.0073580
0.0073580
E X T R E M A L F R E Q U E N C I E S --- M A X I M A O F T H E E R R O R C U R V E
0.0010417
0.0156250
0.0312500
0.0468750
0.0614583
0.0750000
0.0875000
0.0968750
0.1000000
0.1500000
0.1552083
0.1666667
0.1822916
0.1979166
0.2156249
0.2322916
0.2489582
0.2666668
0.2843754
0.3020839
0.3187508
0.3364594
0.3541680
0.3718765
0.3906268
0.4083354
0.4260439
0.4447942
0.4625027
0.4812530
0.5000000
654
655
Normalized Error
X .001195
Error X .000736
Magnitude
Sec. 8.2
Normalized frequency
Fifure
Frequency response and approximation error for M = 60 FIR differentiator of
Example 8.2.5.
The im portant p aram eters in a differentiator are its len gth Af, its bandwidth
{band-edge frequency) f p, and the p eak relative error S o f th e approxim ation. T he
in terrelationship am ong th ese three param eters can be easily displayed param et
rically. In particular, th e value o f 20 log 10 S versus f p w ith Af as a param eter is
sh ow n in Fig. 8.23 for Af even and in Fig. 8.24 for Af odd. T h ese results, due to
R abiner and Schafter (1974a), are useful in the selection o f th e filter length, given
specifications on the inband ripple and the cu toff frequency f p.
A com parison o f th e graphs in Figs. 8.23 and 8.24 reveals that even -len gth
differentiators result in a significantly sm aller approxim ation error S than com pa
rable od d -len gth d ifferentiators. D esig n s based o n Af odd are particularly p oor if
656
Chap. 8
the bandw idth ex ceed s f p = 0.45. T h e problem is b asically th e zero in the fre
q u en cy resp onse at co = n ( f = 1 /2 ). W h en f p < 0.45, g o o d d esign s are obtained
for M odd, but com parable-length d ifferen tiators with M even are always better
in the sense that the approxim ation error is sm aller.
In view o f the ob viou s advantage o f even -len gth over od d -len gth differentia
tors, a conclusion m ight b e that even -len gth differentiators are alw ays preferable in
practical system s. T his is certainly true for m any applications. H ow ever, w e should
n o te that th e signal d elay introduced by any linear-phase F IR filter is ( M 1)/2,
w hich is n ot an integer w hen M is even . In m any practical applications, this is
unim portant. In so m e applications w here it is d esirable to h ave an integer-valued
d elay in the signal at th e output o f th e differentiator, w e m ust se lect M to be odd.
T h ese num erical results are b ased on d esign s resulting from the C hebyshev
approxim ation criterion. W e w ish to indicate it is also p o ssib le and relatively
Sec. 8.2
657
easy to design linear phase F IR differentiators based o n the frequency sam pling
m eth od . F or exam p le, Fig. 8.25 illustrates the frequency resp onse characteristics o f
a w ideband ( f p = 0.5) differentiator, o f length M 30. T h e graph o f the ab solu te
valu e o f th e approxim ation error as a function o f freq u en cy is also show n in this
figure.
(8.285)
Chap. 8
Error (dB)
Magnitude
658
Figure fL25 Frequency response and approximation error for M = 30 FIR differentiator
designed by frequency sampling method.
H ilbert transform ers are frequently used in com m u n ication system s and signal
processing, as, for exam ple, in the gen eration o f sin gle-sid eb an d m odulated signals,
radar signal processin g, and sp eech signal p rocessing.
T h e unit sam ple resp onse o f an idea! H ilbert transform er is
hd(n) = J
Hd(u>)eja,ndco
Sec. 8.2
659
2 sin2(jrn/2)
(8.2.86)
n
0,
2 :z
f < co <
2n f u
(8.2.87)
w here f t and / are the low er and upper cu toff freq u en cies, respectively.
It is interesting to n ote that the ideal H ilbert transform er with unit sam ple
resp onse hd (n) as given in (8.2.86) is zero for n even . T his property is retained by
the F IR H ilbert transform er under som e sym m etry con d ition s. In particular, let
us consider the C ase 3 filter type for which
(W-l)/2
(8.2.88)
and su p p ose that ft = 0.5 f u. This ensures a sym m etric passband about the
m idpoint frequency / = 0.25. If w e have this sym m etry in the frequency resp onse,
Hr (co) = Hr ( n co) and h en ce (8.2.88) yields
(*
IM-D/2
J ' c(k) sin<w/k c o s 7T/k
fc-i
(M-D /2
7 ! c ( k) ( 1)*+1 sini>*
or equivalently,
(M- 1)/2
(8.2.89)
Clearly, c(k) m ust b e eq u al to zero for jfc 0, 2, 4,
660
Chap. 8
N o w , th e relationship b etw een (c()} and the unit sam p le resp on se {/?() j is,
from (8.2.54),
or, equivalently,
(8.2.90)
If c(k) is zero for k = 0, 2, 4 , . . . , then (8.2.90) yield s
0,
0 ,2 , 4 , . . . . for
h{k) =
0,
k 1, 3 , 5 , . . . , for ^
ev en
(8.2.91)
^ od d
U n fortu n ately, (8.2.91) h old s only for M odd. It d o es n ot h old for M even . This
m ean s that for com parable values o f M , the case M odd is preferab le since the
com p utational com p lexity (num ber o f m ultiplications and ad d ition s per output
p oin t) is roughly o n e half o f that for M even.
W hen th e design o f th e H ilbert transform er is perform ed b y the C hebyshev
approxim ation criterion using the R em ez algorithm , w e se lect th e filter coefficients
to m inim ize the peak approxim ation error
S =
max
[Hdr(ai) Hr (co) ]
2jtft <a><2xfm
(8.2.92)
=
m ax
2jrfi<w<2x / ,
[1 - Hr ((t>)]
Thus the w eighting function is set to unity and th e op tim ization is perform ed over
the single frequency band (i.e., the passband o f th e filter).
Example 8.2.6
Design a Hilbert transformer with parameters M = 31, // = 0.05, and / , = 0.45.
Solution We observe that the frequency response is symmetric, since f u = 0.5 - fiThe parameters for executing the Remez algorithm are
31.
0.05,
3,
0.45
1.0
1.0
The result of this design is the unit sample response coefficients and the peak ap
proximation error & = 0.0026803 or 51.4 dB given in Table 8.9. We observe that,
indeed, every other value of h(n) is essentially zero (these values are of the order of
10~7). The frequency response of the Hilbert transformer is shown in Fig. 826.
Sec. 8.2
661
0 .4 1 9 5 7 5 1 6 E - 0 2 = -H< 31)
0 .6 4 3 1 0 2 5 7 E - 0 7 = ~H( 30)
0 . 9 2 8 2 2 4 4 4 E - 0 2 = -H ( 29)
0 .5 2 6 9 3 9 2 7 E - 0 7 = -H< 28)
0,.1 8 8 3 5 9 8 8 E - 0 1 = -H ( 27)
0 .8 2 3 0 8 2 8 3 E - 0 7 = -H( 26)
= 0..3 4 4 0 1 1 9 0 E - 0 1 = -H ( 25)
= 0..9 3 3 2 8 7 9 4 E - 0 7 = -H( 24)
0.,5 9 5 5 1 7 3 8 E - 0 1 = -H( 23)
=
= 0..5 0 8 2 1 1 7 1 E - 0 7 = -H( 22)
H (11) = 0. 1 0 3 0 3 7 8 2 E + 0 0 = ~H( 21)
H (12) = 0. 1 7 6 1 2 1 3 8 E - 0 7 = -H( 20)
H (13) = 0. 1 9 6 8 3 1 6 7 E + 0 0 = -H< 19)
H (14) = -0. 2 3 9 7 7 6 0 6 E - 0 7 = -H ( 18)
H {15) = 0. 6 3 1 3 5 3 7 4 E + 0 0 = -H ( 17)
H (16) = 0. 0
BAND 1
LOWER BAND EDGE
0.0500000
UPPER BAND EDGE
0.4500000
DESIRED VALUE
1.0000000
WEIGHTING
1.0000000
DEVIATION
0.0026803
E X T R E M A L F R E Q U E N C I E S --- M A X I M A O F T H E E R R O R C U R V E
0.0500000
0.1583333
0.3124998
=
=
=
=
=
0.0562500
0.1874999
0.3416664
0.0750000
0.2187499
0.3708331
0.1000000
0.2499998
0.3999997
0.1291666
0.2812498
0.4249997
Mfi % -0 .6 1 log10 8
(8.2.93)
662
Chap. 8
Magnitude (d B )
Figure 8.26
8.6.6.
H en ce this form ula can be used to estim ate the size o f on e o f th e three basic filter
param eters w h en the other tw o param eters are specified.
In concluding this section , w e wish to sh ow that H ilb ert transform ers can
also be designed by the w indow m eth od and th e freq u en cy sam pling m ethod.
F or exam p le, Fig. 8.28 illustrates the frequency resp onse o f an M = 31 H ilbert
transform er design ed using the frequency sam pling m ethod. T h e corresponding
values o f the unit sam ple resp onse are given in T ab le 8.10. A com parison o f these
filter param eters with th ose given in T able 8.9 indicates so m e sm all differences.
In particular, it appears that the C h eb ysh ev approxim ation criterion gives signifi
cantly sm aller valu es for the filter coefficients that should b e zero. In general, the
C h eb ysh ev approxim ation criterion results in b etter filter designs.
Sec. 8.2
663
-10
-20
-3 0
I
I
-4 0
-50
1 - 60
o
s
o
"
-7 0
-8 0
-9 0
-100
-1 1 0
-1 2 0
0.02
0.04
0.06
0.08
0.10
Transition width ( A f )
Figure JL27 Curves o f 201og 10S versus A f for M 3, 4, 7, 8, 15, 16, 31, 32, 63,
64. [From paper by Rabiner and SchafeT (1974b). Reprinted with permission of
AT&T.]
664
Chap. 8
Magnitude ( d B )
Figure 8-28 Frequency response of M 31 FIR Hilbert transform filter designed by the
frequency sampling method.
passband and the stopband o f the filter, this m eth od results in an optim al filter d e
sign, in the sense that for a given set o f specifications just d escrib ed , the m axim um
sid elob e level is m inim ized.
T h e C hebyshev design p rocedure based on the R em ez exch an ge algorithm
requires that w e sp ecify the length o f the filter, the critical freq u en cies iop and ws,
and the ratio S2/Si- H o w ever, it is m ore natural in filter design to specify iop , cos , 5j,
and S2 and to d eterm in e th e filter length that satisfies the sp ecification s. A lth ou gh
there is n o sim ple form ula to determ in e the filter length from th e se specifications,
a num ber o f approxim ations h ave b een prop osed for estim ating M from cop , ojs ,
Si, and S2. A particularly sim p le form ula attributed to K aiser for approxim ating
M is
A = - 2 0 1 o g ,,( ^ ) - 1 3 +1
14.6 A f
where A f is the transition band, defined as A f = (cos - a)p) f l u . This form ula
has b een given in the paper by R abiner et al. (1975). A m ore accurate form ula
proposed by H errm ann et al. (1973) is
M =
>oo(Si, S2) - f ( S u S2 ) ( A f ) 2
*
2n }> + 1
A/
(8.2.95)
w here, by definition,
>00( 51, S2) = [0.005309(loglo <5; )2 + 0 .0 7 1 14(log105i) - 0.4761 J(Iog 10 S2)
- [0.00266(log10 Sx)2 + 0.5941 lo g 10 5i + 0.4278]
(8.2.96)
(8.2.97)
Sec. 8 2
665
(RELATIVE)
(RELATIVE)
= 0.5000000E-01
= 0.4500000E+00
IMPULSE RESPONSE:
H ( 0)
H ( 1)
H ( 2)
H ( 3)
H ( 4)
H ( 5)
H< 6)
H ( 7)
H ( 8)
H ( 9)
H (10)
H (11)
H(12)
H (13)
H(14)
= -0.1342662E-03
=
0.2133148E-02
0.4848863E-02
= 0.2286159E-02
0.1423532E-01
= 0.1517075E-02
=
0.3001805E-01
= 0.5263533E-03
=
0 .5 5 7 4 7 2 1 E - 0 1
= -0.2281570E-03
= 0.1001032E+00
H (22)
H(23)
H(24)
H(25)
H (26)
H (27)
=
=
=
=
=
-0. 5 3 3 8 3 2 6 E - 0 3
= 0.1949848E+00
= -0.3994641E-03
= 0.6307253E+00
H {15) = - 0 . 9 3 3 5 9 5 6 E - 0 6
H (16) s - 0 . 6 3 0 7 2 4 5 E + 0 0
H ( 1 7 ) = 0.3996222E-03
H (18) = - 0 . 1 9 4 9 8 5 3 E + 0 0
H (19) = 0 . 5 3 4 1 3 0 7 E - 0 3
H (20) = - 0 . 1 0 0 1 0 3 5 E + 0 0
H (21) = 0 . 2 2 8 5 3 3 8 E - 0 3
-0.5574735E-01
-0.5263340E-03
-0.3001794E-01
-0.1517240E-02
-0.1423557E-01
= -0.2285915E-02
H (28) = - 0 . 4 8 4 8 2 1 5 E - 0 2
H (29) = - 0 . 2 1 3 3 8 0 0 E - 0 2
H (30) = 0 . 1 3 4 4 1 6 2 E - 0 3
666
Chap. 8
T h ese form ulas are extrem ely useful in obtaining a g o o d estim ate o f the filter
length required to ach ieve the given specifications A / , 61, and 82 . T he estim ate
is used to carry out the design and if the resulting 8 ex ceed s th e specified 82 , the
length can b e increased until w e obtain a sid elo b e level that m eets the specifica
tions.
0
w here {a*} and {/S*} are the filter coefficients, or by its im pulse resp onse, which is
related to Ha (s) by the L aplace transform
(8.3.2)
A ltern atively, the analog filter having the rational system fun ction H ( s ) given in
(8.3.1), can b e described by the linear con stan t-coefficien t d ifferen tial equation
(8.3.3)
w here x ( t ) d en o tes the input signal and ;y(f) d en o tes the ou tp u t o f the filter.
E ach o f th ese three eq u ivalen t characterizations o f an an alog filter leads to
alternative m eth od s for converting the filter in to the digital dom ain, as will be
described in S ection s 8.3.1 through 8.3.4. W e recall that an analog linear tim einvariant system with system function H ( s ) is stable if all its p o le s lie in the left
half o f the j-p la n e. C on sequ en tly, if the con version tech n iqu e is to be effective, it
should p ossess th e follow in g d esirable properties:
L T h e j Q axis in the s-p lan e should m ap in to the unit circle in the z-plane.
T hus there w ill b e a direct relationship b etw een the tw o frequency variables
in the tw o dom ains.
Sec. 8.3
667
2. T h e left-h alf plane (L H P ) o f the 5-plane should m ap into the inside o f the
unit circle in the z-plane. T hus a stable analog filter w ill b e con verted to a
stable digital filter.
W e m en tio n ed in the p receding section that physically realizable and stable
IIR filters cannot have linear phase. R ecall that a linear-phase filter m ust have a
system function that satisfies the con d ition
H ( z ) = z ~ n H ( z ~ 1)
(8.3.4)
w here z ~ N represents a d elay o f N units o f tim e. B u t if this w ere the case, the
filter w ou ld have a m irror-im age p o le ou tsid e the unit circle for every p o le inside
th e unit circle. H en ce the filter w ou ld be unstable. C on sequ en tly, a causal and
stable IIR filter cannot have linear phase.
If the restriction o n physical realizability is rem oved , it is p ossib le to obtain
a linear-phase IIR filter, at least in principle. T his approach in volves perform ing a
tim e reversal o f the input signal x ( n ), passing x ( n) through a digital filter H( z ) ,
tim e-reversing the output o f H( z ) , and finally, passing th e result through H( z )
again. T his signal processing is com putationally cu m bersom e and appears to offer
no advantages over linear-phase F IR filters. C on sequ en tly, w hen an application
requires a linear-phase filter, it should be an F IR filter.
In the design o f IIR filters, w e shall specify the desired filter characteristics
for the m agnitude response only. T his d oes not m ean that w e con sid er the phase
resp onse unim portant. Since the m agnitude and phase characteristics are related,
as indicated in Section 8.1, w e specify the desired m agnitude characteristics and
accept the phase response that is ob tain ed from the design m eth od ology.
y ( n T ) - y i n T - T)
dt
(g.3.5)
w h ere T represents the sam pling interval and y(n) = y { n T ) . T h e analog differ
en tiator w ith output d y ( t ) / d t has th e system function H ( s ) = s, w hile the digi
tal system that produces the output [y(n) >-(n 1 ) ] /T has the system function
H ( z ) = (1 z ~ y) / T . C on sequ en tly, as show n in Fig. 8.29, th e frequency-dom ain
668
yit)
Chap. 8
dyjt)
dt
H(s) = s
(a)
y(n)
i-z
H(Z)
(b)
1 - z "1
(8.3.6)
d 2y{t)
dt2
i= nT
'dy(t)
dt
t=nT
\ y ( n T) - y ( n T - T ) ] / T - [ y ( n T - T) - y { n T - 2 T ) ] / T
y ( n ) - 2 y ( n - 1) + y( n - 2)
(8.3.7)
r2
2 z ] +
Z~2
T2
( \
~ \
- I n
z _1
2
(8.3.8)
(8.3.9)
C onsequently, th e system function for the digital IIR filter ob tain ed as a result of
the approxim ation o f the d erivatives by finite d ifferen ces is
H(z) =
(8.3.10)
1
2
1-sT
(8.3.11)
Sec. 8.3
669
1
. QT
1+ &T2+ J \ + &T2
(8.3.12)
_ _
(8.3.13)
has b een p rop osed , w h ere {a*} are a set o f param eters that can b e selected to
op tim ize the approxim ation. T h e resulting m apping b etw een the 5-plan e and the
z-plane is n ow
(8.3.14)
Unit circle
j-plane
Figure 8 3 0
670
W h en z =
Chap. 8
w e have
L
j Y ak sin w *
*=i
(8.3.15)
2 x^
1 = ^ a* sin<uJt
* k=l
(8.3.16)
is the resulting m apping b etw een the tw o frequency variables. B y proper choice
o f the coefficients {a*} it is p ossib le to m ap the j l - axis in to th e unit circle. Fur
therm ore, p oin ts in the L H P in 5- can b e m apped into points in sid e the unit circle
in z.
D esp ite achieving the tw o d esirable characteristics w ith th e m apping of
(8.3.16), the prob lem o f selectin g the set o f coefficients (a*} rem ains. In general,
this is a difficult problem . Since sim pler tech n iqu es exist for converting analog
filters in to IIR digital filters, w e shall not em p hasize the u se o f the Lth-order
d ifferen ce as a sub stitu te for the derivative.
Example 83.1
Convert the analog bandpass filter with system function
H{S) = (*'+0.1 )2 + 9
into a digital IIR filter by use of the backward difference for the derivative.
( i ^ + 0.l) +9
r 2/(i + o . 2 r + 9.oir2)
2(1 + 0.17)
,
1
1 + 0 . 2 7 + 9.01 f 2
l+ 0 .2 7 + 9 .0 ir 2
The system function H(z) has the form of a resonator provided that T is selected
small enough (e.g., T < 0 .1 ), in order for the poles to be near the unit circle. Note
that the condition af < 4ai is satisfied, so that the poles are complex valued.
For example, if T = 0.1 , the poles are located at
P i,2 = 0.91 jO.27
= 0.949eyi6'5
W e n o te that th e range o f reson ant freq u en cies is lim ited to lo w freq u en cies, due to
the characteristics o f the m apping. T h e reader is en cou raged to p lo t the frequency
resp o o se H(co) o f th e digital filter for d ifferen t valu es o f T and com p are th e results
w ith th e frequency resp onse o f the an alog filter.
Sec. 8.3
671
Example 8-3.2
Convert the analog bandpass filter in Example 8.3.1 into a digital IIR filter by use of
the mapping
s = j(z~ z-')
1
+9
z2T
n = 0,1,2,...
(8.3.17)
**-00
w h ere / = F / F s is the norm alized frequency. A liasin g occurs if the sam pling rate
Fj is less than tw ice th e highest frequency con tained in X a (F).
E xp ressed in the con text o f sam pling th e im pulse resp onse o f an analog
filter with frequency response Ha (F), the digital filter w ith unit sam ple response
h(n) s ha{ nT) has the frequency resp onse
OO
W ) = F,
Ha[ ( f - k)Fs]
(8.3.19)
H a [ (to - 2 n k ) F s]
(8.3.20)
**
00
or, eq u ivalen tly,
00
H(a>) = Fs Y
672
Chap. 8
H J C iT )
Ha ( n -
(8.3.21)
Figure 8.31 depicts the frequency resp onse o f a low pass an alog filter and the
frequency response o f the corresponding digital filter.
It is clear that the digital filter w ith frequency resp onse H(<d ) has the fre
quency response characteristics o f th e corresponding analog filter if the sam pling
interval T is selected sufficiently sm all to com p letely avoid or at least m inim ize
the effects o f aliasing. It is also clear that the im pulse invariance m eth od is in
appropriate for d esigning highpass filters due the to spectrum aliasing that results
from the sam pling process.
T o investigate the m apping o f p oin ts b etw een the z-p lane and the j-p la n e
im plied by the sam pling process, w e rely on a generalization o f ( 8.3 .2 1 ) which
relates the z-transform o f h(n) to the L aplace transform o f ha (t). This relation
ship is
fl(z )i * = j Y
H ( * -
^ 3 -22)
Sec. 8.3
673
w here
OO
H(z) = X > ( n ) z - n
73=0
OO
* Y
h M e ' sTn
<8 -3-23)
(8.3.24)
If w e sub stitu te j = a + j Q. and express the com p lex variable z in polar form as
e = r e jai, (8.3.24) b eco m es
r e j = eaTejnT
Clearly, w e m ust have
r = eaT
(8.3.25)
co = Q.T
C on sequ en tly, a < 0 im plies that 0 < r < 1 and a > 0 im plies that r > 1. W hen
a = 0, w e have r ~ 1. T h erefore, the L H P in s is m apped inside the unit circle in
z and the R H P in s is m apped ou tsid e the unit circle in z.
A lso , the j Q- ax\ s is m apped into th e unit circle in z as indicated above. H o w
ever, the m apping o f the y'fi-axis in to the unit circle is n ot on e-to -o n e. Since co
is unique over th e range (tt, tt), the m apping co = Q.T im p lies that the interval
n / T < 2 < n / T m aps into the corresponding values o f tt < co < n. Fur
therm ore, the frequency interval n / T < Cl < 3 n / T also m aps in to the interval
n < co < 7i and, in general, so d o es the interval (2k - V ) n / T < 2 < (2k -(- \ ) t t / T ,
w hen k is an integer. T hus the m apping from th e analog frequency 2 to the fre
q uency variable co in the digital dom ain is m any-to-on e, w hich sim ply reflects the
effects o f aliasing due to sam pling. Figure 8.32 illustrates the m apping from the
j-p la n e to the z-p lane for the relation in (8.3.24).
T o exp lore further the effect o f the im pulse invariance design m eth od on
th e characteristics o f the resulting filter, let us express the system function o f the
analog filter in partial-fraction form. On the assum ption that the p o les o f the
analog filter are distinct, w e can write
N
Ha(s) = Y
(8.3.26)
w here {/>*} are the p o les o f the analog filter and {c*} are the coefficients in the
partial-fraction exp an sion . C onsequently,
N
M O = Y CkePkt
k- i
(8.3.27)
674
Chap. 8
(8.3.28)
N ow , with the substitution o f (8.3.28), the system fun ction o f the resulting digital
IIR filter b eco m es
H( z ) = ] T / i ( n ) z - n
w*0
oo / N
= E
n=0 \*=1
N
(8.3.29)
i= l
=o
f t
- ------- f
1 - e Tz - 1
(8.3.31)
ffPkT
Zk = e
k = 1 , 2 , . . . , AT
(8.3.32)
Sec. 8.3
675
A lth o u g h the p o les are m apped from the .y-plane to th e z-p lane by the relationship
in (8.3.32), w e should em phasize that the zeros in th e tw o dom ains do not satisfy the
sam e relationship. T herefore, the im pulse invariance m eth od d o es not correspond
to the sim p le m apping o f points given by (8.3.24).
T h e d ev elo p m en t that resulted in H ( z ) given by (8.3.31) was based on a filter
having distinct p oles. It can b e generalized to in clu d e m ultiple-order p oles. For
brevity, h ow ever, w e shall not attem pt to gen eralize (8.3.31).
Example 833
Convert the analog filter with system function
Then
l
676
Chap. 8
Since the two poles are complex conjugates, we can combine them to form a
single two-pole filterwith system function
H{z) =
1 (e 017 cos3T)z~
1 (2e~0 lT cos 3T)z~l + e~2Tz~
Sec. 8.3
677
(8.3.33)
(8.3.35)
(8.3.36)
(8.3.37)
'J y ( n) ~
~ f ) y(~n
~ f l x (n ) + x (n ~
(8.3.38)
( i + ~ ) y(z) - ( ! ~
) z ~l y ( z ) = T
(1 +
Z1)X(Z)
X( z )
( bT pL)(\ + z~')
1 + a T / 2 ~ (1 a T pL)z~l
or, equivalently,
H(z) =
------
(8.3.39)
678
j -p lane
Chap. 8
to th e z-p lane is
5= H r r )
(8'3'40>
2 z ~
Tz +
2 r e Ja> - 1
T re>w + 1
r2 1
2r sin co
= - ( + jT \ 1 + r 2 + 2r co s co
J 1 + r 2 + 2r cos co,
C onsequently,
_
A =
2
r2-
T 1 + r2 + 2 r cos <
(8.3.41)
2
2 r sin co
-------------
---------- --
( 8 .3 .4 2 )
T l+ r
2r
cos co
Q =
sin to
T 1 + c o s co
= - tan 2
T
(8.3.43)
K
oT
co=2tan~1
(8.3.44)
or, equivalently,
T h e relationship in (8.3.44) b etw een the frequency variables in the tw o dom ains
is illustrated in Fig. 8.36. W e ob serve that the entire range in 2 is m apped only
o n ce in to the range n < a> < n . H ow ever, the m apping is high ly n onlinear. W e
o b serve a frequency com p ression or f r equency warping, as it is usually called , due
to the n onlinearity o f the arctangent function.
It is also interesting to n o te that th e b ilinear transform ation m aps th e point
s = oo into th e p oin t z 1. C on sequ en tly, th e sin gle-p ole low p ass filter in
Sec. 8.3
679
Figure 836
(8.3.33), which has a zero at s = oo, results in a digital filter that has a zero at
z = 1.
Example 83.4
Convert the analog filter with system function
into a digital IIR filter by means of the bilinear transformation. The digital filter is
to have a resonant frequency of wr = jt/2 .
Solution First, we note that the analog filter has a resonant frequency
= 4. This
frequency is to be mapped into cur = jt/2 by selecting the value of the parameter T.
From the relationship in (8.3.43), we must select T = \ in order to have cor - it f l .
Thus the desired mapping is
1 + 0 .0 0 0 6 z - 5 + 0 .9 7 5 z -2
W e note that the coefficient of the z~l term in the denominator of H(z) is extremely
small and can be approximated by zero. Thus we have the system function
0.128 + 0 .0 0 6 z-1 - 0 .1 2 2 z -2
;---------T h is filter h as p o le s at
p i .2 = 0.987e,r/2
680
Chap. 8
and ze ro s at
zi
.2 =
- 1 , 0.95
Solution The digital filter is specified to have its -3-d B gain at wc = 0.2n. In the
frequency domain of the analog filter we 0 .2 n corresponds to
fZc = tan0.l7r
_
065
7
1 - 0 .5 0 9 Z - 1
Sec. 8.3
681
(8.3.45)
pa
w here {z*} are the zeros and {p*} are the p o les of the filter . T hen the system
function for the digital filter is
M
Y [ ( l - e ^ Tz ~ x)
(8.3.46)
f ] a - ^ V ' )
*=i
w here T is the sam pling interval. Thus each factor o f the form (s a) in H( s )
is m apped into the factor (1 eaTz ~ l ). This m apping is called the matched- z
transformation.
W e ob serve that the p oles ob tain ed from the m atched-z transform ation are
identical to the p oles ob tain ed with the im pulse invariance m eth od . H ow ever, the
tw o techniques result in d ifferent zero positions.
T o preserve the frequency resp onse characteristic o f the analog filter, the
sam pling interval in th e m atched-z transform ation m ust b e properly selected to
yield the p o le and zero locations at the eq u ivalen t position in the z-plane. Thus
aliasing m ust be avoid ed by selectin g T sufficiently sm all.
682
Chap. 8
Butterworth filters. L ow pass B utterw orth filters are all-p ole filters char
acterized by the m agnitude-squared freq u en cy response
1H (S2) 12 = l + ( 2 / n c)2* =
i + cH n/np)M
(8'3
47)
where N is the order o f the filter, 2C is its 3-dB freq u en cy (usually called the
cu toff freq u en cy), Qp is the passband ed ge frequency, and 1/(1 + e 2) is th e banded ge valu e o f |H (2)|2. Since H ( s ) H ( s) evaluated at j = j l is sim ply equal to
|//( 2)|2, it fo llo w s that
H(sW-s) - t
t f W
<8-3'48)
k = 0,1,..., N - 1
and h ence
sk - n ce j 7r/2e j(2k+l)7r/2N
* = 0 , 1 .........N 1
(8.3.49)
For exam ple, Fig. 8.37 illustrates the p ole p osition s for an N = 4 and N 5
Butterw orth filters.
T he frequency response characteristics o f the class o f B utterw orth filters are
show n in Fig. 8.38 for several valu es o f N. W e n ote that
(2)|2 is m on oton ic
in both the passband and stopband. T h e ord er o f the filter required to m eet an
attenuation 82 at a specified frequency 2, is easily d eterm in ed from (8.3.47). Thus
at 2 = 2* w e have
*
i
-2
e H n I / a p ) 2N
61
and hence
_ tog [ ( l / g ) - 1 ] _ . W
O
21og(G,/W
log(S J,/n,)
2000jt
Sec. 8.3
683
Figure 8.37
1)
21ogio 2
= 6.64
To meet the desired specifications, we select N = 7. The pole positions are
st = \0007rei{nfl+cu+l,*/u]
0,1.2.....
684
Chap. 8
l#(2)P
(8.3.51)
w here e is a param eter o f the filter related to the ripple in th e passband and Tn (x )
is the W th-order C hebyshev polyn om ial defined as
t
\ cos(Af c o s- 1 * ),
c o s h w c o d .- 1* ),
|x |
<1
|X|>1
, ox
( 8 J '52)
Sec. 8.3
685
AT = 1 , 2 , . . .
(8.3.53)
or, equivalently.
N odd
Figure 8-39
N even
Type I Chebyshev filter characteristic.
686
Chap. 8
(8.3.56)
20
w here
+72 + 1
1/ N
(8.3.57)
T he p ole locations are m ost easily d eterm in ed for a filter o f ord er N by first locating
the p o les for an equ ivalen t iVth-order B utterw orth filter that lie on circles o f radius
rj or radius r2, as illustrated in Fig. 8.40. If w e d en o te the angular p osition s o f the
p o les o f the B utterw orth filter as
(2k +
1)7T
(8.3.58)
2N
then the p osition s o f the p oles for the C hebyshev filter lie on the ellip se at the
coordinates (xk, yt ) , k = 0, 1 , . . . , N 1 , w here
xk = r 2 cos <pk,
k = Q ,l,...,N -l
yk = r i sin <pk.
k = 0,1, . . . , N - 1
(8.3.59)
Figure 8.40
Sec. 8.3
687
(8.3.60)
w here Ty( x) is, again, the N th -ord er C hebyshev p olyn om ial and 2* is the stopband
frequency as illustrated in Fig. 8.41. T h e zeros are located on the im aginary axis
at th e points
k = 0,1,..., N - 1
Sk = j sin f a
(8.3.61)
Slsxk
0, 1 ,
-1
(8.3.62)
* = 0,1,..., A f-1
(8.3.63)
* =
yf*l + Vk
wk
Qyk
y/xk + y k2
where j**} and {yk} are defined in (8.3.59) with 0 now related to the ripple in the
stopband through the equation
1/jV
1
+ J l - S 2'
(8.3.64)
From this description, w e o b serve that the C hebyshev filters are characterized
by the param eters N, e, S2, and the ratio Q.s / Sl p . For a given set o f specifications
IWDI2
|tf(n)P
n , n,
N odd
N even
Figure 8.41
688
Chap. 8
on (, S2, and Q.s/Q.p, we can detennine the order of the filter from the equation
log
l(v
N =
(8.3.65)
cosh (5/e)
co sh -1 (2, / ^ )
w here, by definition, S2 =
1 / V l + <52.
Example 83.7
Determine the order and the poles of a type I lowpass Chebyshev filter that has a
1-dB ripple in the passband, a cutoff frequency 2P = IOOOjt, a stopband frequency
of 2000jt, and an attenuation of 40 dB or more for 2 > S2s.
Solution First, we determine the order of the filter. W e have
101og10(l + e2) = 1
1 + 2 = 1.259
2 = 0.259
e = 0.5088
Also,
20 log10<52 = -40
82
0.01
^Sio 196.54
log10(2 +V3)
= 4.0
Thus a type I Chebyshev filter having four poles meets the specifications.
The pole positions are determined from the relations in (8.3.55) through (8.3.59).
First, we compute /?,n, and r2. Hence
P = 1.429
ri = 1.062P
r2 = 0.3650,
The angles {0 *} are
<Pt =
2+
(2k + 1)7T
8
k = 0 ,1,2 ,3
Sec. 8.3
689
T h e filter specifications in E xam p le 8.3.7 are very sim ilar to the specifications
g iven in E xam p le 8.3.6, w hich in volved the design o f a B utterw orth filter. In
that case th e num ber o f p o les required to m eet th e sp ecification s was seven . O n
the other hand, the C hebyshev filter required on ly four. T h is result is typical o f
such com parisons. In general, the C hebyshev filter m eets the specifications with a
few er num ber o f p o les than the corresponding B utterw orth filter. A ltern atively, if
w e com p are a B utterw orth filter to a C h eb ysh ev filter having th e sam e num ber
o f p o les and the sam e passband and stopband specifications, the C hebyshev filter
will h a v e a sm aller transition bandwidth. For a tabulation o f the characteristics o f
C h eb ysh ev filters and their p o le-zero locations, the in terested reader is referred
to th e h an d b ook o f Z verev (1967).
Elliptic filters. E llip tic (or C auer) filters exhibit eq uiripple b eh avior in b oth
the passband and the stopband, as illustrated in Fig. 8.42 for N odd and N even.
T h is class o f filters contains both p o les and zeros and is characterized by the
m agnitude-squared frequency response
|H (^ )|2 = 1
u.
277~; 0 / o ,
(8-3 -66)
w h ere UN{:r) is the Jacobian elliptic function o f order N , w hich has b een tabulated
by Z v erev (1967), and e is a param eter related to the passband ripple. T h e zeros
lie on the ;'fi-axis.
W e recall from our discussion o f F IR filters that the m ost efficient designs
occur w hen w e spread the approxim ation error equally over the passband and the
stop b an d . E llip tic filters accom plish this ob jective and, as a con seq u en ce, are the
m ost efficien t from the view p oin t o f yielding the sm allest-ord er filter for a given
IW(Q)|2
1 + e2
\S
N odd
Figure 8.42
690
Chap. 8
set o f specifications. E quivalently, w e can say that for a given order and a given
set o f specifications, an elliptic filter has the sm allest transition bandwidth.
T he filter order required to ach ieve a given set o f specifications in passband
ripple Si, stopband ripple 62, and transition ratio ftp /ft* is given as
K ( n pM ) K U i - f i / s * ) )
N = --------------- v
L
K W K ( y i - ( 8 , / n , )2j
(8.3.67)
r a
'0
d$
- ........... .
v
1 jc 2 s u v
(8.3.68)
6
and 62 = 1 / V l + 62. V alu es o f this integral have b een tabu lated in a num ber
o f texts [e.g., th e b ook s by Jahnke and E m d e (1945) and D w igh t (1957)]. T h e
passband ripple is 10 lo g 10( l + e2).
W e shall n ot attem pt to describe ellip tic functions in any d etail b ecau se such
a discussion w ould take us to o far afield. Suffice to say that com p u ter program s are
available for designing ellip tic filters from the frequency specifications indicated
above.
In v iew o f the optim ality o f ellip tic filters, the reader m ay qu estion the reason
for considering the class o f Butterw orth or th e class o f C h eb ysh ev filters in practical
applications. O n e im portant reason that th ese other types o f filters m ight be prefer
able in som e applications is that they p ossess b etter phase resp on se characteristics.
T h e phase resp onse o f ellip tic filters is m ore non linear in the passband than a com
parable B utterw orth filter or a C h eb ysh ev filter, especially near the band edge.
Bessel filters. B e sse l filters are a class o f all-p ole filters that are charac
terized by the system function
H( s ) =
( 8. 3. 69)
B n (s )
w h ere B n (s ) is the N th -ord er B e sse l polynom ial. T h ese p olyn om ials can b e ex
p ressed in the form
N
B * (j) = a * j *
(8-3.7)
&N - t y
' 2 - > * ! ( * - * ) !
,
* - ( U .... N
<8-371)
A ltern atively, the B essel p olyn om ials m ay b e gen erated recursively from the rela
tion
B n (s) = (2N - 1)B*_j(i) + s 2B n . 2(s)
with Bo(s) = 1 and fli(s ) = s + 1 as initial conditions.
(8.3.72)
Sec. 8.3
691
Magnitude
Phase
Figure 8.43 Magnitude and phase responses o f Bessel and Butterworth filters of
order N = 4.
692
Chap. 8
r r W ' > + W
/C Q w
(8.3.73)
A lth o u g h w e have described only low pass analog filters in th e p reced in g section, it
is a sim ple m atter to convert a low pass analog filter into a ban d pass, bandstop, or
highpass analog filter by a frequency transform ation, as is d escrib ed in Section 8.4.
T he bilinear transform ation is then applied to convert the an alog filter into an
equivalent digital filter. A s in the case o f the low p ass filters describ ed ab ove, the
entire design can b e carried ou t on a com puter.
Sec. 8.4
Frequency Transformations
Figure 8.44
693
convert the analog lowpass filter into a lowpass digital filter and then to transform
the lowpass digital filter into the desired digital filter by a digital transformation.
In general, these two approaches yield different results, except for the bilinear
transformation, in which case the resulting filter designs are identical. These two
approaches are described below.
8.4.1 Frequency Transformations in the Analog Domain
694
Figure 8.45
Chap. 8
it to another low pass filter with passband ed ge frequency 2^,. T h e transform ation
that accom plishes this is
j y s
(8.4.1)
Thus w e obtain a low pass filter w ith system function Hi ( s) = Hp [(Qp/ t t p)s],
w here Hp(s) is th e system function o f the p rototyp e filter w ith passband ed ge
frequency Qp.
Sec. 8.4
Frequency Transformations
Figure M
695
696
TABLE 8.11
Chap. 8
UNQUANTIZED COEFFICIENTS
FILTER ORDER = 7
SAMPLING FREQUENCY = 2.000 KILOHERTZ
I.
A(I,
1)
A(I,
2)
B (I , 0}
B (I , 1)
B (I , 2)
I
2
-.790103
.000000
.104948
. 104948
.000000
.714 0 8 8
.102450
-.007817
-1.517223
.102232
3
-1.421773
.861895
.420 1 0 0
-.399842
.419864
4
.962252
-1.387447
-.826743
.714841
. 714929
*** C H A R A C T E R I S T I C S O F D E S I G N E D F I L T E R ***
BAND 1
BAND 2
LOWER BAND EDGE
.30000
.00000
1.00000
UPPER BAND EDGE
.25000
NOMINAL GAIN
1.00000
.00000
NOMINAL RIPPLE
.00100
.05600
MAXIMUM RIPPLE
.00071
. 04910
R I P P L E I N DB
.41634
-63.00399
1 and then
(8.4.3)
E quivalently, w e can accom plish the sam e result in a single step by m ean s o f the
transform ation
s 2 + 2/ S2
s y Qp ------
j( 2u 2i)
(8.4.4)
where
2/ = low er band ed ge frequency
S2U = upper band ed ge frequency
Thus w e obtain
(
s 2 + 2i 2B \
Finally, if w e w ish to convert a low pass analog filter w ith band ed g e frequency
2p in to a bandstop filter, th e transform ation is sim ply th e in verse o f (8.4.3) with
the additional factor Slp serving to norm alize for th e band ed ge freq u en cy o f the
low pass filter. T h u s th e transform ation is
j lpS-2 - ^ -
(lowpass to bandstop)
(8.4.5)
Sec. 8.4
Frequency Transformations
Figure 8.47
697
which leads to
698
Chap. 8
TABLE 8.12
Type of
transformation
Transformation
Band edge
frequencies o f
new filter
np
Lowpass
s *
ftp
^ ^
Highpass
Bandpass
_ s2 + Sit
S --- iin -------------
p s ( n u - n ()
ft/, ftp
Bandstop
s ---
Q t, Clu
----------
p s2 + n u n .
Example 8.4.1
Transform the single-pole lowpass Butterworth filter with system function
H ^s) = - T 7 T
into a bandpass filter with upper and lower band edge frequencies 2 and
tively.
respec
1
-f-
i(n - a,) +
(K K/)j
s 2 + (2 S2j)s +
Sec. 8.4
699
Frequency Transformations
g ( e - J,) = g(u})
oj .
-ak
(8.4.6)
S ( z - ) = n f r akz-
w h ere \ak \ < 1 to ensure that a stable filter is transform ed into another stable filter
(i.e., to satisfy co n d ition 1 ).
From the general form in (8.4.6), w e obtain the desired set o f digital trans
form ations for converting a prototyp e digital low pass filter in to either a bandpass,
a bandstop, a highpass, or an oth er low pass digital filter. T h ese transform ations
are tabulated in T able 8.13.
TABLE 8.13 FREQUENCY TRANSFORMATION FOR DIGITAL FILTERS
(PROTOTYPE LOWPASS FILTER HAS BAND EDGE FREQUENCY a>P)
Type of
transformation
Transformation
Parameters
(o'p band edge frequency
of new filter
Lowpass
sin[(^p - w'p ) p \
1 - az'
sin[(a>p + w'p)p.]
w'p = band edge frequency
new filter
Highpass
1 + az~x
cos[(a>p - a>p)/2]
wi = lower band edge frequency
toy = upper band edge frequency
Bandpass
z 1 aiz + a ;
a2z~2 - a\z~l + 1
0l = 2aK/ ( K + 1)
a2 = ( K - 1 )/(K + 1)
COs[ (tD, + Ci>;)/2]
c o s K c D j, c d / ) / 2 ]
K as COt
0>1
tan -r-
Bandstop
a{ = - 2a/(K + 1)
02 = {I - K) / ( 1 + K)
ai z- 1 + 1
cos[(i>u + <u;)/2]
cos[(a)a <u/)/2]
K tan
a>M a>i
CL
700
Chap. 8
Example 8.42
Convert the single-pole lowpass Butterworth filter with system function
0 .2 4 5 ( 1 + Z ' 1)
H(z)
1 - 0 .5 0 9 Z -1
into a bandpass filter with upper and lower cutoff frequencies a>u and a>i, respectively.
The lowpass filter has 3-dB bandwidth cop = 0.2jt (see Example 8.3.5).
_i
z~2 - a i z ~ l + a 2
a 2z ~2 - ai z ' 1 + 1
---- ----------z------------;----- -
where a\ and a 2 are defined in Table 8.13. Substitution into H(z) yields
0.245
z~l ~ aiz~' + a2
a2z ~2 - fliZ-1 + 1
H(z) =
1 + o.509
\ a 2z~2 -
+1/
-245(1 ~ Z~2)
()
l+0.509z~2
This filter has poles at z = y'0.713 and hence resonates at <d = np..
Since a frequency transform ation can be perform ed eith er in the analog d o
m ain or in the digital dom ain, the filter design er has a ch o ice as to w hich ap
proach to take. H o w ever, som e caution m ust b e exercised d ep en d in g on the
types o f filters b ein g d esign ed . In particuiar, w e know that the im pulse invari
an ce m ethod and th e m apping o f d erivatives are inappropriate to use in designing
highpass and m any bandpass filters, due to the aliasing p rob lem . C on sequ en tly,
o n e w ould n ot em p loy an analog frequency transform ation follow ed by con ver
sio n o f the result into the digital d om ain by use o f these tw o m appings. Instead,
it is m uch b etter to perform the m apping from an analog low pass filter in to a
digital low pass filter by eith er o f th ese m appings, and th en to perform the fre
q uency transform ation in the digital dom ain. Thus the p rob lem o f aliasing is
avoided.
In the case o f the b ilinear transform ation, w here aliasing is not a problem , it
d o es n ot m atter w h eth er the frequency transform ation is p erform ed in the analog
dom ain or in th e digital dom ain. In fact, in this case on ly, th e tw o approaches
result in identical d igital filters.
Sec. 8.5
701
Y bkZ k
H(z) =
(8.5.1)
where h(k) is its unit sam ple response. T he filter has L = M + N + 1 param eters,
nam ely, th e coefficients [ak} and {&*}, w hich can b e selected to m inim ize so m e
error criterion.
T h e least-sq u ares error criterion is often u sed in optim ization problem s o f
this type. Su p pose that w e m inim ize the sum o f the squared errors
u
(8.5.2)
with respect to th e filter p aram eters {a*} and {>*}, w h ere U is som e p reselected
upper lim it in the sum m ation.
In g en eral, h(n) is a non linear function o f the filter param eters and h en ce th e
m inim ization o f in v o lves th e solu tion o f a set o f n on linear equ ation s. H ow ever,
if w e select th e upper lim it as U = L 1, it is p ossib le to m atch h(n) p erfectly
to the desired resp onse hd (n) for 0 < n < Af + N. T h is can b e achieved in th e
follow in g m anner.
T h e differen ce eq u ation for th e d esired filter is
y (n ) = - a i y ( n -
(8.5.3)
702
Chap. 8
Suppose that the input to the filter is a unit sam ple [i.e., x( n) S(n)]. T hen the
resp onse o f the filter is y(/i) = h(n) and h en ce (8.5.3) b eco m es
h(n) = a\ h{n 1) ai hi n 2) -------a s h { n N)
-)- boS(n) -I- b\S(n 1) H--------1- b MS(n Af)
(8.5.4)
0 < n < M
(8.5.5)
a Nh(n - N)
(8.5.6)
T he set o f linear eq u ation s in (8.5.5) and (8.5.6) can b e used to solve for the
filter param eters {a*} and {b*}. W e set h(n) = hd {n) for 0 < n < Af -I- N, and
use the linear eq u ation s in (8.5.6) to solve for the filter param eters {a*}. T hen
w e use values for the {a*} in (8.5.5) and solve for the param eters {>*}. Thus we
obtain a perfect m atch b etw een h(n) and the desired resp onse hj ( n) for the first
L values o f th e im pulse response. T his design tech n iqu e is u su ally called the Pade
approxi mat i on procedure.
T h e d egree to which this design tech n iqu e produces accep tab le filter designs
d ep en d s in part on the num ber o f filter coefficients se lecte d . Since the design
m eth od m atches /i</(n) o n ly up to the num ber o f filter param eters, the m ore com
p lex the filter, the b etter th e approxim ation to h j ( n ) for 0 < n < M + N . H ow ever,
this is also the m ajor lim itation with the P ade approxim ation m eth od , nam ely, the
resulting filter m ust contain a large num ber o f p o les and zeros. For this reason,
the P ade approxim ation m ethod has found lim ited use in filter designs for practical
applications.
Example 8.5.1
Suppose that the desired unit sample response is
hj(n) = 2(i)"w(n)
Determine the parameters of the filter with system function
Solution In this simple example, H(z) can provide a perfect match to Hjiz), by
selecting bo = 2, f>i = 0, and
we indeed obtain the same result.
Sec. 8.5
703
With the substitution for hd(ri), we obtain ai = j. To solve for b^ and b\, we use
the form (8.5.5) with h(n) = hj(n). Thus
h<t(n) = ~ M - 1) + b08(n) + b xS(n - 1)
Example 8.5.2
A fourth-order Butterworth filter has the system function
_
4.8334 x 10-3(; + l)4
A:} ~ (z2 - 1.3205- + 0.6326)(z2 - 1.0482z + 0.2959)
The unit sample response corresponding to /^(z) is illustrated in Fig. 8.48. Use the
Pade approximation method to approximate //rf(~).
Solution We observe that the desired filter has M = 4 zeros and jV = 4 poles. It is
instructive to determine the coefficients in the Pade approximation when the number
of zeros and/or poles are not identical to the desired number of filter parameters.
704
Chap. 8
Magnitude
response
4
Figure 8.49
In Fig. 8.49 we plot the frequency response of the filter obtained by the Padd
approximation method. We have considered four cases: M = 3, N = 5; M = 3, N = 4;
M = 4, N = 4; M = 4, N = 5. W e observe that when M = 3, the resulting frequency
response is a relatively poor approximation to the desired response. However, an
increase in the number of poles from A' = 4 to N = 5 appears to compensate in part
for the lack of the one zero. When M is increased from three to four, we obtain a
perfect match with the desired Butterworth filter not only for N = 4 but for N = 5,
and, in fact, for larger values of N.
Example 8.5.3
A three-pole and three-zero type II lowpass Chebyshev digital filter has the system
function
"
Its unit sample response is illustrated in Fig. 8.50. Use the Padf approximation
method to approximate Hj(z).
Solution By following the same procedure as in Example 8.5.2, we determined the
Pad6 approximation of H</(z) based on the selection of M = 2, N = 3; M = 2, N = 4;
M = 3, N = 3; M = 3, N = 4. The frequency responses of the resulting designs are
illustrated in Fig. 8.51.
Sec. 8.5
Magnitude
705
706
Chap. 8
(8.5.7)
N ow , con sid er the cascade con n ection o f the desired filter Hd (z) w ith the reciprocal,
all-zero filter 1 / / / (z), as illustrated in Fig. 8.52. N ow suppose that the cascade
configuration in Fig. 8.52 is excited by the unit sam ple seq u en ce S(n). Thus the
input to the inverse system 1/ H { z ) is hd (n) and the output is v(n). Ideally, y d (n) =
S(n). T he actual output is
(8.5.8)
T h e condition that >v(0) = _y(0) 1 is satisfied by selectin g bo h d {0). For
n > 0, y( n) represents the error b etw een th e desired output yd {n) 0 and the
actual output. H en ce the param eters {a*} are selecte d to m inim ize the sum of
yin)
M )
H d ( z)
/~ns
H(z)
T
error
Minimize
the sum of
squared errors
Figure 8J?2
S(n)
Sec. 8.5
707
Z.
n=l
;v
hd ( n ) + Y akhdin - k)
k=\
(8.5.9)
h 2A 0 )
B y differen tiatin g with respect to the param eters {a*}, it is easily estab lish ed
that w e ob tain the set o f linear equations o f the form
N
1 , 2, . . . , W
(8.5.10)
= m * ) M + * - n = rhhik - l )
n=0
(8.5.11)
J 2 w hh( k, l ) = - r hh( l , 0 )
/ =
k-\
w h ere, by definition,
OO
rkh(k,l) =
rt=l
00
T h e solu tion o f (8.5.10) yields th e desired param eters for th e inverse system
1 / H ( z ) . Thus w e obtain the coefficients o f the all-p ole filter.
In a practical design problem , the desired im pu lse resp onse hd (n) is specified
for a finite set o f points, say 0 < n < L, w h ere L > > N. In such a case, the
correlation sequ en ce rdd(k) can be com p uted from the finite seq u en ce hd (n) as
L \kl\
?hh (k I)
hd(n)hd(n + k - I)
0 < k - l < N
(8.5.12)
and these valu es can b e used to solve the set o f linear eq u ation s in (8.5.10).
T he least-squares m eth od can also b e used in a p o le -z e r o approxim ation for
Hd (z). If the filter H( z ) that approxim ates Hd (z) has b oth p oles and zeros, its
resp onse to the unit im pulse <5(n) is
S
^ ) = - J f l i A(fi t ) + ^ M ( - i t )
* -i
*=o
n > 0
(8.5.13)
0 < n < M
(8.5.14)
n> M
(8.5.15)
h(n) = ^ a * h ( n k)
708
Chap. 8
Clearly, if H j i z ) is a p o le-zero filter, its resp onse to Bin) w ou ld satisfy the sam e
eq u ation s (8.5.13) through (8.5.15). In gen eral, h ow ever, it d o es not. N everth eless,
w e can use the desired response h j ( n) for n > M to construct an estim ate o f hd(n),
according to (8.5.15). That is,
hd(n) -
- *)
(8.5.16)
T hen w e can select the filter param eters {a*} to m inim ize the sum o f squared errors
b etw een the desired response hd(n) and the estim ate hd (n) for n > M. Thus we
have
OO
n=M+1
ih d^
~ hd(n )]2
(8.5.17)
The m inim ization o f \, with respect to the p o le param eters {a*}, leads to the set
o f linear equations
Y
a irhh(k,l) = ~ r hh( k , 0 )
k =
1 , 2, . . . , N
(8.5.18)
Y
hd (n - k) hd (n - I)
n~M+1
(8.5.19)
Thus these linear eq u ation s yield the filter p aram eters {a*}. N o te that these eq u a
tions reduce to the all-pole filter approxim ation w h en M is set to zero.
T h e param eters {bk} that determ in e the zeros o f the filter can be obtained
sim ply from (8.5.14), w here h(n) = hd (rt), by sub stitu tion o f th e values [ak] ob
tained by solving (8.5.18). Thus
bn = hd(n) + ^
akhd (n k)
0<n<M
(8.5.20)
T h erefore, the param eters {a*} that d eterm in e the p o les are obtained by the
m ethod o f least squares w hile the p aram eters {bk} that d eterm in e the zeros are
ob tain ed by the the P ade approxim ation m eth od . T he foregoin g approach for
determ ining the p o les and zeros o f H ( z ) is so m etim es called P r o n y s m e t h o d .
T h e least-squares m eth od provid es go o d estim ates for th e p o le param eters
{ak}. H ow ever, P ron ys m eth od m ay n ot b e as effective in estim ating the pa
ram eters {>*}, prim arily b ecau se the com p utation in (8.5.20) is not based on the
least-squares m ethod.
Sec. 8.5
all-pole
filter
all-zero
filter
W ,( z )
Figure 8^ 3
709
M")
H 2(z)
A n alternative m eth od in which both sets o f param eters {fl*) and {*} are d e
term ined by application o f the least-squares m eth od has b een prop osed by Shanks
(1967). In Shanks m eth od , the param eters {a*) are com p uted on the basis o f the
least-squares criterion, according to (8.5.18), as indicated ab ove. This yields the
estim ates {a*}, which allow us to syn th esize the all-pole filter.
Hi (z) = ------- rr---------
(8-5.21)
i+
akz k
fl;v(n k) + S(n)
n > 0
(8.5.22)
If the seq u en ce (u(n)} is used to excite an all-zero filter with system function
(8.5.23)
H 2( z ) =
hd(n) = ^ & * u ( n - k)
N o w w e can define an error seq u en ce e ( n ) as
e{n) = hd {n) - hd{n)
= hd (n) - Y
(8.5.25)
b*v (n ~ k)
and, con sequ en tly, the param eters {&*} can also be determ in ed by m eans o f the
least-squares criterion, nam ely, from the m inim ization of
-l 2
M ) - J ^ M ( ~k)
(8.5.26)
Thus w e obtain a set o f linear eq u ation s for the param eters {bk}, in the form
M
Y bt rvv(k,l) = r * (0
/ = 0 ,1 ........ Af
(8.5.27)
710
Chap. 8
w here, by definition,
OO
r vv(k, I) = Y v (n ~ k ^ n - *>
r*=0
oo
rhvik) =
hd (n)v(n - Jt)
n=0
(8.5.28)
(8.5.29)
Example 8.5.4
Approximate the fourth-order Butterworth filter given in Example 8.5.2 by means of
an all-pole filter using the least-squares inverse design method.
Solution From the desired impulse response hd(n), which is illustrated in Fig. 8.48,
we computed the autocorrelation sequence rkh(kj) = rhh(k - /) and solved to set
of linear equations in (8.5.10) to obtain the filter coefficients. The results of this
computation are given in Table 8.14 for N = 3, 4, 5, 10, and 15. In Table 8.15 we list
the poles of the filter designs for N = 3, 4, and 5 along with the actual poles of the
fourth-order Butterworth filter. W e note that the poles obtained from the designs
are far from the actual poles of the desired filter.
ESTIMATES OF FILTER COEFFICIENTS
IN LEAST-SQUARES INVERSE FILTER DESIGN
METHOD
TABLE 8.14
{a k}
iV =
0) =
02 =
a-s =
N =
a{ =
a2 =
a3 =
a4 =
JV =
fl! =
a2 =
a2 =
aj, =
a5 =
3
0.254295E + 01
0.241800E + 01
0.853829E + 00
4
0.319047 + 01
0.425176 + 01
0.278234 + 01
0.758375E + 00
5
0.368733E + 01
0.607422 + 01
0.556726E + 01
-0.284813 + 01
0.654996E + 00
N = 10
ai =
5.008451
a2 - -12.660761
= 21.557365
04 = -27.804110
as = 28.683949
6 = -24.058558
a7 = 16.156847
flg ss -8.247148
ag =
2.854789
flio -0.502956
N 15
=
2.993620
-1.143053
a2 =
= -12.132861
39.663433
a4 ~
ai = -75.749001
109.247757
06 =
a7 = -129.513794
a8 =
131.026794
a9 ~ -114.905266
87.449211
flio =
an = -57.031906
30.915134
<312 =
a 13 = -13.124536
3.879295
014 =
-0.597313
015 =
ai
Sec. 8.5
711
N =4
Butterworth
filter
Pole positions
0.9305
0.8062 yO.5172
0.8918 j'0.2601
0.7037 yO.6194
0.914
0.8321 y0.4307
0.5544 j'0.7134
0.6603 y0.4435
0.5241 yo.1457
The frequency responses of the filter designs are plotted in Fig. 8.54. W e note
that when N issmall, the approximation to the desired filterispoor. As N isincreased
to N = 10 and N = 15, the approximation improves significally. However, even for
N = 15, there are large ripples in the passband of the filter response. It is apparent
that this method, which isbased on an all-pole approximation, does not provide good
approximations to filters that contain zeros.
Example 8.5.5
Approximate the type II Chebyshev lowpass filter given in Example 8.5.3 by means
of the three least-squares methods described above.
Solution The results of the filter designs obtained by means of the least-squares
inverse method, Pronys method and Shanks method, are illustrated in Fig. 8.55.
The filter parameters obtained from these design methods are listed in Table 8.16.
The frequency response characteristics in Fig. 8.55 illustrate that the leastsquares inverse (all-pole) design method yields poor designs when the filter contains
zeros. On the other hand, both Pronys method and Shanksmethod yield very good
designs when the number of poles and zeros equals or exceeds the number of poles
and zeros in the actual filter. Thus the inclusion of zeros in the approximation has a
significant effect in the resulting filter design.
712
Chap. 8
Magnitude (dB )
Magnitude (dB)
(a)
Figure &54
method.
Magnitude responses for filter designs based on the least-squares inverse filter
(8.5.30)
(8.5.31)
Magnitude (dB)
Magnitude (dB)
Magnitude (dB)
714
Chap. 8
Poles in
Least-Squares Inverse
N = 3
0.8522
0.6544 j0.6224
N = 4
0.7959 y0.3248
____________________ ___________________0.4726 j'0.7142___________________
Filter
Order
Pronys Method
Shanks M ethod
________________ 1__________________________________________________
Poles
Zeros
Poles
Zeros
N = 3
M = 2
0.5332
0.6659 j 0.4322
N = 4
M = 2
0.7092
-0 .2 9 1 9
0.6793 y0.4863
N - 3
M = 3
0.3881
0.5659 J0.4671
N = 4
-0 .00014
0.388
0.5661 y0.4672
M = 3
-0 .1497 j0.4925
0.5348
0.6646 j0.4306
-0 .2 4 3 7 y0.5918
-0 .1 9 8 2 ;0.37
0.7116
-0.2921
0.6783 _/0.4855
0.306 y0.4482
0.3881
0.5659 _/0.4671
0.1738 y'0.9848
-1
0.1736 /0.9847
-1
0.1738 ;0.9848
-0.00014
0.388
0.566 ;0.4671
-1
-1
0.1738 y0.9848
,=
Y
* / ( ")
fiAf+1
(8.5.32)
where Af + 1 is the length o f the truncated filter and E, rep resen ts the energy in
the tail o f the im pulse resp onse /i/(n ).
A ltern atively, w e can use the least-squares error criterion to op tim ize the
Af + 1 coefficients o f the F IR filter. First, let d( n) d en o te the desi red out put
sequence o f the F IR filter o f length Af -I-1 and let h(n) be th e input sequence.
T hen, if y( n) is the output seq u en ce o f the filter, as illustrated in Fig. 8.56, the
error seq u en ce b etw een the desired output and the actual ou tp u t is
M
e ( n) = d( n) ^ * / i ( n k)
k=0
(8.5.33)
Sec. 8.5
715
d(n) = S(n)
m -
FIR
filter
v(")
(M
~ ~ r~
e(n)
Minimize
the sum of
squared errors
Figure 8.56
OC
d{n) - ^ b k h i r i - k)
n=0 l
(8.5.34)
i -0
W hen is m inim ized with respect to the filter coefficients, w e obtain the set o f
linear eq u ation s
M
Y , b k r hh{ k - l ) = rdh{l)
*=o
I = 0, 1.........M
(8.5.35)
00
rhhd) = Y ^ h { n ) h { n - I)
(8.5.36)
=0
and rdh{n) is the crosscorrelation b etw een the desired output d(n) and the input
seq u en ce h(rt), defined as
OO
rdh{l) = Y , d ( n ) h { n - l )
(8.5.37)
=o
T h e optim um , in the least-squares sen se, F IR filter that satisfies the linear
eq u ation s in (8.5.35) is called the Wiener filter, after th e fam ou s m athem atician
N orbert W ien er, w h o introduced optim um least-squares filtering m eth od s in en g i
n eerin g [see b o o k by W iener (1949)].
If the optim um least-squares F IR filter is to b e an approxim ate inverse filter,
the desired resp onse is
d( n) = S(n)
(8.5.38)
10
/ = .
otherw ise
(8.5.39)
716
Chap. 8
T h erefore, the coefficients o f the least-squares F IR filter are ob tain ed from the
solution o f the linear eq u ation s in (8.5.35), w hich can b e exp ressed in m atrix form
as
~ r hh (0 )
^ a(I)
. r hh{ M )
rhh (2 )
rhh(l)
rhhi 1 )
rhh(0)
r hh{ M ~ l )
r hfl( M - l )
" bo ~
b\
rhhi 0 )
-bu -
rhh(M)
'H O )!
(8.5.40)
W e observe that the matrix is n ot only sym m etric but it also has the special
p roperty that all the elem en ts along any d iagon al are equal. Such a matrix is
called a T oeplitz matrix and lends itself to efficient inversion by m eans o f an
algorithm due to L evin son (1947) and D urbin (1959), which requires a num ber o f
com putations p roportional to M 2 instead o f the usual M 3. T h e L evin son -D u rb in
algorithm is described in Chapter 11.
T h e m inim um value o f the least-squares error ob tain ed w ith th e optim um
F IR filter is
d ( n ) - ^ b k h i n - k)
o
= L
d{n)
M
^ ^ ( n ) - ^ 2 b krdh(k)
(8.5.41)
In the case w here the F IR filter is the least-squares inverse filter, d ( n ) = S(n) and
rdh(n) h(0)8(n). T herefore,
Erin = 1 - h( 0)bo
(8.5.42)
Example 8.5.6
Determine the least-squares FIR inverse filter of length 2 to the system with impulse
response
h(n) -
1,
a,
. 0,
n=0
n = 1
otherwise
where |a| < 1. Compare the least-squares solution with the approximate inverse
obtained by truncating hj(n).
Solution Since the system has a system function H(z) = 1 a z ~ \ the exact inverse
is IIR and is given by
H,{z) =
1 - az"
or, equivalently,
hi(n) = a"u(n)
Sec. 8.5
717
, =
a 2^ ! + a 2 + a 4 H------- )
From (8.5.40) the least-squares FIR filter of length 2 satisfies the equations
For purposes of comparison, the truncated inverse filter of length 2 has the
coefficients bo = 1 , b\ = a.
The least-squares error is
^
~ 1 +
for the truncated approximate inverse. Clearly, , > , so that the least-squares
FIR inverse filter is superior.
In this exam p le, th e im pulse resp onse h( n ) o f the system w as m inim um phase.
In such a case w e selected the d esired resp onse to b e J (0) = 1 and d (n) = 0, n > 1.
O n the other hand, if the system is nonm inim um phase, a d elay should b e inserted
in th e desired resp onse in order to obtain a g o o d filter design. T he value o f the ap
propriate d elay d ep en d s on the characteristics o f h(n). In an y case w e can com pute
the least-squares error filter for d ifferen t d elays and se lect the filter that produces
the sm allest error. T h e follow in g exam p le illustrates the effect o f the delay.
Example 8-5.7
Determine the least-squares FIR inverse of length 2 to the system with impulse response
a,
h(n) =
1,
0,
n= 0
n= 1
otherwise
718
Chap. 8
Solution
E m = 1 - h( 0 )bo
= 1 + a
l+ a 2
1 + a2 + a4
-a
-I p o ] _ [ M D ] _ r 1 1
l + a 2 J Lf c 1J
L / i(0)J
L -o fJ
a 2 +
O'3
1 + a 2 + or4
T h e least-sq u ares erro r, given by (8.5.41), is
mm = 1 - b(,rdh(0) - birdh(l)
= 1 - M ( 1 ) - M ( 0)
^min 1
1
^
. "t"
1 + a2 + a4
I + a2 + a4
1 - a4
1 + a2 + a4
In gen eral, w hen the desired resp onse is specified to con tain a delay D , then
the crosscorrelation rd/,(l), defined in (8.5.37), b ecom es
r dh(l) = h ( D - I)
l =
1 = 0 , 1 .........M
(8.5.43)
T h en the exp ression for the corresponding least-squares error, given in general by
Sec. 8.5
719
(8.5.41), b eco m es
u
ftr in s l - J ^ b M D - k )
*=o
(8.5.44)
L east-squares F IR in verse filters are often used in m any practical applications for
d eco n v o lu tio n , including com m unications and seism ic signal p rocessing.
+ a k2Z~2
1+
(8.5.45)
w here the filter gain G and the filter coefficients {a*i], {**2 ], {#ti}, {Pki} are to b e
determ in ed . T h e frequency response o f the filter can be exp ressed as
H{to) = GA(w)e>B(a,)
(8.5.46)
w here
A((D) - ]""[
1 + Pk\Z~l + f$k2Z~2
(8.5.47)
1 + a * U - 1 + a * 2 Z 2
(8.5.48)
Tg ( z ) I z > -
r d Q (z )~[
L dz
dz
J WJ db)
(8.5.49)
K r Atiz + 2/5*2
a*iz + 2a*2
(8.5.50)
i l[ L
720
Chap. 8
the range 0 < M < n . T hen the error in m agnitude at the frequency cok is
GA(cok) A d (cok) w here A d (cok) is the desired m agnitude resp onse at cok. Sim i
larly, the error in delay at a>k can b e defined as zg(a>k) zd (a>k), w here zd (cok) is
the desired d elay response. H ow ever, the ch oice o f zd (a>k) is com plicated by the
difficulty in assigning a nom inal delay to th e filter. H en ce, w e are led to define the
error in d elay as zg(cok) rg(wo) zd (a>k), w h ere rg(wo) is the filter d elay at som e
nom inal center frequency in the passband o f the filter and zd (wk) is the desired
delay response o f the filter relative to r?(o^). B y defining th e error in delay in
this m anner, w e are w illing to accept a filter having w h atever nom inal delay zg (a>o)
results from the op tim ization procedure.
A s a perform ance index for determ ining th e filter param eters, o n e can ch oose
any arbitrary function o f the errors in m agnitude and d elay. T o be specific, let
us select the total w eigh ted least-squares error o ver all freq u en cies &i, a>2 , . . . , <oL,
that is,
L
( p ,
G)
( 1
A )
wn[GA(co) - A d (con )
] 2
n 1
v[zg(a)) -
(o>o) - zd (con)]2
(8.5.51)
71= 1
w here p d en o tes the 4 K -dim ensional vector o f filter coefficients {a*i}, {<**2 }, (An),
and {/ta h and A , {u>}, and {t>} are w eigh ting factors se lecte d by the designer.
Thus the em p hasis on the errors affecting the design m ay b e placed entirely on the
m agnitude ( A = 0), or on the delay ( A = 1) or, perhaps, eq u ally w eigh ted betw een
m agnitude and d elay ( A = 1/2). Similarly, th e w eigh ting factors in frequency {u;}
and {u} determ in e the relative em phasis on the errors as a fun ction o f frequency.
T h e squared-error function E (p , G ) is a non linear fun ction o f (AK + 1) pa
ram eters. T h e gain G that m inim izes is easily d eterm in ed and given by the
relation
L
Y ^ u M v n) A d (con)
G = ^ L---------------------
(8.5.52)
^ i o nA 2 (a))
n=l
+ k
vK
> ~ zs ( t o n ) ] 2
(8.5.53)
n 1
Sec. 8.5
721
as the F letch er and P o w ell m ethod (1963). O n e begins the iterative process by
assum ing an initial set o f param eter values, say p (0). W ith the initial values su b sti
tuted in (8.5.51), we obtain the least-squares error ( p (0), G). If w e also evaluate
the partial derivatives d / d a k\, d / d a k2, 3/3/J*i, and b / b 0 k2 at the initial value
p (0), w e can u se this first derivative inform ation to change the initial values o f the
p aram eters in a direction that lead s toward the m inim um o f the function (p . G)
and thus to a new set o f param eters p (1).
R ep etitio n o f the ab ove step s results in an iterative algorithm which is d e
scribed m athem atically by the recursive eq u ation
p (m+l) _ p (m)
A (m)Q()g (m)
m _ 0, 1, 2, . . .
w here A (m) is a scalar representing the step size o f the iteration, Q (m) is a (4K x 4 K )
m atrix, w hich is an estim ate o f the H essian , and g (m) is a (4K x 1) vector consisting
o f the four AT-dimensional vectors o f gradient com p on en ts o f (i.e., d / d a \ n ,
d / d a k l, d / d p kU d / d p k2), evaluated at a kl = or" \ a k2 = a ^ \ /3k] =
fik2 =
and
are nearly zero and the value o f the function (p , G) d o es not change appreciably
from o n e iteration to another.
T he stability constraint is easily incorporated into the com puter program
through the param eter vector p. W hen la ^ l > 1 for any k = 1 , . . . , K , the param
eter a k2 is forced back inside the unit circle and the iterative p rocess continued. A
sim ilar p rocess can be used to force zeros in sid e the unit circle if a m inim um -phase
filter is desired.
T h e m ajor difficulty with any iterative p roced u re that searches for the param
eter valu es that m inim ize a nonlinear function is that the process m ay con verge
to a local m inim um instead o f a global m inim um . Our on ly recourse around this
p rob lem is to start th e iterative process w ith d ifferent values for the param eters
and o b serve the end result.
Example 8.5.8
Let us design a lowpass filter using the Fletcher-Powell optimization procedure just
described. The filter is to have a bandwidth of 0.3n and a rejection band commencing
at 0.45jr. The delay distortion can be ignored by selecting the weighting factor X = 0.
Solution We have selected a two-stage (K = 2) or four-pole and four-zero filter
which we believe is adequate to meet the transition band and rejection requirements.
The magnitude response is specified at 19 equally spaced frequencies, which is con
sidered a sufficiently dense set of points to realize a good design. Finally, a set of
uniform weights is selected.
This filter has the response shown in Fig. 8.57. It has a remarkable resemblance
to the response of the elliptic lowpass filter shown in Fig. 8.58, which was designed
to have the same passband ripple and transition region as the computer-generated
filter. A small but noticeable difference between the elliptic filter and the computer
generated filter is the somewhat flatter delay response of the latter relative to the
former.
722
Frequency
(a)
(b)
Figure (L57 Filter designed by Fletcher-Powell optimization method (Exam
ple 8.5.8).
Example 8.5.9
Design an IIR filter with magnitude characteristics
smm,
Arf(a>) =
0,
<\(0 \ < 7 t
Chap. 8
Sec. 8.5
723
Frequency
Figure &58 Amplitude and delay response for elliptic filter.
Solution The desired filter is called a modified duobinary filter and finds application
in high-speed digital communications modems. The frequency response was specified
at the frequencies illustrated in Fig. 8.59. The envelope delay was left unspecified
in the stopband and selected to be flat in the passband. Equal weighting coefficients
{ujn} and {t>} were selected. A weighting factor of A = 1/2 was selected.
A two-stage (four-pole, four-zero) filter is designed to meet the foregoing spec
ifications. The result of the design is illustrated in Fig. 8.60. We note that the
magnitude characteristic is reasonably well matched to sin a> in the passband, but the
stopband attenuation peaks at about - 2 5 dB, which is rather large. The envelope
delay characteristic is relatively flat in the passband.
724
n
2
Chap. 8
Sec. 8.6
725
Frequency (kHz)
4.000
3.500
3.000
| 2.500
'I
S' 2 000
2 1.500
u
tt
1.000
0.500
0.000
0.00
0.48
0.96
. 1.44
Frequency (kHz)
1.92
2.40
726
Chap. 8
Such a rich literature n ow exists on the design o f digital filters that it is not
p ossible to cite all the im portant referen ces. W e shall cite on iy a few . S om e of
the early w ork on digital filter design w as d on e by K aiser (1963, 1966), Steiglitz
(1965), G old en and K aiser (1964), R ad er and G old (1967a), Shanks (1967), H elm s
(1968), G ibbs (1969, 1970), and G old and R ader (1969).
T h e design o f analog filters is treated in the classic b ook s by Storer (1957),
G u illem in (1957), W einberg (1962), and D an iels (1974).
T h e frequency sam pling m ethod for filter design was first p rop osed by G old
and Jordan (1968, 1969), and op tim ized by R abiner et al. (1970). A d d ition al
results w ere published by H errm ann (1970), H errm ann and S chuessler (1970a),
and H ofstetter et al. (1971). T h e C h eb ysh ev (m inim ax) approxim ation m eth od for
d esigning linear-phase F IR filters w as p rop osed by Parks and M cC lellan (1972a,b)
and discussed further by R ab in er et al. (1975). T h e design o f ellip tic digital filters is
treated in the b ook by G old and R ad er (1969) and in the paper b y Gray and M arkel
(1976). T he latter includes a com puter program for designing digital ellip tic filters.
T h e use o f frequency transform ations in the digital d om ain w as prop osed by
C onstantinides (1 9 6 7 ,1 9 6 8 , 1970). T h ese transform ations are appropriate on ly for
IIR filters. T he reader should n ote that w hen these transform ations are applied
to a low pass F IR filter, the resulting filter is IIR.
D irect design techniques for digital filters have b een con sid ered in a num
ber o f papers, including Shanks (1967), Burras and Parks (1970), S teiglitz (1970),
D eczk y (1972), B rophy and Salazar (1973), and B andler and Bardakjian (1973).
PROBLEMS
8.1 Design an FIR linear phase, digital filter approximating the ideal frequency response
1,
0,
HAco) =
(a) Determine the coefficients of a 25-tap filter based on the window method with a
rectangular window.
(b) Determine and plot the magnitude and phase response of the filter.
(c) Repeat parts (a) and (b) using the Hamming window.
(d) Repeat parts (a) and (b) using a Bartlett window.
8.2 Repeat Problem 8.1 for a bandstop filter having the ideal response
HAo>) =
for M <
6
t
n
i .
n
for | < M < j
for < \w\ < jt
8 J Redesign the filter of Problem 8.1 using the Hanning and Blackman windows.
8.4 Redesign the filter of Problem 8.2 using the Hanning and Blackman windows.
Chap. 8
727
Problems
8 ^ D eterm ine the unit sample response {h(n)} of a linear-phase F IR filter of length M = 4
for which the frequency response at u> = 0 and w = n/ 2 is specified as
HA 0) = 1
H,
--I
8.6 D eterm ine the coefficients {A(n)} of a linear-phase FIR filter of length M = 15 which
has a symmetric unit sample response and a frequency response that satisfies the
condition
/2 7 T * \
fl,
* = 0 ,1 .2 ,3
r V 15 j ~ I 0,
* = 4, 5, 6, 7
8.7 R epeat the filter design problem in Problem 8.6 with the frequency response specifi
cations
1
* = 0 .1 ,2 ,3
0.4
*= 4
, i f
0
* = 5 .6 ,7
8.8 The ideal analog differentiator is described by
dxa(r)
y. ( 0 =
where *(/) is the input and ya(t) the output signal.
(a) D eterm ine its frequency response by exciting the system with the input jc (/) =
e jlxFt
(b ) Sketch the magnitude and phase response of an ideal analog differentiator band-
limited to B hertz.
(c) The ideal digital differentiator is defined as
H(w) sc ja>
|w| < x
Justify this definition by comparing the frequency response \H(w)|, 4. H(<d) with
that in part (b).
(d) By computing the frequency response H(o>), show that the discrete-time system
y(n) = x ( n ) - x ( n - 1)
is a good approximation of a differentiator at low frequencies.
(e) Com pute the response of the system to the input
x(n) = A cos(a>on + 6)
8.9 Use the window m ethod with a Hamming window to design a 21-tap differentiator
as shown in Fig. P8.9. Com pute and plot the magnitude and phase response of the
resulting filter.
W,f()l
Figure P8.9
728
Chap. 8
8.10 Use the matched-z transform ation to convert the analog filter with system function
5 + 0 .1
H ( s ) ~ (s + 0.1)2 + 9
into a digital IIR filter. Select T = 0.1 and com pare the location of the zeros in H (z)
with the locations of the zeros obtained by applying the impulse invariance m ethod
in the conversion of H(s).
8.11 Convert the analog bandpass filter designed in Example 8.4.1 into a digital filter by
means of the bilinear transformation. Thereby derive the digital filter characteristic
obtained in Example 8.4.2 by the alternative approach and verify that the bilinear
transform ation applied to the analog filter results in the same digital bandpass fil
ter.
8.12 A n ideal analog integrator is described by the system function Ha(s) = 1fs. A digital
integrator with system function //(z) can obtained by use of the bilinear transform a
tion. T hat is,
7 1 + z-1
W(z) 2 1 - - i =
(a) W rite the difference equation for the digital integrator relating the input x ( n ) to
the output v(n).
(b) Roughly sketch the magnitude
and phase (ft) of the analog integra
tor.
(c) It is easily verified that the frequency response of the digital integrator is
H
(a>) =
. T cos(<u/2)
; =
2 sin(a>/2)
- J-
.T
u)
COt 2
2
- J
giving numerical values for the parameters A, ai, b\, bj, c\, d\, and d2.
(b) Draw block diagrams showing numerical values for path gains in the following
forms:
(1) Direct form II (canonic form)
(2) Cascade form (make each section canonic, with real coefficients)
8.14 Consider the pole-zero plot shown in Fig. P8.14.
(a) D oes it represent an FIR filter?
(b) Is it a linear-phase system?
Chap. 8
729
Problems
Figure P8.13
Figure P8.14
(c) Give a direct form realization that exploits all symmetries to minimize the number
of multiplications. Show all path gains.
8.15* A digital low-pass filter is required to meet the following specifications:
Passband ripple: < 1 dB
Passband edge: 4 kHz
Stopband attenuation: > 40 dB
Stopband edge: 6 kHz
Sample rate: 24 kHz
The filter is to be designed by performing a bilinear transformation on an analog
system function. Determine what order Butterworth, Chebyshev, and elliptic analog
designs must be used to meet the specifications in the digital implementation.
730
Chap. 8
8.16* An IIR digital low-pass filter is required to meet the following specifications:
Passband ripple (or peak-to-peak ripple): < 0.5 dB
Passband edge: 1.2 kHz
Stopband attenuation: > 40 dB
Stopband edge: 2.0 kHz
Sample rate: 8.0 kHz
Use the design formulas in the book to determine the required filter order for
(a) A digital Butterworth filter
(b) A digital Chebyshev filter
(c) A digital elliptic filter
8.17* Determine the system function H(z) of the lowest-order Chebyshev digital filter that
meets the following specifications:
(a) 1-dB ripple in the passband 0 < \co\ < 0 .3 jt.
(b) At least 60 dB attentuation in the stopband 0.35jt < |w] < jr. Use the bilinear
transformation.
8.18* Determine the system function H(z) of the lowest-order Chebyshev digital filter that
meets the following specifications:
(a) |-d B ripple in the passband 0 < |a>) < 0.24 jt.
(b) At least 50-dB attenuation in the stopband 0 .3 5 jt < |u| < jr. Use the bilinear
transformation.
8.19* An analog signal x (r) consists of the sum of two components jri(r) and jr2 (r). The
spectral characteristics of x(t) are shown in the sketch in Fig. P8.19. The signal x{t) is
bandlimited to 40 kHz and it is sampled at a rate of 100 kHz to yield the sequence *(n).
It is desired to suppress the signal x 2(f) by passing the sequence *(n) through a
digital lowpass filter. The allowable amplitude distortion on |X i(/) | is 2% (Si = 0.02)
over the range 0 < |F | < 15 kHz. Above 20 kHz, the filter must have an attenuation
of at least 40 dB (52 = 0.01).
(a) Use the Remez exchange algorithm to design the minim um -order linear-phase
FIR filter that meets the specifications above. From the plot of the magni
tude characteristic of the filter frequency response, give the actual specifications
achieved by the filter.
(b) Compare the order M obtained in part (a) with the approximate formulas given
in equations (8.2.94) and (8.2.95).
(c) For the order M obtained in part (a), design an FIR digital lowpass filter using the
window technique and the Hamming window. Compare the frequency response
characteristics of this design with those obtained in part (a).
\X(F)\
Frequency in kilohertz
Figure P8.14
Chap. 8
Problems
731
(d) Design the minimum-order elliptic filter that meets the given amplitude specifica
tions. Compare the frequency response of the elliptic filter with that of the FIR
filter in part (a).
(e) Compare the complexity of implementing the FIR filter in part (a) versus the
elliptic filter obtained in part (d). Assume that the FIR filter is implemented in
the direct form and the elliptic filter is implemented as a cascade of two-pole
filters. Use storage requirements and the number of multiplications per output
point in the comparison of complexity.
8.20 The impulse response of an analog filter is shown in Fig. P8.20.
Figure P&20
(a) Let h(n) = h(nT), where T = 1, be the impulse response of a discrete-time filter.
Determine the system function H(z) and the frequency response H{w) for this
FIR filter.
(b) Sketch (roughly) \H{w) and compare this frequency response characteristic with
(c) The FIR filter with unit sample response h{n) given above is to be approximated
by a second-order IIR filter of the form
G(z) =
bgz
a2z '
Use the least-squares inverse design procedure to determine the values of the
coefficients &o, ai, and a2.
1 - ayz~
8.21 In this problem you will be comparing some of the characteristics of analog and digital
implementations of the single-pole low-pass analog system
HAs) = J <M O = e~t"
s -(- Of.
(a) What is the gain at dc? At what radian frequency is the analog frequency re
sponse 3 dB down from its dc value? At what frequency is the analog frequency
reponse zero? At what time has the analog impulse response decayed to 1/e of
its initial value?
(b) Give the digital system function H(z) for the impulse-invariant design for this
filter. What is the gain at dc? Give an expression for the 3-dB radian frequency.
A t what (real-valued) frequency is the response zero? How many samples are
there in the unit sample time-domain response before it has decayed to 1/e o f its
initial value?
(c) Prewarp the parameter a and perform the bilinear transformation to obtain
the digital system function H(z) from the analog design. What is the gain at dc?
At what (real-valued) frequency is the response zero? Give an expression for
the 3-dB radian frequency. How many samples in the unit sample time-domain
response before it has decayed to 1 /e of its initial value?
732
Chap. 8
JL22 We wish to design a FTR bandpass filter having a duration M = 201. Hj(co) represents
the ideal characteristic of the noncausal bandpass filter as shown in Fig. P8.22.
jt
O.Sjt
0.4 k
0.4 k
0.5 k
jt
Figure P&22
(a) Determine the unit sample (impulse) response hd(n) corresponding to Hj(a>),
M -l
M -l
------ - < n < -
2
~ ~
2
to design a FIR bandpass filter having an impulse response h(n) for 0 < n <
200.
(c) Suppose that you were to design the FIR filter with M = 201 by using the fre
quency sampling technique in which the DFT coefficients H(k) are specified
instead of h(n). Give the values of H(k) for 0 < k < 200 corresponding to
Hd{eJU) and indicate how the frequency response of the actual filter will differ
from the ideal. Would the actual filter represent a good design? Explain your
answer.
6 2 3 We wish to design a digital bandpass filter from a second-order analog lowpass But
terworth filter prototype using the bilinear transformation. The specifications on the
digital filter are shown in Fig. P8.23(a). The cutoff frequencies (measured at the half
power points) for the digital filter should lie at w = 5jt/12 and co ln/12.
The analog protoype is given by
H(s) ----------- l- -----s2 + v 2 j + 1
with the half-power point at 2 = 1 .
(a) Determine the system function for the digital bandpass filter.
(b) Using the same specs on the digital filter as in part (a), determine which of the
analog bandpass prototype filters shown in Fig. P.8.23(b) could be transform ed
directly using the bilinear transformation to give the proper digital filter. Only
the plot of the magnitude squared of the frequency is given.
6 2 4 Figure P8.24 shows a digital filter designed using the frequency sampling method.
(a) Sketch a z-plane pole-zero plot for this filter.
(b) Is the filter lowpass, highpass, or bandpass?
(c) Determine the magnitude response \H(a>) at the frequencies wk ~ n k / 6 for k = 0,
1, 2, 3, 4, 5, 6 .
Chap. 8
Problems
733
ma>)\2
TT
6
t\
J
m m 2
Figure P&23
TT
7r
734
Chap. 8
(d) Use the results of part (c) to sketch the magnitude response for 0 < a> < n and
confirm your answer to part (b).
8.25 An analog signal of the form xa(t) = a(t) cos 2000^/ is bandlimited to the range
900 < F < 1100 Hz. It is used as an input to the system shown in Fig. P8.25.
(a) Determine and sketch the spectra for the signals x(n) and w(n).
(b) Use a Hamming window of length M = 31 to design a lowpass linear phase FIR
filter H(w) that passes (c(n)}.
(c) Determine the sampling rate of the A /D converter that would allow us to elim
inate the frequency conversion in Fig. P8.25.
8.26 System identification Consider an unknown LTI system and an FIR system model
as shown in Fig. P8.26. Both systems are excited by the same input sequence (x(n)}.
The problem is to determine the coefficients (A(n), 0 < n < M - 1} of the FIR model
Chap. 8
Problems
Rx
= ~ = 2500
735
cos (0.8
nn)
Figure P8.25
Figure P8.26
of the system to minimize the average squared error between the outputs of the two
systems.
(a) Use the least-squares criterion to determ ine the equations for the optimum F IR
filter coefficients.
(b) R epeat part (a) if the output of the unknown system is corrupted by an additive
white noise {u>()} sequence with variance cr2.
8.27 D eterm ine the least-squares F IR inverse of length 3 to the system with impulse re
sponse
2,
h(n) =
1.
0.
n= 0
n= 1
otherwise
736
Chap. 8
8.29* A linear time-invariant system has an input sequence x(n) and an output sequence
y(n). The user has access only to the system output y(n). In addition, the following
information is available.
(a ) The input signal is periodic with a given fundamental period N and has a flat
spectral envelope, that is,
N- 1
jt(n) = ^ 2 ct e Ji2xmk"
all n
k=0
where c*k 1 for all k.
(b) The system H(z) is all-pole, that is,
H(z) = ------- -------i+ X > -*
*=4
but the order p and the coefficients (a*, 1 < k < p) are unknown. Is it possible to
determine the order p and the numerical values of the coefficients {ak, 1 < k < p\
by taking measurements on the output y(n)7 If yes, explain how. Is this possible
for every value of p i
(c) Repeat Problem 8 . 3 1 for a system with system function
M
Y , b*: ~k
H (z) =
-----------
k=\
(d) FIR system modeling Consider an unknown FIR system with impulse response
h ( n ) , 0 < n < 11, given by
h(0)
/i( 1 1 )
0.309828
x
x
1 0 ~
h(l)
/i(10)
0.416901
h ( 2)
A (9)
-0.577081
l O -1
h(3) = h ( 8 )
- 0 . 8 52502
1 0 " 1
h( 4 ) = h( 7 )
0.147157 x
10
h(5)
0.449188
10
h(6)
1 0 ~
A potential user has access to the input and output of the system but does not
have any information about its impulse response other than that it is FIR. In
an effort to determine the impulse response of the system, the user excites it
with a zero mean, random sequence x(n) uniformly distributed in the range
[ 0 . 5 , 0 . 5 ] , and records the signal x(n) and the corresponding output y(n) for
0
<
<
199.
(1) By using the available information that the unknown system is FIR, the
user employs the method of least-squares to obtain an FIR model h(n),
0 < n < M 1. Set up the system of linear equations, specifying the param
eters / i ( 0 ) , A ( l),. . . , h(M 1 ) . Specify formulas we should use to determine
the necessary autocorrelation and crosscorrelation values.
Chap. 8
737
Problems
(2) Since the order of the system is unknown, the user decides to try models of
different orders and check the corresponding total squared error. Clearly,
this error will be zero (or very close to it if the order of the model be
comes equal to the order of the system). Com pute the F IR models hM{n),
0 < n < M - 1 for M = 8, 9, 10, 11, 12, 13, 14 as well as the corre
sponding total squared errors E M, M = 8, 9........14. What do you ob
serve?
(3) D eterm ine and plot the frequency response of the system and the models
for M = 1 1 ,1 2 , 13. Comment on the results.
(4) Suppose now that the output of the system is corrupted by additive noise,
so instead of the signal v(n), 0 < n < 199, we have available the sig
nal
v(n) = y(n) + O.Oliy(n)
where w(n) is a Gaussian random sequence with zero mean and variance
ff2 = 1 .
R epeat part (b) by using u(n) instead of _v(n) and comment on the results. The
quality of the model can be also determined by the quantity
OC
J2h
2(n)
n=0
In C hapters 1 and 4 w e treated the sam pling o f con tin u ou s-tim e signals and d em on
strated that if the signals are bandlim ited, it is p ossib le to reconstruct the original
signal from the sam ples, provided that the sam pling rate is at least tw ice the highest
frequency contained in th e signal. W e also briefly describ ed th e sub seq u en t o p er
ations o f quantization and coding that are n ecessary to con vert an analog signal
to a digital signal appropriate for digital processing.
In this chapter w e con sid er tim e-d om ain sam pling, analog-to-digital (A /D )
con version (quantization and cod in g), and d igital-to-an alog ( D /A ) conversion (sig
nal reconstruction) in greater depth. First, w e con sid er th e sam pling o f the sp e
cial class o f signals that are characterized as bandpass signals. T h en w e treat
an alog-to-digital converters and their characteristics. O f particular interest is
the use o f oversam pling and sigm a-delta m odu lation in th e design o f high p re
cision A /D converters. T h e final top ic o f th e chapter is d igital-to-an alog con ver
sio n or, sim ply, the reconstruction o f th e con tinu ou s-tim e sign al from its sam pled
values.
(9.1.1)
Sec. 9.1
739
|X(F)|
-Fr
OC
X + ( F ) e i2* f ' d F
-OC
(9.1.2)
= f - 1 [2 V ( F ) ] * F , [ ^ ( ^ ) ]
T h e signal A+(r) is called the analytic signal or the pre -en v elo p e o f jr(r). W e n ote
that F ~ l [X ( F ) ] = x ( t ) and
/ r [2 V < /)] = <$(r) + ^ 7T/
(9.1.3)
H en ce,
-M O =
*x(t)
SU) +
TT t
x(t) + j * x ( t)
(9.1.4)
TT 1
W e define x { t ) as
x ( t ) = x ( t )
nt
=
iH Jroc ^t
(9.1.5)
^
T h e signal x ( t ) can be view ed as the output o f the filter with im pulse response
00 < t < oo
hit) = ,
nt
(9.1.6)
w hen excited by the input signal * ( /). Such a filter is called a Hilber t trans form er .
T he frequency resp onse of this filter is sim ply
/ OO
h ( t ) e ~ j2,lF,d t
*00
e
- nI Jf.oc i.
t
dt
( F > 0)
(F = 0)
(9.1.7)
(F < 0)
We observe that |tf(F )| = 1 and that the phase response (F) = - I n for F > 0
740
Chap. 9
and @ (F) = jjr for F < 0. T h erefore, this filter is basically a 90 p h ase shifter
for all frequencies in the input signal, and it is akin to the discrete-tim e H ilbert
transform filter described in Section 8.2.6.
T he analytic signal * + (/) is a bandpass signal. W e can obtain an equivalent
low pass representation by perform ing a frequency translation o f X + ( F ) . Thus, w e
define X ,(F ) as
X , ( F ) = X + ( F + Fc)
(9.1.8)
(9.1.9)
or, equivalently,
* (/) + j x ( t ) = x , ( t ) e j2nF''
(9.1.10)
In general, the signal x/(t) is com p lex-valu ed (see P roblem 9.3), and can be
expressed as
jc, ( 0
= M / ) + jf' M 0
(9.1.11)
If w e substitute for x/(t) in (9.1.10) and eq u ate real and im aginary parts on each
side, we obtain the relations
x(r) = u< (t) c o s 2 n F ct - u s (t) s i n 2 j t F ct
(9.1.12)
(9.1.13)
(9.1.14)
w here R e d en o tes the real part o f the com p lex-valu ed quantity in the brackets
follow ing. T h e low pass signal x/(r) is usually called the c o m p l e x envelo pe o f the
real signal j(? ), and is basically the eq uivalent l ow p a ss signal.
Finally, a third p ossib le representation o f a bandpass signal is ob tain ed by
expressing * ,(/) as
x,U ) = a ( t ) e Jfnn
(9.1.15)
a(t ) = yj u l ( t ) + u](t )
(9.1.16)
where
Sec. 9.1
741
Then
.r(r) = R e[x,(r)e-/2irF'']
= R e [ a ( f ) ^ 23rF,+^>J]
= a (r )c o s[ 2 jr /v / + 0 ( 0 ]
(9.1.18)
[R e[ xi(t)ej27fFr' ] } e - i2,tF,d t
(9.1.19)
U se o f the identity
R e ( f) = i ( * + n
(9.1.20)
X ( F ) = -l
J
-oc
= \ [ X t ( F Fc) + X j i F F(.)]
(9.1.21)
w here X i ( F ) is the Fourier transform o f x/(t). T his is the basic relationship b etw een
the spectrum o f the real bandpass signal x ( t ) and the spectrum o f the equivalent
low pass signal xi(t).
It is apparent from (9.1.21) that the spectrum o f the bandpass signal x ( t )
can b e ob tain ed from the spectrum o f the com p lex signal x t (t) by a frequency
translation. T o be m ore precise, su p p ose that the spectrum o f the signal *;(/)
is as sh ow n in Fig. 9.2(a). T hen the spectrum X ( F ) for p ositive freq u en cies is
sim ply X f ( F ) translated in frequency to the right by Fc and scaled in am plitude by
5 . T he spectrum X ( F ) for negative freq u en cies is ob tain ed by first foldin g X / ( F )
about F = 0 to obtain X i ( - F ), conjugating X t ( ~ F ) to ob tain X * ( - F ) , translating
X * ( - F ) in frequency to the left by /> , and scaling the result by
T h e folding
and conjugation o f X i ( F ) for the negative-frequency co m p on en t o f the spectrum
result in a m agnitude spectrum |X (F )| that is even and a phase spectrum 2^ X ( F )
that is od d as show n in Fig. 9.2(b). T h ese sym m etry p roperties m ust hold since
the signal x ( t ) is real valued. H ow ever, they do not apply to the spectrum o f the
equ ivalen t com plex signal X i(t).
T h e d ev elo p m en t ab ove im plies that a n y b a nd p ass signal x ( t ) can b e re pre
se nted b y an eq u ivalent lo w pa ss signal x/(t). In general, the equivalent low pass
signal x /( t) is com p lex valued, w hereas the bandpass signal x ( t ) is real. T h e latter
can b e ob tain ed from the form er through the tim e-d om ain relation in (9.1.14) or
through the frequency-dom ain relation in (9.1.21).
742
Chap. 9
|*,(F)|
-f2
F,
&i(F)
(P
(a)
|X(F)|
-F-F,
-F-F+F,
F - F-, - Fr F + F,
K X (n
Figure 9.2 (a) Spectrum of the lowpass signal and (b) the corresponding spectrum
for the bandpass signal.
Sec. 9.1
743
X(F)
B-,
-B,
an am ount
Fc =
B x + B2
(9.1.22)
and sam pling the equivalent low pass signal. Such a frequency shift can be achieved
by m ultiplying the bandpass signal as given in (9.1.12) by the quadrature carriers
co s 2 jt Fc[ and sin 2 n F ct and low pass filtering the products to elim inate the signal
co m p o n en ts at 2 Fc. Clearly, the m ultiplication and the su b seq u en t filtering are first
perform ed in the analog dom ain and then the ou tp u ts o f the filters are sam pled.
T h e resulting eq u ivalen t low pass signal has a bandw idth B /2 , w h ere B = B2 B\.
T h erefore, it can be represented uniquely by sam ples taken at the rate o f B sam p les
per secon d for each o f the quadrature com p onents. Thus the sam pling can be
p erform ed on each o f the low pass filter outputs at the rate o f B sam p les per secon d,
as indicated in Fig. 9.4. T herefore, the resulting rate is 2 B sam ples per second.
In v iew o f the fact that frequency con version to low pass allow s u s to reduce
the sam pling rate to I B sam ples per secon d, it should be p ossib le to sam ple the
bandpass signal at a com parable rate. In fact, it is.
S u p p ose that the upper frequency Fc + B p , is a m ultiple o f th e bandwidth B
(i.e., Fc + B / 2 = k B ) , w here k is a p ositive integer. If w e sam ple * ( /) at the rate
744
Chap. 9
(9.1.23)
(9.1.24)
= u s (' m T j - ^
( - l ) m + t+ 1
(9.1.25)
T h erefore, the even -n um b ered sam ples o f x{ t), which occur at the rate o f B sam
p les per secon d, produce sam p les o f the low p ass signal com p on en t u c(t). T he
odd-num bered sam ples o f x ( t ) , which also occu r at the rate o f B sam ples per
secon d , produce sam ples o f the low pass signal com p onent K ,(f).
N o w , the sam p les {uc{mT\)} and the sam ples (w,(m 7i 7 \/2 )) can b e used
to reconstruct the equivalent low pass signals. Thus, according to the sam pling
theorem for low p ass signals with T\ = 1 / B ,
^
, .,s in ( 7 r /r i) (/ - m 7 j )
2 ^ u ^ m T 0 , / T Ul------- = rr( x / T \ ) ( t m T \)
uA t) =
f.\
M
V'
)
t
n
,n 1 ^
(9.1.26)
* T
r +
r m
( M
2 7 )
Furtherm ore, th e relation s in (9.1.24) and (9.1.25) allow us to express u c(t) and
3 (i) directly in term s o f sam p les o f x ( t ) . N ow , sin ce x ( t ) is exp ressed as
x ( t ) = u c(t) c o s 2 n F ct u s (t) s m 2 n Fct
(9.1.28)
\,
^ s in (jr /2 r )(r -2 m 7 )
XQa
) ( n / 2 T W - 2 r , T ) - C S 2 * F '
(9.1.29)
B ut
( l ) m c o s 2 ti Fct = c o s 2 j r Fc{t 2m T )
and
(l ) m+* sin27r Fct =
cos2nrFc(r 2m T + T )
Sec. 9.1
745
x (i)=
sin (jr/27')(/ - m T )
------ - c o s l n F c{ t - m T )
x(m T)
[n/2T )(t - m T)
(9.1.30)
w here T = 1 /2 B. T his is the desired reconstruction form ula for the bandpass signal
x ( i ) , with sam p les taken at the rate o f I B sam ples per secon d , for the special case
in w hich the upper band frequency Fc + B f 2 is a m ultiple o f the signal ban d
w idth B.
In the general case, where only the condition Fc > B f 2 is assum ed to hold,
let us define the in teger part o f the ratio Fc + B / 2 to B as
Fc + B / 2
(9.1.31)
(9.1.32)
Furtherm ore, it is con ven ien t to define a new center frequency for the increased
bandwidth signal as
+
(9.1.33)
Clearly, the increased signal bandw idth B' includes the original signal spectrum of
bandwidth B.
N o w the upper cu to ff frequency Fc + B / 2 is a m ultip le o f B', C onsequently,
the signal reconstruction form ula in (9.1.30) h old s with Fc replaced by F'c and T
replaced by T \ w here T ' = 1 /2 B \ that is,
/2 T '){t m T ')
^
* > - ^
r ) l d r w
- r ) . c m 2 7 , F {' ~ m T )
This p roves that x{ t) can b e represented by sam ples taken at the uniform rate
1 / T 2 B r ' / r , w here r' is the ratio
,
Fc + B / 2
j
Fc
-
1
+
( 9 .1 .3 5 )
and r = \r'J.
W e o b serve that w hen the upper cu toff frequency Fc + B / 2 is n ot an integer
m ultiple o f the bandwidth B , the sam pling rate for the bandpass signal m ust be
increased by the factor r ' f r . H ow ever, n ote that as Fc/ B increases, the ratio r ' f r
ten d s tow ard unity. C on sequ en tly, the p ercent increase in sam pling rate tends to
zero.
T he derivation given ab ove also illustrates the fact that the low pass signal
co m p o n en ts u c(t) and u s(t) can b e exp ressed in term s o f sam p les o f the bandpass
746
Chap. 9
signal. In d eed , from (9.1.24), (9.1.25), (9.1.26), and (9.1.27), w e obtain the result
mo -
j l <-ir,
and
, > =
( 9 .U 7 )
w here r = Lr'J.
In con clu sion , w e have dem onstrated that a bandpass signal can b e repre
sen ted u n iqu ely by sam ples taken at a rate
2 B < Fs < 4 B
w here B is the bandw idth o f the signal. T h e low er lim it ap p lies w h en the upper
frequency Ft. + B / 2 is a m ultiple o f B, T he upper lim it on Fs is ob tain ed under
w orst-case con d ition s w hen r = 1 and r' % 2 .
Figure 9.5
Sec. 9.1
747
am ount o f signal distortion due to aliasing is negligible. F or exam ple, the sp eech
signal to be transm itted digitally over a telep h o n e channel w ould be filtered by
a low p ass filter having a passband exten d ing to 3000 H z, a transition band o f
approxim ately 400 to 500 H z, and a stopband ab ove 3400 to 3500 H z. T he speech
signal m ay be sam pled at 8000 H z and h en ce the fold in g frequency w ould be
4000 H z. Thus aliasing would be n egligible.
A n o th e r reason for using an antialiasing filter is to lim it the additive n oise
spectrum and other interference, w hich often corrupts the desired signal. U su
ally, ad d itive n oise is w ideband and exceed s the bandw idth o f the desired signal.
B y prefiltering w e reduce the additive noise p ow er to that which falls w ithin the
bandwidth o f the desired signal and w e reject the ou t-of-b an d noise.
Ideally, w e w ould like to em p loy a filter with steep cu toff frequency resp onse
characteristics and with no delay distortion w ithin the passband. Practically, h ow
ever, w e are constrained to em p loy filters that have a finite-w idth transition region,
are relatively sim ple to im plem ent, and introduce som e tolerab le am ount o f delay
distortion. V ery stringent filter specifications, such as a narrow transition region,
result in very com plex filters. In practice, w e may c h o o se to sam p le the signal well
ab ove the Nyquist rate and thus relax the design sp ecification s on the antialiasing
filter.
O n ce w e have specified the prefilter requirem ents and have selected the d e
sired sam pling rale, w e can p roceed with the design o f the digital signal processing
op eration s to be perform ed on the discrete-tim e signal. T h e selection o f the sam
pling rate Fs = 1 / 7 , where T is the sam pling interval, not only determ ines the
highest frequency (Fsf 2) that is preserved in the analog signal, but also serves as a
scale factor that influences the design specifications for d igital filters and any other
discrete-tim e system s through w hich the signal is processed .
For exam ple, su p p ose that w e have an analog signal to be differentiated that
has a bandw idth o f 3000 H z. A lth ou gh differentiation can be perform ed directly
on the analog signal, w e ch oose to do it digitally in discrete tim e. H en ce w e
sam ple th e signal at the range Fs = 8000 H z and d esign a digital d ifferentiator as
described in Sec. 8.2.4. In this case, the sam pling rate Fs = 8000 H z estab lish es
the foldin g frequency o f 4000 H z, which corresponds to the frequency w = n
in the discrete-tim e signal. H en ce the signal bandwidth o f 3000 H z corresponds
to the frequency wc = 0.75tt. C on sequ en tly, the discrete-tim e differentiator for
p rocessing the signal would be designed to have a passband o f 0 < \w\ < 0.75jt.
A s an oth er exam ple o f digital p rocessing, the sp eech signal that is b andlim
ited to 3000 H z and sam pled at 8000 H z m ay be separated in to tw o or m ore
frequency subbands by digital filtering, and each subband o f sp eech is digitally e n
cod ed with different precision, as is d on e in subband cod in g (see Section 10.9.5 for
m ore d etails). T h e frequency resp onse characteristics o f the digital filters for sep
arating th e 0- to 3000-H z signal in to subbands are sp ecified relative to the folding
frequency o f 4000 H z, which corresponds to the frequency co = n for the d iscrete
tim e signal. Thus w e m ay process any con tinu ou s-tim e signal in the discrete-tim e
dom ain by perform ing equivalent op eration s in discrete tim e.
746
Chap. 9
9.2.1 Sample-and-Hold
In practice, the sam pling o f an analog signal is p erform ed b y a sam ple-and-hold
(S /H ) circuit. T h e sam pled signal is th en q uantized and con verted to digital form.
U sually, the S/H is integrated in to the A /D converter.
T he S/H is a digitally con trolled analog circuit that tracks the analog input
signal during the sam ple m od e, and then h old s it fixed during th e hold m ode to
the instantaneous value o f the signal at the tim e th e system is sw itched from the
Sec. 9.2
749
Analog-to-Digital Conversion
(a)
Tracking
Figure 9.6 (a) Block diagram of basic elements of an A/D converter; (b) timedomain response of an ideal S/H circuit.
sam ple m o d e to the hold m ode. Figure 9.6(b) show s the tim e-dom ain resp onse o f
an ideal S/H circuit (i.e., a S/H that responds instantaneously and accurately).
T he goal o f the S/H is to continuously sam ple the input signal and then to
hold that value constant as lon g as it takes for the A /D converter to ob tain its
digital representation. T h e use o f an S/H allow s the A /D con verter to op erate
m ore slow ly com pared to the tim e actually used to acquire the sam ple. In the
ab sen ce o f a S/H , the input signal must n ot change by m ore than on e-h alf o f the
quantization step during the conversion, which m ay be an im practical constraint.
C on sequ en tly, the S/H is crucial in h igh-resolution (12 bits per sam ple or higher)
digital conversion o f signals that have large bandw idths (i.e., they change very
rapidly).
A n ideal S/H introduces n o distortion in the conversion p rocess and is ac
curately m o d eled as an ideal sam pler. H ow ever, tim e-related degradations such
as errors in the p eriodicity o f the sam pling p rocess ( jitter), n onlinear variations
in the duration o f the sam pling aperture, and changes in the voltage held during
con version ( d ro o p ) d o occur in practical devices.
T h e A /D converter begins the conversion after it receives a convert co m
m and. T h e tim e required to com p lete the con version should b e less than the
duration o f the hold m o d e o f the S/H . F urtherm ore, the sam pling p eriod T should
b e larger than the duration o f the sam ple m od e and the hold m ode.
In th e follow in g section s w e assum e that the S/H introduces n egligib le errors
and w e fo cu s on the digital conversion o f the analog sam ples.
750
Chap. 9
k = 1 ,2 ,..., L
(9.2.1)
if * (n ) Ik
(9.2.2)
Decision
levels
\
*3
*3
<
\
*4 H
x5
r~
xk xk xk*\
xl
! - 4A
>
x2
*2
- 3A
x3
x5
- 2A
*4 *4 -*5
-
x5
x6
X1
X1
2A
Instantaneous amplitude-------
xi
-*8 -*9= 00
3A
Sec. 9.2
Analog-to-Digital Conversion
751
Figure 9.8
752
Chap. 9
TABLE 9.1
C O M M O N LY US ED BIPOLAR C O D E S
Decimal Fraction
Number
Positive
Reference
+7
+i
+6
+i
+5
+5
+4
+i
+3
+1
+2
+1
+1
0
0
-1
-2
0+
01
B
2
s
Negative
Reference
7
8
h
K
5
*
4
5
3
K
2
S
1
8
00+
Sign +
Magnitude
Two's
Complement
Offset
Binary
Ones
Complement
0111
0111
1111
0111
0 110
0110
1110
0 110
0 10 1
0 10 1
110 1
0 10 1
0 1 00
0 10 0
1100
0 1 00
00 1 1
00 1 1
0 0 11
10 11
0010
0 0 10
10 10
00 1 0
000 1
000 1
100 1
000 1
+s
0 00 0
1000
100 1
0000
(0 0 0 0)
1111
1000
( 1 0 0 0)
0111
0000
1111
1110
10 10
1110
0 110
110 1
110 1
0 10 1
1100
1100
0 10 0
10 11
-3
+1
10 11
-4
~S
+i!
1100
-5
~s
6
~s
7
~g
8
S
+!
110 1
10 11
00 1 1
10 10
+!
1110
10 10
00 1 0
10 0 1
+1
1111
10 0 1
000 1
1000
(1 0 0 0)
(0 0 0 0)
-6
-7
-8
+i
Sec. 9.2
Analog-to-Digital Conversion
753
P b has the
Chap. 9
754
(b)
(c)
(d)
(e)
properties o f eq( n ):
L T h e error eq(n) is uniform ly distributed over the range A /2 < eq{n) < A /2.
2. T h e error seq u en ce
is a stationary w h ite n o ise seq u en ce. In other
w ords, the error eq (n ) and the error eq (m) for m
are uncorrelated.
Sec. 9.2
Analog-to-Digital Conversion
Quantizer
x(n)
755
xAn)
GM>]
(a) Actual system
x(n)-
&
eq{n)
quantization noise.
(9.2.6)
A/2
f A/2
. , / m d e = z L A/2
A2
(9.2.7)
Pie)
1
A
756
Chap. 9
By com bining (9.2.5) w ith (9.2.7) and substituting the result in to (9.2.6), the
exp ression for the S Q N R b ecom es
S Q N R = 10 log = 20 log
P
a,
(9.2.8)
= 6.02* + 16.81 - 20 log
ox
dB
(9.2.9)
Sec. 9.2
757
Analog-toDigital Conversion
T h e variance o f d ( n ) is
u l = E [ d 2(n)] = {[x (n ) - x ( n - l ) ] 2}
= E [ x \ n ) } - 2 E [ x ( n ) x ( n - 1)] + E [ x 2(n - 1)]
= 2<7j[1 -
y* A 1
(9.2.10)
)]
w here y xx( l ) is the value o f the autocorrelation seq u en ce yxx(m) o f x ( n ) evalu ated
at m = 1. If Yx.r (l) > 0.5, w e ob serve that aJ < cr^. U n d er this condition, it
is better to quantize the d ifferen ce d{n) and to recover x( n ) from the quantized
valu es {d9(n)}. T o obtain a high correlation b etw een successive sam ples o f the
signal, w e require that the sam pling rate be significantly higher than the N yquist
rate.
A n ev en b etter approach is to quantize the d ifference
d ( n ) = x ( n ) a x ( n 1)
(9.2.11)
w here a is a param eter selected to m inim ize the variance in d{n). This leads to
the result (see Problem 9.7) that the optim um ch oice o f a is
a =
Yxx^
Yxx^
Yxx (0)
and
a d2 = a 2x [\ - a 2]
(9.2.12)
In this case, ctJ < a 2, since 0 < a < 1. T he quantity a x ( n 1 ) is called a first-order
predictor o f jc().
Figure 9.12 sh ow s a m ore general differential predictiv e signal quantizer sys
tem . This system is u sed in sp eech en cod in g and transm ission over telep h on e
channels and is know n as differential p u lse co d e m odulation (D P C M ). T h e goal
o f the predictor is to provide an estim ate x ( n ) o f x ( n ) from a linear com bination
o f past values o f x ( n ) , so as to red u ce the dynam ic range o f the difference signal
d ( n ) = x { n ) x ( n ). T hus a predictor o f order p has the form
p
x ( n ) = ^ 2 akx (n - k )
Figure 9.12 Encoder and decoder for differential predictive signal quantizer
system.
(9.2.13)
758
Chap. 9
T he use o f the feed b ack loop around the quantizer as sh ow n in Fig. 9.12 is n ec
essary to avoid the accum ulation o f quantization errors at the d ecoder. In this
configuration, the error e ( n ) = d ( n ) dq (n) is
e(n) = d ( n ) - dq(n) = x(n ) - x (n) - dq (n) = Jf(n) - x q (n)
Thus the error in the reconstructed quantized signal x q (n) is equal to the quan
tization error for the sam ple d (n). T h e d ecod er for D P C M that reconstructs the
signal from the q uantized values is also show n in Fig. 9.12.
T h e sim p lest form o f differential predictive quantization is called delta m o d
ulation (D M ). In D M , the quantizer is a sim ple 1-bit (tw o -lev el) quantizer and the
predictor is a first-order predictor, as shown in Fig. 9.13(a). B asically, D M pro
vid es a staircase approxim ation o f the input signal. A t every sam pling instant, the
sign o f the d ifferen ce b etw een the input sam ple x ( n ) and its m ost recent staircase
approxim ation x ( n ) = a x q (n 1 ) is determ ined, and then the staircase signal is
updated by a step A in the direction o f the d ifference.
From Fig. 9.13(a) w e ob serve that
x q (n) = a x g(n - 1) + dq {n)
(9.2.14)
Sec. 9.2
Analog-to-Digital Conversion
759
Coder
Decoder
(a)
(b)
T
(c)
Figure 9.13 Delta modulation system and two types of quantization errors.
us con sid er the discrete-tim e m od el o f S D M , sh ow n in Fig. 9.15, where w e have
assum ed that the com parator ( 1 -bit quantizer) is m od eled by an additive w hite
n o ise source w ith variance a f = A 2 /12. T h e integrator is m od eled b y the d iscrete
tim e system with system function
(9.2.15)
760
Figure 9.14
Chap. 9
H{z)
ein)
1 + H {z )
1 + H (z)
E (z )
(9.2.16)
Sec. 9.2
761
Analog-to-Digrtal Conversion
band 0 < F < B . O n the other hand, H(z) should have high attenuation in the
frequency band 0 < F < B and low attenuation in the band B < F < Fs/2.
For th e first-order S D M system with th e integrator specified by (9.2.15), w e
have
Hs (z) = z ~ 1
(9.2.17)
H n(z) = l - z ~ 1
(/^) I = 2 sin
(9.2.18)
Fs
F,
~T
Figure 9.16
F,
2
Frequency (magnitude) response o f noise system function.
762
Chap. 9
Digital section
Figure 9.17
appropriate filter. Thus, S D M provides a 1-bit quantized signal at a sam pling fre
q uency Fs = 2I B , w here the oversam pling (interp olation) factor I d eterm in es the
SN R o f the S D M quantizer.
N ext, we explain how to convert this signal in to a b-bit q uantized signal at
the N yquist rate. First, w e recall that the S D M d ecod er is an an alog low p ass filter
with a cu toff frequency B. T h e output o f this filter is an approxim ation to the
input signal x(r). G iven the 1-bit signal dq {n) at sam pling frequency Fs , w e can
obtain a signal x q {n) at a low er sam pling frequency, say the N yquist rate o f 2 B
or som ew hat faster, by resam pling the output o f the low pass filter at the 2 B rate.
T o avoid aliasing, w e first filter out the out-of-band (fl, F J 2) n o ise by processing
the w ideband signal. T h e signal is then passed through the low pass filter and
resam pled (dow nsam pled ) at the low er rate. T he dow nsam pling process is called
decimation and is treated in great detail in Chapter 10.
For exam p le, if the interpolation factor is I = 256, the A /D con verter output
can be obtained by averaging su ccessive non-overlapping blocks o f 128 bits. This
averaging w ould result in a digital signal with a range o f valu es from zero to
256{b as 8 bits) at the N yquist rate. T he averaging p rocess also provid es the
required antialiasing filtering.
Figure 9.17 illustrates the basic elem en ts o f an oversam p lin g A /D converter.
O versam pling A /D con verters for voice-band (3-k H z) signals are currently fab
ricated as integrated circuits. T ypically, they op erate at a 2 -M H z sam pling rate,
dow nsam ple to 8 kH z, and provide 16-bit accuracy.
Sec. 9.3
Digital-to-Analog Conversion
763
(9.3.1)
(n/T )(t - n T )
(9.3.2)
n t/T
as the ideal interpolation function. T he interpolation form ula for x(r), given by
(9.3.1), is basically a linear superposition o f tim e-sh ifted versions o f g (t). with each
g (t n T ) w eigh ted by the corresponding signal sam ple x ( n T ) .
A ltern atively, w e can view the reconstruction o f th e signal from its sam ples as
a linear filtering p rocess in which a discrete-tim e seq u en ce o f short pulses (ideally
im pulses) with am plitudes equal to the signal sam ples, excites an analog filter, as
illustrated in Fig. 9.18. T h e analog filter corresponding to the ideal interpolator
has a frequency response
T,
IFf
0,
|F | >
<
H (F) =
Fs
2T
(9.3.3)
2T
H ( F ) is sim ply the F ourier transform of the in terp olation function g{t). In other
w ords, H { F ) is the frequency resp onse o f an analog reconstruction filter w h ose
Ideal analog
lowpass filter
H (F)
Reconstructed signal
Input signal
F.
Y .
x(nT)& (t ~ nT)
x (t)=
oc
sin
0 - riT)
Y l
x(nT )~
--------------
n=-oc
(! nT)
764
Chap. 9
H (F )
L
'
Fi
2
(a)
hU)
(b)
Figure 9.19 Frequency response (a) and the impulse response (b) of an ideal
low-pass filter.
im pulse response is h(t) = g(t). A s show n in Fig. 9.19, the id eal reconstruction
filter is an ideal low pass filter and its im pulse resp on se exten d s for all tim e. H ence
the filter is noncausal and physically nonrealizable. A lth ou gh th e interpolation
filter with im pulse resp onse given by (9.3.1) can be approxim ated closely with
som e delay, the resulting function is still im practical for m ost ap p lication s where
D /A con version is required.
In this sectio n w e p resent som e practical, alb eit nonideat. in terp olation tech
niques and interpret them as linear filters. A lth ou gh m any sophisticated poly
nom ial interpolation tech n iqu es can b e d evised and analyzed, our discussion is
lim ited to constant and linear interpolation. Q uadratic and h igh er polyn om ial in-
Sec. 9.3
Digital-to-Analog Conversion
765
terp olation is often used in num erical analysis, but is it less likely to be used in
digital signal processing.
Digital
input
signal
Digitalto-analog
convener
Figure 9.20
1,
0,
Sample
and
hold
0 < t< T
otherw ise
(9.3.4)
Lowpass
smoothing
filter
Analog
output
signal
766
3A
2A
/
_l_______1_______L.
100
101
110
111
001
000
010
011
/
-A
-2 A
-4A
Offset :
error
JL,
//
sy
r /1 i i i
i i i
Z x "
Scale factor
or gain error
L_i_u-iiii
Nonmonoionicity
Figure 9.21 (a) Ideal D/A converter characteristic and (b) typical deviations from
ideal performance in practical D/A converters.
Chap. 9
Sec. 9.3
767
Digital-to-Analog Conversion
Sampled signal -
-x(t)
S /H
(b)
*(/)
(c)
OO
h{t)e->2F'd t
00
[ T e - j2* F,d t
Jo
r ( sin n F T \
\ 7TF T )
(9.3.5)
,-jxFT
T h e m agnitude and p h ase o f H ( F ) are p lotted in Figs. 9.23. For com parison, the
freq u en cy resp o n se o f th e id eal interpolator is su p erim p osed o n th e m agnitude
characteristics.
It is apparent that the S/H d o es not p ossess a sharp cu toff frequency re
sp on se characteristic. T his is du e to a large exten t to the sharp transitions o f
its im pulse resp onse h ( t). A s a con seq u en ce, the S /H p asses undesirable aliased
frequency co m p o n en ts (freq u en cies ab ove Fsf 2) to its output. T o rem edy this
problem , it is com m on practice to filter i( r ) by passing it through a low pass filter
768
Chap. 9
l(F)|
9(F)
which highly atten u ates frequency com p onents ab ove F J 2. In effect, the low pass
filter follow ing the S/H sm ooth s the signal x ( t ) by rem oving th e sharp discontinu
ities.
= x(nT) +
T)
X
^ n T ~ T - (t
raf)
nr<K(n
l)r
(9.3.6)
Sec. 9.3
Digital-to-Analog Conversion
769
W hen view ed as a linear filter, the im pulse resp onse o f the first-order hold is
1 + T'
h(t) =
t
1
0,
0 <t <T
(9.3.7)
T < t < IT
otherw ise
H ( F ) = T ( \ + A n F 2T 2) X f l ( ^ ^ ^ j
(9.3.8)
(9.3.9)
T h ese frequency resp onse characteristics are graphically illustrated in Fig. 9.25(b)
and (c).
Since this reconstruction tech n iqu e also suffers from distortion due to passage
o f frequency com p o n en ts ab ove Fs/ 2, as can be ob served from Fig. 9.25(b), it is
fo llo w ed by a low pass filter that significantly atten u ates freq u en cies ab ove the
fold in g frequency Fs f l .
T h e p eak s in H { F ) within the band |F | < Fsf l m ay be undesirable in som e
applications. In such a case it is possib le to m odify th e im pulse response by
reducing the slop e by so m e factor 0 < 1. T his results in th e im pulse response h (t)
illustrated in Fig. 9.26(a). T he corresponding frequency resp onse is given by
-r[i-
0 + 0(1 + j l n F T )
(9.3.10)
k(l)
\H {F )\
(b)
9(F)
Figure 9.25 Impulse response (a) and frequency response characteristics (b) and
(c) for a first-order hold.
770
Sec. 9.3
771
Digital-to-Analog Conversion
h(t)
MF)!
2T
IT
(b)
Figure 9.26 Impulse response (a) and frequency (magnitude) response (b) for a
modified first-order hold.
d o es not exist w h en 0 = 0.1. T hus this m odified first-order hold exhibits b etter
frequency resp onse characteristics in the frequency range |F | < Fs/ 2.
772
Chap. 9
the signal. In effect, this tech n iqu e linearly extrapolates or attem p ts to linearly p r e
dict the next sam ple o f the signal based on the sam ples x ( n T ) and x { n T - T). A s
a co n sequ en ce, the estim ated signal w aveform i ( r ) contains jum ps at the sam ple
points.
The jum ps in x ( t ) can be avoided by providing a o n e-sa m p le delay in the re
construction process. Then successive sam ple p oin ts can b e con n ected by straightlin e segm ents. Thus the resulting interpolated signal x ( t ) can b e exp ressed as
x(t) = x{nT - T ) +
x ( n T ) x ( n T 7")
(t n T )
n T < t < (n + 1 )T
(9.3.11)
dt
(9.3.13)
-j2x Fi
Figure 9.27
Sec. 9.3
773
Digital-to-Analog Conversion
A (r)
(a)
IW )I
_3
T
__2
T
_ J _ __ 1_ 0
T
IT
J_
IT
J_
T
2_
2
T
(b)
9(F)
(c)
Figure 9.28 Impulse response (a) and frequency response characteristics (b) and
(c) for the linear interpolator with delay.
774
Digital section
Chap. 9
Analog section
Chap. 9
Problems
775
digital p rocessin g o f a n alog signals, either on a gen eral-p u rp ose com puter or on a
cu stom -d esign ed digital signal processor. T he related issue o f D /A conversion was
also treated. In addition to the con ven tional A /D and D /A con version techniques,
w e also described a n oth er type o f A /D and D /A con version , based on the principle
o f oversam p lin g and a type o f w aveform en cod in g called sigm a-delta m odulation.
S igm a-d elta con version tech n ology is especially suitable for audio band signals due
to their relatively sm all bandwidth (less than 20 k H z) and in som e applications,
th e requirem ents for high fidelity.
T h e sam pling th eorem was introduced by N yquist (1928) and later p opular
ized in the classic paper by Shannon (1949). D /A and A /D con version techniques
are treated in a b ook by Sheingold (1986). O versam pling A /D and D /A con ver
sion has b een treated in the technical literature. Specifically, w e cite the work o f
C andy (1986), C andy et al. (1981) and Gray (1990).
PROBLEMS
9.1 Consider the sampling of the bandpass signal whose spectrum is illustrated in Fig. P9.1.
Determine the minimum sampling rate Fx to avoid aliasing.
X(F)
9 2 Consider the sampling of the bandpass signal whose spectrum is illustrated in Fig. P9.2.
Determine the minimum sampling rate Fs to avoid aliasing.
X(F)
9.3 Prove that xi(t) is generally a complex-valued signal and give the condition under
which it is real. Assume that x(t) is a real-valued bandpass signal.
9.4 Consider the two systems shown in Fig. P9.4.
(a) Sketch the spectra of the various signals if xa(t) has the Fourier transform shown
in Fig. 9.4(b) and F, = 2 B. How are >](f) and ^ (z) related to xa(t)f
( b ) Determine >i(r) and ^(z) if xa(t) = cos2nFot, Fo = 20 Hz, and F, = 50 Hz or
Fs = 30 Hz.
776
F,
Chap. 9
F,
(a)
XJF)
(b)
Figure P9.4
9.5 A contin uou s-tim e signal xa(t) with bandw idth B and its ech o xa(t - r) arrive sim ul
taneously at a T V receiver. T h e received an aiog signal
sa(t) = xa(r) + a x a( t - T )
|| < 1
F,
Figure P9J
9 j6 A bandlim ited co n tin u ou s-tim e signal x(t) is sam pled at a sam plin g frequen cy F s >
2 B . D ete rm in e th e en ergy E d o f th e resulting d iscrete -tim e signal x(n) as a function
o f th e energy o f th e an alog signal, E a, and th e sam pling period T = 1 / F S.
9 .7 L e t x(n) b e a zero-m ean statio n ary p rocess with v arian ce
Chap. 9
777
Problems
a j = a 2[l + a2 - 2apx(l)]
where px(l) = j'x(l)/?'* (0) is the normalized autocorrelation sequence,
(b) Show that <rj attains its minimum value
(b ) Using a two-term Taylor series expansion of the sine function and assuming that
which implies a 15-dB increase for every doubling of the sampling frequency.
778
Chap. 9
e(n)
Figure P 9 .ll
9.12 Figure P9.12 illustrates the basic idea for a lookup table based sinusoidal signal gen
erator. The samples of one period of the signal
'2n
x ( n ) = cos ( n
n = 0 ,1 ........N - l
Figure P9.12
9.13 Suppose that we represent an analog bandpass filter by the frequency response
H( F) = C( F - Fc) + C*{F - Fc)
where C ( f ) is the frequency response of an equivalent lowpass filter, as shown in
Fig. P9.13.
Chap. 9
Problems
779
(a) Show that the impulse response c(r) of the equivalent lowpass filter is related to
the impulse response h(t) of the bandpass filter as follows:
h(t) = 2Re[c(t)ej2jrF{']
(b) Suppose that the bandpass system with frequency response H ( F ) is excited by a
bandpass signal of the form
x(t) = Re[u(f)e-'2rF,''3
where u(r) is the equivalent lowpass signal. Show that the filter output may be
expressed as
y(r) = Re[r(/)e-'2)rfV']
where
-8
Figure P9.13
9.14* Consider the sinusoidal signal generator in Fig. P9.14, where both the stored sinusoidal
data
780
Chap. 9
Interpolated values
Interpolated values
(a>
Insert
zeros
jc/n)
Figure P9.13
(a)
nU(r\
\i)
(d) Determine and sketch the spectra of the resulting sinusoids in each case both
analytically [using the results in part (c)] and evaluating the DFT of the resulting
signals.
(e) Sketch the spectra of x, (n) and j(n), if x(n) has the spectrum shown in Fig. P9.14(c)
for both zero-order and linear interpolation. Can you suggest a better choice for
Chap. 9
781
Problems
XM
0
3
n
3
(c)
Figure P9.13
(c)
9.15 Let xa(t) be a time-limited signal: that is, xa(t) = 0 for |/| > t , with Fourier transform
X ( F ) . The function X ( F ) is sampled with sampling interval &F = 1/T<.
(a) Show that the function
CC
(b ) Show that X ( F) can be recovered from the samples X a(kSF), - o c < k < oc if
T, >
2t.
(c) Show lhal if Tx < 2r. there is time-domain aliasing that prevents exact recon
struction of X U(F).
(d) Show that if 7, > 2 r, perfect reconstruction of X a(F) from the samples X(k5F)
is possible using the inlerpolation formula
OO
XJF) = ^ 2
X a (k&F)
sin { ( j i / S F ) ( . F ~ k S F ) ]
(n /8 F )(F - k S F )
10
Sec. 10.1
783
Introduction
q u a d r a tu re m irro r filters in su b b a n d coding, tra n sm u ltip le x e rs, a n d finally o v ersam p lin g A /D an d D /A co n v e rte rs.
10.1 INTRODUCTION
T h e p ro c e ss o f sa m p lin g ra te co n v ersio n in th e d ig ital d o m a in can b e v iew ed as
a lin e a r filterin g o p e ra tio n , as illu stra te d in Fig. 10.1(a). T h e in p u t signal jr(n)
is c h a ra c te riz e d b y th e sa m p lin g ra te Fx = \ / T x a n d th e o u tp u t signal y ( m ) is
c h a ra c te riz e d by th e sa m p lin g ra te F v = 1/7V, w h e re Tx a n d Ty are th e c o r re
s p o n d in g sam p lin g in terv als. In th e m ain p a r t o f o u r tr e a tm e n t, th e ra tio Fy/ F x is
co n s tra in e d to b e ra tio n a l,
Fx =L
D
w h ere D a n d / a re relativ ely p rim e in teg ers. W e shall show th a t th e lin e a r filter
is c h a ra c te riz e d by a tim e -v a ria n t im pulse re sp o n se , d e n o te d as h ( n , m ) . H e n c e
th e in p u t x ( n ) an d th e o u tp u t v( m) a re re la te d by th e c o n v o lu tio n su m m a tio n fo r
tim e -v a ria n t system s.
T h e sam p lin g ra te co n v ersio n p ro cess can also b e u n d e rsto o d fro m th e p o in t
o f view o f d igital re sam p lin g o f th e sam e an a lo g signal. L et x ( i ) b e th e a n a
log signal th a t is sa m p le d at th e first ra te Fx to g e n e ra te x ( n) . T h e goal o f
ra te co n v ersio n is to o b ta in a n o th e r se q u e n c e y(m ) d ire c tly from jr(n). w hich
is eq u a l to th e sa m p le d v alu es o f x ( t ) at a se co n d ra te Fy. A s is d e p ic te d in
Fig. 10.1(b), y(m ) is a tim e-sh ifted version o f * (n ). S uch a tim e shift can be
x(n)
Linear filter
k(n, m)
Tx
y{i")
Fx mT
ky
(a)
(b)
Figure 10.1
7B4
Chap. 10
M * * ! D
o th erw ise
(10.2.1)
v(n) = Y ^ ^ ) x ( n - k)
t=o
X(fl)
h(n)
1
i\
Figure 103.
i<n)
1!
Downsampler
W
D ecimation by a factor D.
(10.2.2)
yim)
Fx
Sec. 10.2
Decimation by a Factor
785
w hich is th e n d o w n sa m p le d by th e fa c to r D to p ro d u c e y ( m) . T h u s
y(m) = v ( m D )
(10.2.3)
=
h ( k ) x { m D k)
(10.2.4)
( 10.2 .6 )
y( m) = v (mD) = v ( m D ) p ( m D ) v( mD)
(10.2.7)
an d
n
-6
-5 -4
-3
- 2 (-1 0
3 4
Pin)
-6
Figure 1 0 3
D = 3.
-3
786
Chap. 10
N o w th e z -tra n sfo rm o f th e o u tp u t se q u e n c e y ( m ) is
OO
y(z) =
m=oc
oo
J2
v( r nD) z ~m
(10.2.8)
ms=oc
00
]T
Y(z) =
v ( m ) z - m/D
m=oc
Y( z ) =
__
v
m=cc
u ~ l
ejlxmk/D | -m/D
<t=0
j D1
oc
j2nk/D 1/D^-m
*=0 m=-oo
(10.2.9)
"* -0
= 7J H D ( e - i2* t /Dz l/D) X ( e - W > z l / D)
*=0
w h ere th e last ste p fo llow s fro m th e fact th a t V (z) = H q { z ) X ( z ).
B y e v a lu a tin g y ( 2) in th e u n it circle, w e o b ta in th e s p e c tru m o f th e o u tp u t
signal y{m) . S ince th e ra te o f y ( m ) is Fy = 1/TV, th e fre q u e n c y v a ria b le , w hich w e
d e n o te as w v, is in ra d ia n s a n d is re la tiv e to th e sa m p lin g r a te F v,
ti)y =
= 2 n F T s.
(10.2.10)
Fy
S ince th e sa m p lin g ra te s a re r e la te d by th e ex p ressio n
Fy = ^
(10.2.11)
(10.2.12)
a>v = D ojx
(10.2.13)
a re re la te d by
Sec. 10.3
Interpolation by a Factor I
787
(10.2.15)
Y ,
T h is se q u e n c e has a z-
v^ z ~ m
m = oc
oc
(10.3.2)
= Xiz')
T h e c o rre sp o n d in g sp e c tru m of v ( m) is o b ta in e d by e v a lu a tin g (10.3.2) o n th e u nit
circle. T h u s
Vicoy) = X { w y I)
(10.3.3)
768
Chap. 10
l* K )l
I Via,)I
Sec. 10.3
Interpolation by a Factor /
789
l* K )l
C.
0.
(10.3.5)
y( 0) =
2~
.Jr_n
~
-
(10.3.7)
X {(I)vI)d(Dx
X ( w x) dwx
(10.3.8)
C
= -x (0 )
T h e re fo re , C = / is th e d esired n o rm a liz a tio n facto r.
F in ally , w e in d ic a te th a t th e o u tp u t se q u e n c e y ( m ) c a n b e ex p re sse d as a
c o n v o lu tio n o f th e s e q u e n c e v(n) w ith th e u n it sa m p le re sp o n s e h( n) o f th e low pass
790
Chap. 10
filter. T h u s
OC
y( m) =
Y 2 h( m k) v( k)
(10.3.9)
k = oc
OO
Y2 h{m -kl)x(k)
(10.3.10)
(10.4.1)
w h e re cut. = 2x F / F v = 2n F / I Fx = a)x/ / .
Rate = / F t
Figure 10.6
Rate = Fx = Fv
D
Sec. 10.4
x(n)
Rate = F,
Lowpass
filter
h(D
u(t)
Upsampler
T/
w([)
IID
Down sampler
4D
791
v(m)
Rate =
Rate = IFX = Fv
Figure 10.7
In th e tim e d o m a in , th e o u tp u t o f th e u p sa m p le r is th e se q u e n c e
( ///) ,
u (0 = ( j (
[ 0.
/ = 0, / , 2 / , . . .
,
o th erw ise
(10.4.2)
(10.4.3)
oc
h(l k l ) x ( k )
(10.4.4)
mD
k =
(10.4.5)
w h e re th e n o ta tio n [ r j d e n o te s th e la rg e st in te g e r c o n ta in e d in r. W ith th is ch an g e
in v ariab le, (10.4.4) b ec o m e s
y( m) =
oc
h ( m D ----V
- ^ -
V- ^ _
~ 1
/
(10.4.6)
W e n o te th a t
mD
mD
I -
m o d u lo I
mD
= ( mD) !
C o n s e q u e n tly , (10.4.6) can b e e x p re sse d as
00
y(m )-
n=- oc
L)
h(~n I + (m D ) i ) x (
j -
~ n)
VL
(10.4.7)
792
Chap. 10
It is a p p a r e n t fro m th is fo rm th a t th e o u tp u t y ( m ) is o b ta in e d by p assin g th e
in p u t se q u e n c e x ( n ) th ro u g h a tim e -v a ria n t filter w ith im p u lse re sp o n s e
g(n,m) h(n l + (mD)i)
oo< m ,n< oo
(10.4.8)
(10.4.9)
= g(n,m)
H e n c e g(n, m) is p e rio d ic in th e v a ria b le m w ith p e rio d I.
T h e fre q u e n c y -d o m a in re la tio n sh ip s can b e o b ta in e d by c o m b in in g th e resu lts
o f th e in te rp o la tio n a n d d e c im a tio n p ro cesses. T h u s th e s p e c tru m a t th e o u tp u t of
th e lin e a r filter w ith im p u lse re sp o n s e h(l) is
V (a) v) = H( ai v)X(a>vl )
I X ( w vI ) ,
0,
(10.4.10)
T h e sp e ctru m o f th e o u tp u t se q u e n c e y (m ), o b ta in e d by d e c im a tin g th e se q u e n c e
v(n) by a fa c to r o f D , is
a o .4 .1 1 )
o th e rw ise
Sec. 10.5
793
H{z ) = Y b ( k ] z ~k
t =o
(10-5 -1)
Figure 10.8
factor I/D.
794
Chap. 10
Sec. 10.5
(a)
Figure 10.9
Decimation by a factor D.
795
Chap. 10
Sec. 10.5
797
JT(n)
h(M - 2)
MM-
1)
k = 0 ,1 ,..., 7 1
(10.5.2)
n = 0,
~ 1
(b)
Figure 10.12
Sec. 10.5
799
<b)
(a)
(O
(d)
Figure 10.13 Duality relationships obtainedthroughtransposition.
Rate - Fr - IFX
Pi- i<")
Rate=Fx
Figure 10.14
Rate=F,
Interpolation byuse of polyphase filters.
pk((o) = e)wk/I
A tim e sh ift o f an in te g e r n u m b e r o f in p u t sa m p lin g in te rv a ls (e.g., ITX) can b e
g e n e ra te d by sh iftin g th e in p u t d a ta in th e d e la y line by I sa m p le s an d using th e
sa m e su b filters. B y c o m b in in g th e s e tw o m e th o d s, w e c a n g e n e ra te an o u tp u t th a t
is sh ifted fo rw a rd b y an a m o u n t (/ + i / I ) T x re la tiv e to th e p re v io u s o u tp u t.
B y tra n sp o s in g th e in te rp o la to r stru c tu re in Fig. 10.14, w e o b ta in a c o m m u
ta to r stru c tu re fo r a d e c im a to r b a s e d o n th e p a ra lle l b a n k o f p o ly p h a se filters, as
illu stra te d in Fig. 10.15. T h e u n it sa m p le re sp o n s e s o f th e p o ly p h ase filters a re
800
Figure 10.15
Chap. 10
n o w d efin ed as
Pk{n) = h( k + n D )
k = 0, 1____ O - l
(10.5.4)
n = 0 , 1 .........K - l
w h e re K = M / D is an in te g e r w h en M is se le c te d to be a m u ltip le o f D. T h e
c o m m u ta to r ro ta te s in a c o u n terclo ck w ise d ire c tio n sta rtin g w ith th e filter po(n) at
0.
A lth o u g h th e tw o c o m m u ta to r s tru c tu re s fo r th e in te r p o la to r a n d th e d e c i
m a to r ju st d escrib ed r o ta te in a c o u n te rc lo c k w ise d ire c tio n , it is also p o ssib le to
d e riv e an e q u iv a le n t p a ir o f c o m m u ta to r s tru c tu re s hav in g a clockw ise ro ta tio n .
In th is a lte rn a tiv e fo rm u la tio n , th e se ts o f p o ly p h a se filters a re d efin ed to h ave
im p u lse resp o n ses
P k ( n ) = h ( n l k)
k = 0 ,1 ,...,/- 1
(10.5.5)
Pk( n ) = h { n D - k )
* = 0 , 1 .........D - 1
(10.5.6)
Sec. 10.5
801
y(m ) = X I#
n0
- [_ y j l ) x
-n )
\L
(10.5.8)
Coefficient storage
Figure 10.16
cessing.
802
Chap. 10
1
, 1. T h u s th is c o m p u ta tio n p ro d u c e s / o u tp u ts. It is th e n re p e a te d fo r a
new se t o f D in p u t sam p les, a n d so on.
A n a lte rn a tiv e m e th o d fo r co m p u tin g th e o u tp u t o f th e sa m p le ra te c o n v e rte r,
sp ecified by (10.5.8), is b y m e a n s o f an F IR filter stru c tu re w ith p e rio d ic a lly varying
filter coefficients. Such a stru c tu re is illu stra te d in Fig. 10.17. T h e in p u t sam ples
x{n) a re p a sse d in to a sh ift re g iste r th a t o p e ra te s a t th e sa m p lin g ra te Fx an d is of
le n g th K = M / 1 , w h e re M is th e le n g th o f th e tim e -in v a ria n t F I R filter specified by
th e fre q u e n c y re sp o n s e g iv en by (10.4.1). E a c h sta g e o f th e re g is te r is c o n n e c te d to
a h o ld -a n d -sa m p le dev ice th a t se rv es to co u p le th e in p u t sa m p le ra te Fx to th e o u t
p u t sa m p le r a te Fy = (I / D ) F X. T h e sa m p le at th e in p u t to ea c h h o ld -a n d -sa m p le
d ev ice is h eld u n til th e n e x t in p u t sa m p le arriv es a n d th e n is d isc a rd e d . T h e o u tp u t
sa m p les o f th e h o ld -a n d -sa m p le d ev ice a re ta k e n a t tim es m D / l , m = 0, 1, 2 ........
W h e n b o th th e in p u t a n d o u tp u t sa m p lin g tim e s co in cid e (i.e.. w h en m D / I is an
in te g e r), th e in p u t to th e h o ld -a n d -sa m p le is ch an g e d first a n d th e n th e o u tp u t
sa m p le s th e n ew in p u t. T h e K o u tp u ts fro m th e K h o ld -a n d -s a m p le devices a re
m u ltip lie d by th e p e rio d ic a lly tim e-v a ry in g co effic ie n ts g( n, m - \ m / I \ l ) , fo r n = 0,
1 , . . . , K - 1, an d th e re su ltin g p ro d u c ts a re su m m e d to yield y(m ). T h e c o m p u
ta tio n s a t th e o u tp u t o f th e h o ld -a n d -sa m p le d ev ices are r e p e a te d a t th e o u tp u t
sa m p lin g ra te o f F v = ( I / D ) F X.
F inally, ra te co n v ersio n by a ra tio n a l fa c to r 1 / D can also be p e rfo rm e d by
use o f a p o ly p h ase filter h av in g 1 subfilters. If w e assu m e th a t th e m th sam p le
n(0.l).l = 0. I......./ - I
Figure 10.17
Sec. 10.5
803
y ( m ) is com p uted by taking the output o f the imth subfilter with input data x( n ) ,
x ( n - 1 ) , . . . , x ( n K + 1 ) , in the delay line, the n ext sam p le y ( m + 1) is taken from
the (i + i)st subfilter after shifting lm+j new sam ples in the d elay lin es w here i m+i =
(i + D )mod / and l m+1 is the in teger part o f (im + D ) / I . T h e in teger im+i should be
saved to b e used in determ ining the subfilter from w hich the n ext sam p le is taken.
L et us now dem onstrate the filter design procedure, first in the design o f a
d ecim ator, secon d in th e design o f an interpolator, and finally, in th e design o f a
rational sam ple-rate converter.
Example 10.5.1
Design a decim ator that downsamples an input signal x(n) by a factor D = 2. Use
the Rem ez algorithm to determ ine the coefficients of the F IR filter that has a 0.1-dB
ripple in the passband and is down by at least 30 dB in the stopband. Also determ ine
the polyphase filter structure in a decim ator realization that employs polyphase filters.
k = 0,1;
n = 0 ,1 , ,.. ,1 4
N ote that po(n) = h(2n) and p\{tt) = h(2n + 1). Hence one filter consists of the evennum bered samples o f h(n) and the other filter consists of the odd-num bered samples
of h(n).
Example 10.5.2
Design an interpolator that increases the input sampling rate by a factor of I = 5. Use
the R em ez algorithm to determ ine the coefficients of the F IR filter that has 0.1-dB
ripple in the passband and is down by at least 30 dB in the stopband. Also, determ ine
the polyphase filter structure in an interpolator realization based on polyphase filters.
* = 0 ,1 ,2 ,3 ,4
Example 10.53
Design a sam ple-rate converter that increases the sampling rate by a factor 2.5. Use
the Rem ez algorithm to determ ine the coefficients of the F IR filter that has 0.1-dB
ripple in the passband and is down by at least 30 dB in the stopband. Specify the
sets of time-varying coefficients g( n, m) used in the realization of the sampling-rate
converter according to the structure in Fig. 10.17.
Solution The F IR filter that m eets the specifications of this problem is exactly the
same as the filter designed in Example 10.5.2. Its bandwidth is tt/5.
804
Chap. 10
IMPULSE RESPONSE
(FIR)
H { 1)
H ( 2)
H ( 3)
H( 4)
H(
H(
5)
6)
H ( 7)
H(
H(
8)
9)
H (10)
H (11)
H (12 )
H(13)
H (14)
H (15)
=30
IMPULSE RESPONSE
0 .6 0 2 5 6 1 6 5 E - 0 2 = H ( 30)
= -0 .1 2 8 1 7 1 4 3 E - 0 1 = H ( 29)
-0..2 8 5 8 2 0 6 6 E - 0 2 = HI 28)
=
0..1 3 6 6 3 3 4 6 E - 0 1
H ( 27)
= -0,,4 6 6 8 8 9 6 1 E - 0 2 = H ( 26)
= -0,.1 9 7 0 4 4 1 5 E - 0 1 = H ( 25)
=
0,.1 5 9 8 4 6 2 3 E - 0 1 = H ( 24)
=
=
0 .21384886E-01
= -0..3 4 9 7 9 4 4 0 E - 0 1
= -0 . 1 5 6 1 5 5 2 2 E - 0 1
=
0..6 4 0 0 6 1 1 3 E - 0 1
= - 0 .7 3 4 5 1 7 7 2 E - 0 2
= -0. 1 1 8 7 3 1 8 5 E + 0 0
=
0. 9 8 0 4 7 8 4 5 E - 0 1
0. 4 9 2 2 5 0 6 8 E + 0 0
=
BAND
= H (
= H(
= H (
= H(
= H (
H(
= H{
= H(
23)
22)
21)
20)
19)
18)
17)
16)
BAND 2
0.0000000
1.0000000
2.0000000
0.. 3 1 0 0 0 0 0
0.. 5 0 0 0 0 0 0
0.. 0 0 0 0 0 0 0
1.. 0 0 0 0 0 0 0
0.0107151
0.0925753
0.. 0 2 1 4 3 0 2
33. 3 7 9 4 7 4 6
0.2500000
0.1520833
0.3100000
0.3225000
0.4474999
0.3495833
0.3808333
0.4141666
0.4829165
mDA
I
By substituting 1 = 5 and D =
= 2, we obtain
g(n,
x,m)
m) = h {^5
5n + 2 m - 5
2m \
y\)
Sec. 10.5
805
*(2)
*(7)
*(12)
*(17)
*(22)
*(27)
h{ 4)
*( 9)
*(14)
*(19)
*(24)
*(29)
*(1)
*( 6)
*(11)
*(16)
*(21)
*(26)
*(3)}
A(8)J
*(13)}
*(18)}
*(23)}
*(28)}
806
Chap. 10
TABLE 10.2
F I N I T E I M P U L S E R E S P O N S E (FIR)
LINEAR-PHASE DIGITAL FILTER DESIGN
REMEZ EXCHANGE ALGORITHM
FILTER LENGTH = 3 0
H ( 1)
H ( 2)
H< 3)
H ( 4)
H ( 5)
H( 6)
H ( 7)
H< 8)
H( 9)
H (10)
H {11)
H (12)
H (13)
H (14)
H(15)
IMPULSE RESPONSE
0 .6 3 9 8 7 2 1 6 E - 0 2 = H (
=
= -0..1 4 7 6 1 3 0 4 E - 0 1 = H (
= -0..1 0 8 8 6 5 7 7 E - 0 2 = H (
= -0..2 8 7 1 4 9 5 7 E - 0 2 = H {
0 .1 0 4 8 6 4 3 0 E - 0 1 = H<
0 .2 1 4 7 7 1 4 2 E - 0 1 = H (
=
0,.1 9 4 7 9 3 6 2 E - 0 1
=
H(
= -0,.3 1 0 6 7 4 3 1 E - 0 3
= - 0 ,.3 0 0 5 3 0 3 3 E - 0 1
= - 0 .4 9 8 7 7 0 2 9 E - 0 1
= - 0 .3 7 3 7 1 2 8 5 E - 0 1
=
0. 1 8 4 8 2 8 9 6 E - 0 1
=
0. 1 0 7 4 7 1 4 1 E + 0 0
0..1 9 9 5 1 0 9 8 E + 0 0
0 .2 5 7 9 4 8 2 8 E + 0 0
=
:I N D B
BAND 1
0.0000000
0.1000000
1.0000000
3.0000000
0.0097524
0.0842978
= H(
= H (
= H (
= H {
= H(
= H {
= H (
30!
29)
28)
27)
26)
25)
24)
23)
22)
21)
20)
19)
18)
17)
= H ( 16)
BAND 2
0 . 1600000
0. 5 0 0 0 0 0 0
0., 0 0 0 0 0 0 0
1 .0000000
0,.0 2 9 2 5 7 2
30. 6 7 5 3 3 4 9
0.0333333
0.1745833
0.0645834
0.2016666
0.0895833
0.2370833
0.1000000
0.2704166
0.3058332
0 .4829164
0.3412498
0.3766665
0.4120831
0.4474997
that we take every other output from the polyphase filters. Thus the first output v(0)
is taken from pQ(n), the second output y (l) is taken from P2(n), the third from p*(n),
the fourth from pi(n), the fifth from p-i(n). and so on.
Sec. 10.6
807
'-fl*
( 10 . 6 . 1)
( 10.6 .2)
D = \\D .
Fj-i
D,
i = 1 ,2 ........ J
(10.6.3)
w h ere th e in p u t ra te fo r th e se q u e n c e {*()] is F0 = Fx .
T o e n s u re th a t n o aliasing o ccu rs in th e o v erall d e c im a tio n p ro cess, w e can
d esig n each filter stag e to avoid aliasin g w ithin th e fre q u e n c y b a n d o f in te re st. T o
*(n)
F,
Stage 1
Figure 10.20
Stage 1
Stage 2
h h Fi
Stage L
Stage 2
Fx
Staged
D\Dt
Figure 10.21
808
Chap. 10
^^
F ,
S to p b a n d : Fj - Fx < F < ~ F o r ex am p le, in th e first filter sta g e we h av e F\ = Fx / D \ . a n d th e filter is
d esig n ed to h av e th e fo llow ing fre q u e n c y bands:
P assb an d : 0 < F < F ^
T ra n s itio n b an d : F ^ < F < Fy - Fsz
(10 6 6)
fT
S to p b a n d : F\ - Fx < F < - y
A f te r d e c im atio n b y D\ , th e re is aliasing from th e signal c o m p o n e n ts th a t fall in
th e filter tra n sitio n b a n d , b u t th e aliasin g o ccu rs at fre q u e n c ie s ab o v e Fsc. T h u s
th e re is n o aliasin g in the fre q u e n c y b a n d 0 < F < Fx . B y d esig n in g th e filters in
th e su b s e q u e n t sta g es to satisfy th e sp ecificatio n s given in (10.6.5). w e e n su re th at
n o aliasin g o ccu rs in th e p rim a ry fre q u e n c y b a n d 0 < F < Fsc.
Example 10.6.1
Consider an audio-band signal with a nominal bandwidth of 4 kH z that has been
sampled at a rate of 8 kHz. Suppose that we wish to isolate the frequency components
below 80 Hz with a filter that has a passband 0 < F < 75 and a transition band
15 < F < 80. H ence F ^ = 75 Hz and FK = 80. The signal in the band 0 < F < 80
may be decim ated by the factor D = F J 2 F X = 50. We also specify that the filter
have a passband ripple 8, = 102 and a stopband ripple of <52 = 10-4.
The length o f the linear phase F IR filter required to satisfy these specifications
can be estim ated from one of the well known formulas given in the literature. R e
call that a particularly simple formula for approxim ating the length M , attributed to
Kaiser, is
^ = - ' 0 lo ^ - 1 3
14.6 A /
+ 1
(1 M 7 )
where A/ is the norm alized (by the sampling rate) width of the transition region [i.e.,
A f = (Fx Fpc)/Fs]. A m ore accurate formula proposed by H errm ann et al. (1973)
is
^
l M
A/
+ 1
(10.6.8)
Sec. 10.6
809
(10.6.9)
(10.6.10)
Now a single FIR filter followed by a decim ator would require (using the Kaiser
form ula) a filter of (approximate) length
14.6(5/8000) 1 3 + ^ ^ 2
As an alternative, let us consider a two-stage decimation process with D\ = 25 and
Di = 2. In the first stage we have the specifications F\ = 320 Hz and
Passband: 0 < F < 75
Transition band: 15 < F < 240
J61
A^ 8000
fin = y
^21 = 2
Note that we have reduced the passband ripple <5[ by a factor of 2, so that the total
passband ripple in the cascade of the two filters does not exceed Si. On the other
hand, the stopband ripple is maintained at S2 in both stages. Now the Kaiser formula
yields an estim ate of A/, as
Ml =
For the second stage, we have F2 = F\fL 160 and the specifications
Passband: 0 < F < 75
Transition band: 75 < F < 80
A f = 320
<5i2 ~
&n = h
M2 ~ 220
Therefore, the total length of the two F IR filters is approxim ately M\ + M2 = 387.
This represents a reduction in the filter length by a factor of more than 13.
The reader is encouraged to repeat the com putation above with D\ = 10 and
>2 = 5.
It is apparent from the com p utations in E xam p le 10.6.1 that the reduction
in th e filter length results from increasing the factor A f , w hich appears in the
d en om in ator in (10.6.7) and (10.6.8). By decim ating in m ultiple stages, w e are
810
Chap. 10
Sec. 10.7
811
|W)|
Bandpass signal
(a)
Figure 10.22
(10.7.2)
u s (t) ~ j4 (O sin 0 (O
(10.7.3)
(10.7.4)
(10.7.5)
812
Chap. 10
(10.7.6)
Figure 10.23
Sec. 10.7
813
*<>-(
<m7-7)
h
0,
M <a >p / D
o th e rw ise
(10.7.8)
"'<->-{
(10-7-9>
[ 0,
o th erw ise
(10.7.10)
Figure 10.24
814
fre q u e n c y
Chap. 10
(10.7.11)
(m + i) n
mTi
Figure 10.25
mn
{m + 1)n
Sec. 10.8
815
m odd
(>
m even
(b>
Figure 10.26
Case 1. W e n eed to perform rate con version by the rational num ber I / D ,
w h ere / is a large in teger (e.g., l / D = 1023/511). A lth ou gh w e can ach ieve
exact rate con version by this num ber, w e w ould n eed a p olyp hase filter with 1023
subfilters. Such an exact im plem en tation is ob viou sly inefficient in m em ory usage
b ecau se w e n eed to store a large num ber o f filter coefficients.
Case 2. In so m e applications, th e exact con version rate is n ot know n w hen
w e design the rate converter, or th e rate is con tinu ou sly changing during the co n
version p rocess. For exam p le, w e m ay en cou n ter the situation w here th e input and
ou tp u t sam p les are con trolled by tw o in d ep en dent clocks. E ven though it is still
p ossib le to d efine a n om in al con version rate that is a rational num ber, the actual
816
Chap. 10
w h ere k a n d I a re p o sitiv e in te g e rs a n d 0 is a n u m b e r in th e ra n g e
0 < &< y
C o n se q u e n tly , 1j r is b o u n d e d fro m ab o v e an d b e lo w as
k
<
<
jfc + 1
-------------
I
r
I
I c o rre sp o n d s to th e in te rp o la tio n fa c to r, w hich w ill b e d e te r m in e d to satisfy th e
specificatio n on th e a m o u n t o f to le ra b le d isto rtio n in tro d u c e d b y ra te c o n v ersio n .
/ is also eq u a l to th e n u m b e r o f p o ly p h a se filters.
F o r e x am p le, su p p o se th a t r = 2.2 a n d th a t w e h a v e d e te r m in e d , as we
will d e m o n s tra te , th a t 1 = 6 p o ly p h a se filters a re r e q u ire d to m e e t th e d isto rtio n
specificatio n . T h e n
k ^ 2
1
3
k + 1
/
6
r
6
I
so th a t k = 2. T h e tim e sp a cin g b e tw e e n sa m p le s o f th e in te r p o la te d se q u e n c e is
Tx / I . H o w e v e r, th e d e s ire d c o n v ersio n ra te r = 2.2 fo r / = 6 c o rre sp o n d s to a
d e c im a tio n fa c to r o f 2.727, w h ich falls b e tw e e n k = 2 a n d k = 3. In th e first-o rd e r
a p p ro x im a tio n , w e ach iev e th e d e s ire d d e c im a tio n r a te b y se le c tin g th e o u tp u t
Sec. 10.8
Figure 10.27
817
818
Chap. 10
Ssi
r \X{(o)\2d ( o =
5
2?r ; _ tUj
(10.8.1)
1 _ e - j w,)
( 10.8 .2 )
' \ X ( c o ) e ^ T ~ X(co)eJU,lT~ ^ \ 2d w ^
[ ' \X(<o)jeJ^a>tm\2dco
J
ojx
2-7T J
(u,
- ^ L a2 {t) 2dw=^
( 1 0 '8 '3 )
P
pe
M l2
> ~
(4
(10.8.4)
It can be seen fro m (10.8.4) th a t th e sig n a l-to -d isto rtio n r a tio is p ro p o rtio n a l
to th e sq u a re o f th e n u m b e r o f su b filters.
Exam ple 10.8.1
Suppose that the input signal has a flat spectrum betw een - 0 .8 jt and 0.8 tt. Determ ine
the num ber of subfilters to achieve a signal-to-distortion ratio of 50 dB.
Sec. 10.8
819
Solution T o achieve an SDrR > 105, we set S D iR l = 12/2/wJ equal to 105. Thus
we find that
fw
1 s w ,,/ ~ ~ ~ 230 subfilters
y(+1M i
a m=Ilm
Figure 10.28
820
Chap. 10
(10.8.5)
w h e re a m = l t m. N o te th a t 0 < a, < 1 .
T h e im p le m e n ta tio n o f lin e a r in te rp o la tio n is sim ilar to th a t fo r th e firsto r d e r a p p ro x im a tio n . N o rm a lly , b o th y i(m ) a n d yz i m) a re c o m p u te d using th e /th
an d (/ + l) th su b filters, re sp e c tiv e ly , w ith th e sa m e se t o f in p u t d a ta sa m p le s in
th e d elay line. T h e o n ly e x c e p tio n is in th e b o u n d a ry case, w h e re / = / - 1. In
th is case w e u se th e ( / l ) t h su b filte r to c o m p u te >'i(/w), b u t th e se co n d sam ple
yi ( m) is c o m p u te d u sin g th e z e ro th su b filter a fte r new in p u t d a ta a re sh ifted into
th e d e la y line.
T o an aly ze th e e r r o r in tro d u c e d by th e se c o n d -o rd e r a p p ro x im a tio n , we first
w rite th e fre q u e n c y re sp o n s e s o f th e d esired filter an d th e tw o su b filters u se d to
c o m p u te vi(m ) a n d V2(w ), as e-/Wr,
ancj ja>u-t+'\/i)^ resp ec tiv ely . B e cau se
lin e a r in te rp o la tio n is a iin e a r o p e ra tio n , w e can also use lin e a r in te rp o la tio n to
co m p u te th e fre q u e n c y re sp o n se o f th e filter th a t g e n e ra te s y(w?) as
\ - (i
U sin g (1 - a m) am <
1
Pe = = - /
(10.8.7)
w e o b ta in a n u p p e r b o u n d fo r th e to ta l e r r o r p o w e r as
\X(u>)[ejwT - (1 -
- a me ^ - ' ^ n ]\2dco
(10.8.8)
Sec. 10.9
821
P
Pe
80/ 4
>
arx
(10.8.9)
From this exam ple we see that the required num ber o f subfilters for the
secon d-ord er approxim ation is reduced by a factor o f ab ou t 15 com pared to the
first-order approxim ation. H ow ever, w e now n eed to co m p u te tw o interpolated
sam p les in this case, instead o f o n e for the first-order approxim ation. H en ce w e
have d ou b led the com putational com plexity.
L inear interpolation is the sim plest case o f the class o f approxim ation m eth
od s based o n Lagrange p olynom ials. It is also p ossib le to use higher-order L a
grange polyn om ial approxim ations (interp olation) to further reduce the num ber
o f subfilters required to m eet specifications. H ow ever, th e secon d-ord er approx
im ation seem s sufficient for m ost practical applications. T h e in terested reader is
referred to the paper by R am stad (1984) for higlier-order L agrange interpolation
m ethods.
822
x(n)
Ft
71
If
Figure 10.29
Lowpass
filler
Delay by
k samples
IF,
Chap. 10
1
j
kio
(10.9.1)
Figure 10.30
Fig. 10.29.
Sec. 10.9
823
Figure 1031
824
Chap. 10
8000 Hz
0 < F < 75
75 < F < 80
80 < F < 4000
5] = 10-2
&2 = 10~4
Solution If this filter were designed as a single-rate linear-phase F IR filter, the length
of the filter required to m eet the specifications is (from Kaisers form ula)
M
5152
Now, suppose that we employ a multirate im plem entation of the lowpass filter
based on a decimation and interpolation factor of D = / = 100. A single-stage
implem entation of the decim ator-interpolator requires an FIR filter of length
^ ^ - O l o g W ;/ 2 ) - 1 3 + l a 5 4 a )
14.6 A /
1 4 .6 V ---------+
-101oglo( W 4 ) - 1 3 . , _
---------- u Z T f ----------+ 1 ^ 233
Thus we obtain a reduction in the overall filter length of 2(5480)/2(177+233) ~ 13.36In addition, we obtain further reduction in the multiplication rate by using polyphase
Sec. 10.9
825
filters. For the first stage of decimation, the reduction in multiplication rate is 50, while
for the second stage the reduction in multiplication rate is 100. F urther reductions
can be obtained by increasing the num ber of stages of decim ation and interpolation.
826
Chap. 10
k = 0 , l ____ N - l
(10.9.3)
X k(m)
k = 0, 1, . . . , N - 1
(10.9.4)
n
m = 0 , 1,...
ej2"klN
i n
= !> ( *
wn
Y , y^ m ^8o(n - m l )
_
- m l)
Jlnnk/N
1 Y d m ) e ^ nklN
1* I__ n
(10.9.5)
Sec. 10.9
627
e-jainn
Analysis
(a)
e)<w
Synthesis
(b)
Figure 1033
w* =
N
k = 0,1,..., N - 1
(10.9.6)
828
Chap. 10
p-jtiitfnD
Analysis
(a)
ejm<jnD
Synthesis
(b)
Figure 10.34
X k( m) =
j c ( n ) * o ( m D - n ) e j2nk(mD~n)/N
"-jlnmkD/N
(10.9.7)
Sec. 10.9
829
(10.9.8)
(10.9.9)
k=0
w h e re I D.
In th e im p le m e n ta tio n of d igital filters b a n k s, c o m p u ta tio n a l efficiency can be
ac h iev ed by u se o f p o ly p h a se filters fo r d e cim atio n a n d in te rp o la tio n . O f p a rtic u la r
in te re st is th e case w h e re th e d e c im a tio n fa c to r D is se le c te d to be e q u a l to th e
n u m b e r N o f fre q u e n c y b an d s. W h en D = N, w e say th a t th e filter b a n k is critically
sampled.
F o r th e an aly sis filter b an k , let us define a se t o f N = D p o ly p h a se filters
w ith im p u lse resp o n ses
p t ( n ) = ho ( n N k)
k = 0. 1.........jV 1
(10.9.10)
a n d th e c o rre sp o n d in g se t o f d e c im a te d in p u t se q u e n c e s
x k (n) = x ( n N + k)
* = 0 . 1 .........N - 1
(10.9.11)
k - 0 , 1 ____ D - 1
(10.9.12)
w h e re N = D. N o te th a t th e in n e r su m m a tio n r e p re s e n ts th e co n v o lu tio n o f
i p n(l)} w ith {*(/)). T h e o u te r su m m atio n re p re s e n ts th e W -point D F T o f th e
filter o u tp u ts. T h e filter s tru c tu re c o rre sp o n d in g to th is c o m p u ta tio n is illu strated
in Fig. 10.35. E a c h sw eep o f th e c o m m u ta to r re su lts in N o u tp u ts, d e n o te d as
( r ( m ), n = 0, 1.........A ' - l )
from th e N p o ly p h ase filters. T h e / V -p o in t D F T o f
th is se q u e n c e yield s th e sp e c tra l sa m p le s (Jft(m )]. F o r la rg e valu es o f N , th e F F T
alg o rith m p ro v id e s an efficient m e a n s fo r co m p u tin g th e D F T .
N o w su p p o se th a t th e sp e ctral sa m p le s { ^ ( m ) } a re m o d ified in so m e m a n n e r,
p re sc rib e d by th e ap p lic a tio n , to p ro d u c e |y t.(m)}. A filter b a n k sy n th e sis filter
b a s e d o n a p o ly p h a se filter s tru c tu re can b e re a liz e d in a sim ilar m a n n e r. F irst,
w e d efin e th e im p u lse re sp o n se o f th e N {D = I N ) p o ly p h a se filters fo r th e
in te rp o la tio n filter as
qk(n) = go( nN + k)
k = 0 ,1 ........N - 1
(10.9.13)
830
Figure 1035
Chap. 10
* = 0 , 1 .........A ' - l
(10.9.14)
^ < ? /(
m )
-]T n(m )e
j2Kkl/H
i =0,1...., N - 1
(10.9.15)
qt(n m) yi {m)
I 0, 1, . .. , N 1
(10.9.16)
Sec. 10.9
Figure 10,36
831
832
Chap. 10
(a)
j 1
0
JT
JT
4
7T
[
JT
2
(b)
Figure 10.37
Sec. 10.9
833
(a)
QMF
(b)
Figure 10.38
834
Chap. 10
Outpa
Figure 10J9
Analysis
section
Figure 10.40
Synthesis
section
Two-channel QM F bank.
X a0(co) = -
(10.9.17)
X aX(co) = -
If Xsq(m) and Xlt(<u) represent the two inputs to the synthesis section, the output
Sec. 10.9
835
is sim ply
X(co) = Xfo(2(o)Go(co) + X s\(2(o)G\(co)
(10.9.18)
(10.9.19)
7t)Gx(co) =
(10.9.20)
tt)
G x(a>) = - H a( o > - n )
(10.9.21)
(10.9.24)
G x (co) = - 2 H(co - n )
(10.9.25)
836
Chap. 10
tt) ] X ( co)
(10.9.27)
fo r all co
(10.9.28)
(10.9.29)
(10.9.30)
=
\ H ( w ) \ 2e~J(N- ])
an d
H 2( a>- tt) = H ? ( o > - j r ) e - jia,- ,niN- ' )
(10.9.31)
= ( - l ) N~ l \H(co - jz)\2e - JwiN- l)
T h e re fo re , th e o v erall tra n s f e r fu n ctio n o f th e tw o -ch an n el Q M F w hich em p lo y s
lin e a r-p h a se F IR filters is
X(co)
= [\H(a>)\2 - ( - l f - ]\ H( c o - 7 T ) \ 2] e - JU,'N- ])
(10.9.32)
(10.9.33)
(10.9.34)
w h ich av o id s th e p ro b le m o f a z e ro at a) = n f l . F o r N ev en , th e id e a l tw o -ch an n el
Q M F sh o u ld satisfy th e c o n d itio n
A(<d) = \ H( w) \ 2 -I-1H(C0 - n ) I2 = 1
for all to
(10.9.35)
Sec. 10.9
837
co n stan t,
0,
n = 0
n 7^0
(10.9.37)
H e n c e all th e e v e n -n u m b e re d sa m p le s are z e ro e x c e p t a t n = 0. T h e z e ro -p h a se
r e q u ire m e n t im p lies th a t b( n) = b( n). T h e fre q u e n c y re sp o n s e o f such a filter is
K
(10.9.38)
w h ere K is o d d . F u rth e rm o r e , B(co) satisfies th e c o n d itio n B( w) + B(7i ~ co) is e q u a l
to a c o n s ta n t fo r all freq u e n cies. T h e typical fre q u e n c y re sp o n s e c h a ra c te ristic o f a
h a lf-b a n d filter is sh o w n in Fig. 10.41. W e n o te th a t th e filter re sp o n s e is sym m etric
w ith re sp e c t to n j 2, th e b a n d e d g es freq u e n cies cup a n d a)s a re sy m m etric a b o u t
838
Chap. 10
w = n / 2 , a n d th e p e a k p a s s b a n d a n d s to p b a n d e r r o r s a r e e q u a l. W e a ls o n o te th a t
th e f ilte r c a n b e m a d e c a u s a l b y in tr o d u c in g a d e la y o f K s a m p le s .
N o w , s u p p o s e th a t w e d e s ig n an F I R h a lf- b a n d filte r o f le n g th 2jV 1, w h e r e
N is e v e n , w ith f r e q u e n c y r e s p o n s e a s s h o w n in F ig . 1 0 .4 2 ( a ) .
F ro m
B(a>) w e
B+(w) = B(co) +
as s h o w n in F ig . 1 0 .4 2 ( b ) .
( 1 0 .9 .3 9 )
N o t e th a t B +(a>) is n o n n e g a tiv e a n d h e n c e it h a s th e
s p e c tr a l fa c to r iz a tio n
fl+ ( z ) = H { z ) H { z - \ - (N~ h
( 1 0 .9 .4 0 )
(1 0 .9 .4 1 )
o r , e q u iv a le n tly ,
w h e r e H (to) is th e f r e q u e n c y r e s p o n s e o f a n F I R
f ilt e r o f le n g th N
w ith re a l
c o e f f ic ie n ts . D u e t o th e s y m m e tr y o f B+(co ) w ith r e s p e c t to co = n / 2 , w e a ls o h a v e
( 1 0 .9 .4 2 )
o r , e q u iv a le n tly ,
B+{a>)
-I- ( - D ^ f l + O w -
n) = a
( 1 0 .9 .4 3 )
w h e r e a is a c o n s t a n t . T h u s , b y s u b s t itu tin g ( 1 0 .9 .4 0 ) in to ( 1 0 .9 .4 2 ) , w e o b ta in
H(z)H(z~l) + H ( - z ) H ( ~ z ~ l ) = a
( 1 0 .9 .4 4 )
H \ ( z) a n d G i ( z ) =
Sec. 10.9
839
Bffft)
amplitude
response of
G(z)
-S
BJta)
amplitude
response of
* (*)
840
Chap. 10
c h o o s in g H \ ( z ) , G o ( z ) , a n d G \ ( z ) as
H o (z) = H { z)
H \{ z ) = - z - iN - h H 0( - Z ~ ')
( 1 0 .9 .4 5 )
G 0{z) = z - (N- u H q {z - 1)
G ,( z ) = z ^ - ^ H ^ r 1 ) = - H o ( - z )
T h u s a lia s in g d is to r tio n is e lim in a te d a n d s in c e X { a > ) /X { a ) ) is a c o n s t a n t , t h e Q M F
p e r f o r m s p e r f e c t r e c o n s tr u c tio n s o t h a t x ( n ) = a x ( n N + 1 ). H o w e v e r , w e n o te
th a t H ( z ) is n o t a l i n e a r -p h a s e f ilte r .
T h e F I R filte r s H o (z), H ] ( z ), G o (z ), a n d G i ( z ) in th e tw o - c h a n n e l Q M F b a n k
a r e e f fic ie n tly r e a liz e d as p o ly p h a s e filte r s . S in c e I = D = 2 , tw o p o ly p h a s e filte r s
a r e im p le m e n te d f o r e a c h d e c im a t o r a n d tw o f o r e a c h in te r p o la to r . H o w e v e r , if
w e e m p lo y lin e a r -p h a s e F I R filte r s , th e s y m m e tr y p r o p e r tie s o f th e a n a ly s is filte r s
a n d s y n th e s is f ilte r s a llo w u s to s im p lify th e s tr u c tu r e a n d r e d u c e th e n u m b e r o f
p o ly p h a s e filte r s in th e a n a ly sts s e c tio n t o tw o filte r s a n d t o a n o t h e r tw o f ilte r s in
th e s y n th e s is s e c tio n .
T o d e m o n s tr a t e th is c o n s t r u c tio n , le t u s a s s u m e th a t th e filte r s a r e lin e a r p h a s e F I R filte r s o f le n g th N
( N e v e n ) , w h ich h a v e im p u ls e r e s p o n s e s g iv e n by
( 1 0 .9 .2 3 ) . T h e n th e o u tp u ts o f th e a n a ly s is f ilte r p a ir , a f t e r d e c im a tio n b y a fa c to r
o f 2 , ca n b e ex p ressed as
X a k (m ) =
Y ^ ( l ) knh ( n ) x ( 2 m - n )
* = 0 ,1
f l = OC
1
OO
=
i'= 0
( - 1 )k<l2J+l)h { 2 l + l) x ( 2 m - 2 1 - i)
l=oc
N \
N -1
J2
h ( 2 i) x ( 2 m - H ) + ( - 1 ) *
1=0
Y i^ (2 !
+ l) x ( 2 m - 2 1 - 1 )
( 1 0 .9 .4 6 )
1 =0
N o w le t u s d e fin e th e im p u ls e r e s p o n s e o f tw o p o ly p h a s e filte r s o f le n g th N ( 2 as
P i i m ) = h {2m + i)
i = 0 ,1
( 1 0 .9 .4 7 )
T h e n ( 1 0 .9 .4 6 ) c a n b e e x p r e s s e d as
N/2-
X ak{m) =
Y2
P o (m )x (2 (m - /))
1=0
( 1 0 .9 .4 8 )
AT/2-1
P \{ m ) x ( 2 m 2 1 1 )
+ ( 1 )*
Jt = 0 , 1
1=0
T h is e x p r e s s io n c o r r e s p o n d s t o th e p o ly p h a s e f ilt e r s tr u c tu r e f o r th e a n a ly s is
s e c t i o n sh o w n in F ig . 1 0 .4 3 . N o t e t h a t t h e c o m m u t a t o r r o t a t e s c o u n te r c lo c k w is e
Sec. 10.9
841
A nalysis____________
section
F ig u re 10.43
11
___________ Synthesis
section
10.9.7 Transmultiplexers
A n o t h e r a p p lic a t io n o f m u ltir a te s ig n a l p r o c e s s in g is in t h e d e s ig n a n d im p le m e n
t a tio n o f d ig ita l tr a n s m u lt ip le x e r s w h ic h a r e d e v ic e s f o r c o n v e r tin g b e tw e e n tim e d iv is io n -m u ltip le x e d
( T D M ) s ig n a ls a n d f r e q u e n c y - d iv is io n - m u ltip le x e d
(F D M )
s ig n a ls .
In a tr a n s m u lt ip le x e r fo r T D M - t o - F D M c o n v e r s io n , t h e in p u t s ig n a l {jr(/?)}
is a tim e -d iv is io n m u ltip le x e d s ig n a l c o n s is tin g o f L s ig n a ls , w h ich a r e s e p a r a te d
b y a c o m m u t a t o r s w itc h . E a c h o f th e s e L s ig n a ls a r e th e n m o d u la te d o n d if f e r e n t
c a r r i e r f r e q u e n c ie s t o o b t a in an F D M s ig n a l f o r tr a n s m is s io n . In a t r a n s m u lt ip le x e r
fo r F D M - t o - T D M
c o n v e r s io n , th e c o m p o s ite s ig n a l is s e p a r a te d b y filte r in g in to
t h e L s ig n a l c o m p o n e n ts w h ic h a r e th e n tim e -d iv is io n m u ltip le x e d .
I n te le p h o n y , s in g le - s id e b a n d tr a n s m is s io n is u s e d w ith c h a n n e ls s p a c e d a t
a n o m in a l 4 - k H z b a n d w id th .
T w e lv e c h a n n e ls a r e u s u a lly s ta c k e d in f r e q u e n c y
t o f o r m a b a s ic g ro u p c h a n n e l, w ith a b a n d w id th o f 4 8 k H z .
L a r g e r b a n d w id th
F D M s ig n a ls a r e f o r m e d b y f r e q u e n c y tr a n s la tio n o f m u ltip le g ro u p s in to a d ja c e n t
f r e q u e n c y b a n d s . W e s h a ll c o n fin e o u r d is c u s s io n to d ig ita l t r a n s m u lt ip le x e r s f o r
1 2 - c h a n n e l F D M a n d T D M s ig n a ls .
L e t us firs t c o n s id e r F D M - t o - T D M c o n v e r s io n .
T h e a n a lo g F D M s ig n a l is
p a s s e d th r o u g h an A / D c o n v e r t e r a s sh o w n in F ig . 1 0 .4 4 a . T h e d ig ita l s ig n a l is th e n
842
Chap. 10
TD M
(a)
(b)
Figure 10.44 Block diagram of FDM-to-TDM transmultiplexer.
d e m o d u la te d t o b a s e b a n d b y m e a n s o f s in g le -s id e b a n d d e m o d u la to r s . T h e o u tp u t
o f e a c h d e m o d u la to r is d e c im a te d a n d fe d to c o m m u t a t o r o f t h e T D M s y s te m .
T o b e s p e c ific , le t us a s s u m e t h a t th e 1 2 -c h a n n e l F D M s ig n a l is s a m p le d a t
th e N y q u is t r a t e o f 9 6 k H z a n d p a s s e d th r o u g h a f ilte r - b a n k d e m o d u la to r .
The
b a s ic b u ild in g b lo c k in th e F D M d e m o d u la to r c o n s is ts o f a f r e q u e n c y c o n v e r te r , a
lo w p a s s filte r , a n d a d e c im a to r , a s illu s tr a te d in F ig . 1 0 .4 4 b . F r e q u e n c y c o n v e r s io n
ca n b e e ff ic ie n tly im p le m e n te d b y th e D F T f ilte r b a n k d e s c r ib e d p r e v io u s ly . T h e
lo w p a s s filte r a n d d e c im a to r a r e e ff ic ie n tly i m p le m e n te d b y u s e o f th e p o ly p h a s e
filte r s tr u c tu r e . T h u s th e b a s ic s tr u c tu r e f o r th e F D M - t o - T D M c o n v e r t e r h a s th e
f o r m o f a D F T f ilte r b a n k a n a ly z e r . S in c e th e s ig n a l in e a c h c h a n n e l o c c u p ie s a
4 - k H z b a n d w id th , its N y q u is t r a t e is 8 k H z , a n d h e n c e th e p o ly p h a s e f ilte r o u t
p u t c a n b e d e c im a te d b y a f a c t o r o f 1 2 . C o n s e q u e n tly , th e T D M c o m m u t a t o r is
o p e r a tin g a t a r a t e o f 1 2 x 8 k H z o r 9 6 k H z .
In T D M - t o - F D M c o n v e r s io n , th e 1 2 -c h a n n e l T D M s ig n a l is d e m u ltip le x e d
in to th e 1 2 in d iv id u a l s ig n a ls , w h e r e e a c h s ig n a l h a s a r a t e o f 8 k H z . T h e sig n a l
Sec. 10.9
843
844
Chap. 10
Serial
output
D igital
control
select
Sclk
Serial
input
845
846
Chap. 10
b y a n a r b itr a r y f a c t o r is t r e a t e d in a p a p e r b y R a m s t a d ( 1 9 8 4 ) . A th o r o u g h tu to r ia l
tr e a t m e n t o f m u ltir a te d ig ita l filte r s a n d f ilt e r b a n k s , in c lu d in g q u a d r a tu r e m ir r o r
filte r s , is g iv e n b y V e t t e r l i ( 1 9 8 7 ) , a n d b y V a id y a n a t h a n ( 1 9 9 0 , 1 9 9 3 ) , w h e r e m a n y
r e f e r e n c e s o n v a r io u s a p p lic a tio n s a r e c ite d .
A c o m p r e h e n s iv e s u r v e y o f d ig ita l
tr a n s m u lt ip le x in g m e t h o d s is fo u n d in t h e p a p e r b y S c h e u e r m a n n a n d G o c k l e r
( 1 9 8 1 ) . S u b b a n d c o d in g o f s p e e c h h a s b e e n c o n s id e r e d in m a n y p u b lic a tio n s . T h e
p io n e e r in g w o r k o n th is to p ic w a s d o n e b y C r o c h i e r e ( 1 9 7 7 , 1 9 8 1 ) a n d b y G a r la n d
a n d E s t e b a n ( 1 9 8 0 ) . S u b b a n d c o d in g h a s a ls o b e e n a p p lie d t o c o d in g o f im a g e s .
W e m e n tio n th e p a p e r s b y V e t t e r l i ( 1 9 8 4 ) , W o o d s a n d O N e il ( 1 9 8 6 ) , S m ith a n d
E d d in s ( 1 9 8 8 ) , a n d S a f r a n e k e t a l. ( 1 9 8 8 ) a s ju s t a fe w e x a m p le s . I n c lo s in g , w e
w ish t o e m p h a s iz e th a t m u ltir a te s ig n a l p r o c e s s in g c o n tin u e s t o b e a v e r y a c tiv e
re s e a r c h a re a .
PROBLEMS
10.1 An analog signal x a(t) is bandlimited to the range 90 0 < F < 1 1 0 0 Hz. It is used as
an input to the system shown in Fig. P10.1. In this system, H(&) is an ideal lowpass
filter with cutoff frequency Fc = 125Hz.
jr = 2500
= 1 = 250
Tx
Ty
Fignre P10.1
(a) Determine and sketch the spectra for the signals x(n), w(n), v(n), and y(n).
(b) Show that it is possible to obtain y(n) by sampling x*(t) with period T = 4
milliseconds.
10.2 Consider the signal x(n) = a*u(rt), \a\ < 1.
(a) Determine the spectrum X(w).
(b) The signal x(n) is applied to a decimator that reduces the rate by a factor of 2.
Determine the output spectrum.
(c ) Show that the spectrum in part (b) is simply the Fourier transform of x(2n).
10-3 The sequence x(n) is obtained by sampling an analog signal with period T. From
this signal a new signal is derived having the sampling period T/2 by use of a linear
interpolation method described by the equation
x{n j 2),
n even
Chap. 10
847
Problems
(a) Show that this linear interpolation scheme can be realized by basic digital signal
processing elements.
(b) Determine the spectrum of y(n) when the spectrum of x(n) is
f 1,
1 0,
* ( ,) = ! ''
10,
otherwise
(a) Show that the signal x( n) can be recovered from its samples x(mD) if the sampling
frequency ws = 2tt/ D 2uim( f s = 1/ D > 2f m).
(b) Show that x(n) can be reconstructed using the formula
OC
x(n) =
x( k D) h r(n kD)
w here
sin (2^/ rn)
hr(n) = ---------
fm
COm < (t)c < Cl)J co
2n n
(c) Show that the bandlimited interpolation in part (b) can be thought as a two-step
process: First, increasing the sampling rate by a factor of D by inserting (> 1)
zero samples between successive samples of the decimated signal xa(rt) = x(nD)
and second, filtering the resulting signal using an ideal lowpass filter with cutoff
frequency cuc.
10.5 In this problem we illustrate the concepts of sampling and decimation for discretetime signals. To this end consider a signal x ( n ) with Fourier transform X (w) as in
Fig. P10.5.
X(o>)
L m
- 2 - 1 0 1 2
...
Figure P10.5
(a) Sampling x(n) with a sampling period D = 2 results to the signal
, ,
[ x(n),
'W - l o ,
n = 0 , 2 , 4 , . ..
n = 1 , 3, 5 . . . .
Compute and sketch the signal x,(n) and its Fourier transform X s(w). Can we
reconstruct jc(n) from xt (n)? How?
848
(b)
Chap. 10
x<i(n) = x(2n)
all
x(n)
>' i()
(a)
x(n)
ID
17
---------------- -
y2(n)
(b)
Figure P10.9
(a)
(b)
10.10 Prove th e eq u iv alen ce o f th e two d ecim ato r and in terp o lato r con fig u rations shown
in Fig. P 10.10. T h e se equivalen t relation s are called the n ob le id en tities (see
V aid y anathan , 1990).
10.11 C onsid er an arb itrary digital filter with tran sfer fun ction
OO
H (z) =
h (n )z~n
n*-00
(a)
Chap. 10
849
Problems
(a)
x(n)
(b)
Figure P1G.10
h(2n + 1). T hu s show that H ( z ) can b e exp ressed as
H ( i ) = H o ( z 2) + r 1H ,(zJ )
and d eterm in e N 0(z) and N ,(~).
(b)
G en era liz e the result in part (a ) by showing that H ( z ) can be decom p osed in to
an >-com ponent polyphase filter structure with tran sfer function
D ete rm in e //*(;).
(c) F o r th e I I R filter with transfer function
H {z) =
1 a z~ l
Passband:
T ran sitio n band:
In pu t sam pling rate:
R ip p le:
D = 100
0 < F < 50
5 0 < F < 55
1 0,000 H z
8i = 1 0 " ', 5 2 = 1 0 " 3
1 0 ,1 3 D esign a lin ear ph ase F I R filter th a t satisfies th e follow ing sp ecification s based on a
single-stage and a tw o-stage m ultirate stru ctu re.
Sam pling rate:
Passband:
T ran sitio n band:
1 0,000 H z
0 < F <60
60 < F < 65
R ip p le:
5, = 1 0 - 1,S 2 = 1 0 - 3
1 0 .1 4 Prov e th at th e h alf-ban d filter th at satisfies (1 0 .9 .4 3 ) is alw ays odd and the even
coefficien ts are zero.
850
Chap. 10
10.15 D esign o n e-stag e and tw o-stage in terp olato rs to m ee t the follow ing specification :
/
Input sam pling rate:
Passband:
T ran sitio n band:
R ip p le:
=20
10.000 H z
0 < F < 90
90 < F < 100
a, = lO "2. ^ = lO "3
10.16 B y using (1 0 .9 .2 6 ) derive the equations correspond ing to the stru ctu re fo r the poly
phase synthesis section shown in Fig. 10.43.
10 .1 7 Show th at th e transpose o f an L-stage in terp o lato r fo r increasin g th e sam pling rate by
an in teg er facto r I is equivalen t to an L -stag e d ecim ato r th at d e cre a ses the sam pling
rate by a facto r D = I.
1 0.18 Sk etch the polyphase filter structure fo r achieving a tim e ad v an ce o f ( k / l ) T , in a
seq u en ce x(n).
10.19 Prov e th e follow ing exp ressions fo r an in terp olato r o f o rd e r /.
(a) T h e im pulse response h{n) can be expressed as
where
n = 0. I . 2 1 , . . .
o therw ise
(b) H (z)
may be expressed as
( ;) =
i-i
jy i( n )
(b)
w here p = 4 0 and /* = k/ p, Jt = 0 , 1 , ,
D F T o f x(n ).
Chap. 10
Problems
851
(a)
X(a>)
(b)
Figure P10.19
(d ) R e p e a t p art (b ) for the signal x(n) given in part (c ) by using an appropriately
designed low pass lin ear phase F I R filter to d eterm in e th e decim ated signal *(> =
**{")
j s i (n ).
11
th a t f r e q u e n tly
a r is e s in th e d e s ig n o f c o m m u n ic a tio n s y s te m s , c o n t r o l s y s te m s , in g e o p h y s ic s , a n d
in m a n y o th e r a p p lic a t io n s a n d d is c ip lin e s . In th is c h a p t e r w e t r e a t th e p r o b le m
o f o p tim u m f ilte r d e s ig n fr o m a s ta tis tic a l v ie w p o in t. T h e filte r s a r e c o n s tr a in e d
to b e lin e a r a n d th e o p tim iz a tio n c r ite r io n is b a s e d o n th e m in im iz a t io n o f th e
m e a n -s q u a r e e r r o r . A s a c o n s e q u e n c e , o n ly th e s e c o n d - o r d e r s ta tis tic s ( a u t o c o r
r e la tio n a n d c r o s s c o r r e la t io n f u n c t io n s ) o f a s ta tio n a r y p r o c e s s a r e r e q u ir e d in th e
d e te r m in a tio n o f th e o p tim u m filte r s .
In c lu d e d in th is t r e a t m e n t is th e d e s ig n o f o p tim u m filte r s f o r lin e a r p r e d ic
tio n . L i n e a r p r e d ic t io n is a p a r tic u la r ly im p o r ta n t to p ic in d ig ita l s ig n a l p r o c e s s in g ,
w ith a p p lic a t io n s in a v a r ie ty o f a r e a s , s u c h as s p e e c h s ig n a l p r o c e s s in g , im a g e p r o
c e s s in g , a n d n o is e s u p p r e s s io n in c o m m u n ic a tio n s y s te m s .
A s w e s h a ll o b s e r v e ,
852
Sec. 11.1
853
{yxx(m)}
a n d p o w e r s p e c tr a l d e n s ity r ( / ) , \ f \ <
W e a s s u m e th a t
2) =
( 1 1 .1 .1 )
fr o m w h ic h w e o b ta in th e p o w e r s p e c tr a l d e n s ity b y e v a lu a tin g 1 % ,^ ) o n th e u n it
c ir c le [i.e . b y s u b s t itu tin g z = e x p ( y 2 jr / ) ] .
N o w , l e t u s a s s u m e th a t lo g I V , (z) is a n a ly tic (p o s s e s s e s d e r iv a tiv e s o f a ll
o r d e r s ) in a n a n n u la r r e g io n in th e z -p la n e th a t in c lu d e s th e u n it c ir c le ( i .e ., n <
r (z ) =
( 11. 1.2 )
v(m )z~
w h e r e th e (u (m )} a r e th e c o e f f ic ie n t s in th e s e r ie s e x p a n s io n . W e c a n v ie w {u (m )}
a s th e s e q u e n c e w ith z -tr a n s fo r m V ( z ) = l o g T ( z ) . E q u iv a le n tly , w e c a n e v a lu a te
lo g T J r (z ) o n th e u n it c ir c le ,
J2
lo g r (/ )=
v ( m ) e - J23lfm
( 1 1 .1 .3 )
s o t h a t th e { r ( m ) } a r e th e F o u r i e r c o e f f ic ie n ts in th e F o u r i e r s e r ie s e x p a n s io n o f
th e p e r io d ic fu n c t io n l o g r ^ ( / ) . H e n c e
v( m) =
[ \ g T xx{ f ) ] e j l f md f
m = 0 , d b l------
( 1 1 .1 .4 )
s in c e T x l ( f ) is a re a l a n d e v e n fu n c tio n o f / .
W e o b s e r v e th a t v {m ) =
F r o m ( 1 1 .1 .2 ) it fo llo w s th a t
r ^ f z ) = exp
_m=oc
( 1 1 .1 .5 )
^2 u t -,\
w h e r e , b y d e f in it io n , a 2 = e x p [i? (0 )] a n d
H ( z ) = exp
(11.1.6)
T . v(m )z~
I f ( 1 1 .1 .5 ) is e v a lu a te d o n th e u n it c i r c l e , w e h a v e th e e q u iv a le n t r e p r e s e n ta tio n o f
th e p o w e r s p e c tr a l d e n s ity a s
(11.1.7)
r ( / ) = <r2 \ H ( f ) \ 2
We note that
lo g Txx{ f )
= lo g a i+
lo g H ( f ) + lo g
OC
v ( m ) e - j2* fm
//* (/)
854
Chap. 11
F r o m th e d e fin itio n o f H ( z ) g iv e n b y ( 1 1 .1 .6 ) , it is c l e a r t h a t th e c a u s a l p a r t o f
th e F o u r i e r s e r ie s in ( 1 1 .1 .3 ) is a s s o c ia t e d w ith H ( z ) a n d th e a n tic a u s a l p a r t is
a s s o c ia t e d w ith H ( z ~ l ). T h e F o u r i e r s e r ie s c o e f f ic ie n t s { v ( m ) } a r e th e ce p stra l
c o e fficie n ts a n d t h e s e q u e n c e { u (m ) } is c a lle d th e c e p s tr u m o f th e s e q u e n c e {y xx(m )},
a s d e fin e d in S e c t i o n 4 .2 .7 .
T h e filte r w ith s y s te m fu n c t io n H ( z ) g iv e n b y ( 1 1 .1 .6 ) is a n a ly tic in t h e r e g io n
|z| > r \ < 1. H e n c e , in th is r e g io n , it h a s a T a y l o r s e r ie s e x p a n s io n a s a c a u s a l
s y s te m o f th e f o r m
OC
H ( z ) = J 2 h in ) z ~ n
m=0
( 1 U '8 )
W e c a ll
A {z)A (z~i )
r\ < \ z \ < r 2
( 1 1 .1 .9 )
w h e r e th e p o ly n o m ia ls B ( z ) a n d A ( z ) h a v e r o o t s t h a t fa ll in s id e th e u n it c ir c le in
th e s - p la n e . T h e n th e l in e a r f ilt e r H ( z ) f o r g e n e r a tin g th e r a n d o m p r o c e s s U ( ) }
w(rr)
W hile noise
L inear
causal
filter
k= 0
H{z)
(a)
-r(n)
L inear
causal
filter
w(n)
W hite noise
VH(z)
(b)
Sec. 11.1
855
fr o m th e w h ite n o is e s e q u e n c e {iu (n )} is a ls o r a t io n a l a n d is e x p r e s s e d a s
(11.1 .10)
I t s r e c ip r o c a l 1 / H { z ) is a ls o a c a u s a l, s ta b le , a n d m in im u m - p h a s e lin e a r
T h e r e f o r e , t h e ra n d o m p r o c e s s {;c (n )} u n iq u e ly r e p r e s e n t s t h e s ta tis tic a l
b0 =
1. bk = 0 , k > 0 .
I n th is c a s e , t h e
(11.1 .12)
k= 1
In tu r n , th e n o is e -w h ite n in g filte r f o r g e n e r a tin g th e in n o v a tio n s p r o c e s s is a n
a ll- z e r o filte r .
a k = 0 , k > 1. In th is c a s e , th e l i n e a r f ilte r
I n th is c a s e , th e lin
T h e i n v e r s e s y s te m f o r
g e n e r a tin g t h e in n o v a tio n p r o c e s s f r o m x ( n ) is a ls o a p o l e - z e r o s y s te m o f th e fo r m
1 / H ( z ) = A ( z ) /B { z ) .
856
Chap. 11
p
E [ x { n ) x * { n m )] = ^ f l t [ . x ( n k )x * (n m )]
( 1 1 .1 .1 4 )
+ ^T^f>i[u>(n k )x * (n m )]
H en ce
<?
Yxx ( m ) =
~ f t + Y 2 btYwx^w ~ f t ( H . 1 . 1 5 )
1=1
i= 0
ywxOn) = [ A * ( f i) w ( + m )]
= E
h (k )w * (n k ) w ( n -i- m )
( 1 1 .1 .1 6 )
= a lh ( -m )
w h e r e , in th e la s t s te p , w e h a v e u se d th e fa c t th a t th e s e q u e n c e w (n) is w h ite .
H en ce
I < 0
B y c o m b in in g ( 1 1 .1 .1 7 ) w ith ( 1 1 .1 .1 5 ) , w e o b ta in th e d e s ir e d r e la tio n s h ip
p
~ Y 2 , a tYxx{m - k ),
k=\
Yxxim) =
m > q
( 1 1 .1 .1 8 )
kYx* (m ~ k ^
h tt' lbk+m ,
k=l
0 <m <q
k= 0
- Yxx
m < 0
p
~ 2 2 akY ( m ~ k ) ,
m > 0
k =i
Yxx(m) =
p
- 2 2 a k Yx*(m ~ W + a l
(11.1.19)
m = 0
k=i
y A (~ m )'
m <o
Sec. 11.2
857
T h u s w e h a v e a lin e a r r e la tio n s h ip b e tw e e n y xx (m ) a n d th e { a t } p a r a m e te r s . T h e s e
e q u a tio n s , c a lle d th e
Y u le - W a lk e r e q u a tio n s , c a n b e e x p r e s s e d in th e m a tr ix
fo rm
~Yxx(0)
y (l)
-Yxx(p)
Yxx( ~ 2 )
YxA ~ l)
y , , ( - 1)
K(0)
YxA
- 1)
- 1 a\
Yxx(-P)
Yxx(~P + l)
Y x x i p - 2)
-a p _
- YxAO)
( 11. 1.20)
_0 _
T h i s c o r r e l a t i o n m a tr ix is T o e p lit z , a n d h e n c e it c a n b e e ff ic ie n tly in v e r t e d b y u s e
o f t h e a lg o r it h m s d e s c r ib e d in S e c t i o n 1 1 .3 .
F in a lly , b y s e tt in g a k 0 , 1 < k < p , a n d h (k ) bk, 0 < k < q , in ( 1 1 .1 .1 8 ) ,
w e o b ta in th e r e la tio n s h ip fo r th e a u t o c o r r e la t io n s e q u e n c e in th e c a s e o f a M A
p r o c e s s , n a m e ly ,
<?
YxAm ) =
cru , 2 2 bkbk+m'
n *=<>
0,
y*x (m ),
- m - ?
m > q
m < 0
( 1 1 - 1 .2 1 )
th e v a lu e o f a s ta tio n a r y r a n d o m p r o c e s s e it h e r fo r w a rd in tim e o r b a c k w a r d in
tim e .
c o n n e c t io n s t o p a r a m e tr ic s ig n a l m o d e ls .
p
x (n ) = ^ a p( i ) x (n k)
( 1 1 .2 .1 )
*= l
w h e r e th e { a p {k)} r e p r e s e n t t h e w e ig h ts in t h e lin e a r c o m b in a tio n . T h e s e w e ig h ts
a r e c a lle d th e p r e d ic t io n c o e fficie n ts o f t h e o n e - s t e p fo r w a r d l i n e a r p r e d ic t o r o f
858
F ig u re 1 L 2
Chap. 11
F o r w a r d lin e a r p re d ic tio n
T h e d if f e r e n c e b e tw e e n th e v a lu e x ( n ) a n d th e p r e d ic t e d v a lu e x ( n ) is c a lle d
th e f o r w a r d p r e d ic t io n e r r o r , d e n o te d a s f p (n):
f p (n) = x ( n ) - x ( n )
p
= x (n ) + ^
( 11. 2 .2 )
a p (k )x (n - k)
p
( 1 1 .2 .3 )
A p (z) =
i-=0
w h e r e , b y d e f in it io n , a ^ (0 ) = 1.
p( P)
1
----/,(")
Figure 11-3 Prediction-error filter
Sec. 11.2
859
o r d e r -r e c u r s iv e e q u a tio n :
fo ( n ) = go(n) - x {n )
fm (n ) = / m -i(n ) + K mg m~ i( n - 1)
m = l,2 ,...,p
g m(n) = A r*/m_ i ( n ) + g m- i ( n - 1)
m = 1 . 2 ........... p
( 1 1 .2 .4 )
N o te th a t f o r c o m p le x - v a lu e d d a ta , th e
c o n ju g a t e o f K m is u se d in th e e q u a tio n f o r g m(n).
F ig u r e
1 1 .4 illu s tr a te s a
f p (n) -
a p(f:^x (n ~ f t
a p (0) = l
( 1 1 .2 .5 )
S in c e ( 1 1 .2 .5 ) is a c o n v o lu tio n su m , th e z - tr a n s fo r m r e la t io n s h ip is
( 11 .2 .6 )
F r (z) = A p ( z ) X ( z )
o r , e q u iv a le n tly .
A (z) =
'
X (z)
( 1 1 .2 .7 )
F 0(z)
T h e m e a n -s q u a r e v a lu e o f th e fo r w a rd lin e a r p r e d ic t io n e r r o r f p {n) is
fp = E [ \ f p ( n ) \2]
(11.2 .8)
p
= > 'jj(0 ) + 2 R e
a * ( l) a p( k ) y xx(l - k )
Figure 1L4
860
Chap. 11
p
yx A d
= - Y
*= i
, a r {k )y * * v ~ k)
l = l ' 2 .......... p
( n -2 -9 )
E { = y ( 0 ) + Y , a p { k ) YxA - k )
( 1 1 .2 .1 0 )
*= i
In th e fo llo w in g s e c tio n w e e x t e n d th e d e v e lo p m e n t a b o v e to th e p r o b le m o f
p r e d ic tin g th e v a lu e o f a tim e s e r ie s in th e o p p o s ite d ir e c t io n , n a m e ly , b a c k w a r d
in tim e .
-i
x ( n p ) = Y 2 bp (k )x {n k)
k=0
( 11 .2 . 11 )
T h e d if f e r e n c e b e tw e e n th e v a lu e x ( n p ) a n d th e e s tim a te x ( n - p ) is c a lle d th e
b a c k w a r d p re d ic tio n e r r o r , d e n o te d a s g p( n ):
P- \
g p (n) = x ( n - p ) + 2 2 bp (k)x (n ~ f t
i=
( 11.2 .12)
' Y l bP ^ x ^n ~ f t
bp (p ) = 1
t=o
T h e b a c k w a r d lin e a r p r e d ic t o r c a n b e r e a liz e d e i t h e r b y a d ir e c t -f o r m F I R
f ilte r s tr u c tu r e s im ila r t o th e s tr u c tu r e s h o w n in F ig . 1 1 .2 o r a s a la ttic e s tr u c tu r e .
T h e l a t t ic e s tr u c tu r e sh o w n in F ig . 1 1 .4 p r o v id e s t h e b a c k w a r d lin e a r p r e d ic t o r as
w e ll a s th e fo r w a rd lin e a r p r e d ic to r .
T h e w e ig h tin g c o e ffic ie n ts in th e b a c k w a r d li n e a r p r e d i c t o r a r e th e c o m p le x
c o n ju g a te s o f th e c o e f f ic ie n ts f o r th e fo r w a r d l i n e a r p r e d ic t o r , b u t th e y o c c u r in
re v e rse o rd e r. T h u s w e hav e
bp(k) a * ( p k )
k = 0 ,l,...,p
( 1 1 .2 .1 3 )
In th e z -d o m a in , th e c o n v o lu tio n s u m in ( 1 1 .2 .1 2 ) b e c o m e s
or, equivalently,
G p (z)
G p (z)
(11.2.14)
Sec. 11.2
861
w h e r e B p {z) r e p r e s e n ts th e s y s te m fu n c t io n o f th e F I R
filte r w ith c o e f f ic ie n ts
bP (k).
S in c e bp (k) = a * ( p k ), G r (z) is r e la te d to A r (z)
B p (z) =
= X >
t=o
>
-*)*"*
( 1 1 .2 .1 6 )
= z - ' fl; ( * ) z *
t=0
= Z-p A*p (z - ')
T h e r e la tio n s h ip in ( 1 1 .2 .1 6 ) im p lie s th a t th e z e r o s o f th e F I R f ilte r w ith s y s te m
fu n c t io n B p(z) a r e s im p ly th e ( c o n ju g a t e ) r e c ip r o c a ls o f th e z e r o s o f A ,,(z ). H e n c e
F 0(z) = G q ( z ) = X ( z )
F m(z) = F m- i ( z ) + /rm; - ' G ffl_ , W
G m(z ) =
K " F m- i { z ) + z _ 1 G m_ i ( ; )
m = 1 ,2 ,..., p
( 1 1 .2 .1 7 )
m = 1, 2 , . . . , p
I f w e d iv id e e a c h e q u a tio n b y X ( z ) , w e o b ta in th e d e s ir e d r e s u lts in th e f o r m
4 0 (z ) =
5 o (z ) = 1
A m{z) = A m^ ( z ) + K mz ~ l B m^ { z )
m = 1 , 2 .......... p
B m(z) =
in = 1 , 2 .......... p
K*mA m^ ( z ) + z ' 1 B m- i ( z )
( 1 1 .2 .1 8 )
T h u s a la t t i c e filte r is d e s c r ib e d in th e z -d o m a in b y th e m a tr ix e q u a tio n
A m( z ) '
'1
K mZ
_ B m(z) _
A m- i ( z )
B m -l( z )
( 1 1 .2 .1 9 )
I t is
T h e r e a s o n th e l a t t i c e p r o v id e s a
m o r e c o m p a c t r e p r e s e n t a t io n f o r t h e c la s s o f p F I R filte r s is b e c a u s e a p p e n d in g
862
Chap. 11
s ta g e s to th e la t t ic e d o e s n o t a l t e r th e p a r a m e t e r s o f th e p r e v io u s s ta g e s . O n th e
o th e r h a n d , a p p e n d in g th e /?th s ta g e t o a la t t ic e w ith (p 1 ) s t a g e s is e q u iv a le n t
t o in c r e a s in g th e le n g th o f a n F I R filte r b y o n e c o e f f ic ie n t . T h e r e s u ltin g F I R f ilte r
w ith s y s te m fu n c t io n A p (z) h a s c o e f f ic ie n ts t o ta lly d if f e r e n t f r o m th e c o e f f ic ie n ts
o f th e lo w e r - o r d e r F I R f ilte r w ith s y s te m f u n c tio n
T h e fo r m u la f o r d e te r m in in g th e f ilt e r c o e f f ic ie n ts {ap (k ) \ r e c u r s iv e ly is e a s ily
d e riv e d fr o m p o ly n o m ia l r e la tio n s h ip s ( 1 1 .2 .1 8 ) . W e h a v e
A m(z) =
m
y ' a m(k )z k *=0
1( ' )
- f K mz ~ ] B m-
m -\
-i
( 1 1 .2 .2 0 )
* + K m
Y ' a m_ i ( i ) c
A=0
a+ 1)
i= 0
a n d r e c a llin g th a t a m( 0 ) = 1
B y e q u a tin g th e c o e f f ic ie n t s o f e q u a l p o w e r s o f
fo r m =
1 - k)z
c o e f f ic ie n ts in th e fo r m
Am(0 ) =
a m(m) = K m
a,(k) = a m~ \{ k ) + K ma*n_ } (m - k)
= a m~ \( k ) + a m (m )a*
( 1 1 .2 .2 1 )
(m - k)
1 < k < m -
m = 1 .2 ,.... p
T h e c o n v e r s io n fo r m u la f r o m th e d ir e c t -fo r m F I R filte r c o e f f i c i e n t s (a^(/:)} to
th e l a t t ic e r e fle c tio n c o e f f ic ie n t s |Af, } is a ls o v e r y s im p le . F o r th e />-s ta g e la ttic e w e
im m e d ia te ly o b ta in th e r e fle c tio n c o e f f ic ie n t K p = a n (p ). T o o b t a i n K p~ i ,
w e n e e d th e p o ly n o m ia ls A m(z) f o r m = p 1 . ___ 1. F r o m ( 1 1 . 2 . 1 9 ) w e o b ta in
.
. x
A m(z) K mB m(z)
A m- i( z ) = ------ ------
~ 2
------
m = p ........1
... ,
(11.2.22)
I& m I
w h ich is ju s t a s te p -d o w n r e c u r s io n . T h u s w e c o m p u te a ll lo w e r - d e g r e e p o ly n o m ia ls
A m(z) b e g in n in g w ith A p- i ( z ) a n d o b ta in t h e .d e s ir e d l a t t ic e r e f l e c t i o n c o e f f ic ie n ts
a m(m ). W e o b s e r v e th a t th e p r o c e d u r e w o rk s a s lo n g
f r o m t h e r e la tio n K m =
a s |ATmi ^
1 fo r m =
1, 2 , . . . , p
1.
F ro m
th is s te p -d o w n r e c u r s io n f o r th e
p o ly n o m ia ls , it is r e la tiv e ly e a s y to o b t a in a fo r m u la f o r r e c u r s iv e ly a n d d ir e c tly
co m p u tin g K m, m = p 1 , . . . , 1. F o r m p - 1 , . . . , 1, w e h a v e
K m = a m(m )
Qm(k) K mbm(k)
/r
=
_
i t
iU 2 2 3 )
l - l
a m(k) - a m{m)a*m(m - k)
1 -
\am(m )\2
w h ic h is ju s t t h e r e c u r s io n in th e S c h u r - C o h n s ta b ility t e s t f o r t h e p o ly n o m ia l
A m(z).
Sec. 11.2
863
A s ju s t in d ic a te d , th e r e c u r s iv e e q u a tio n in ( 1 1 .2 .2 3 ) b r e a k s d o w n i f a n y o f
t h e la t t ic e p a r a m e t e r s \ K m \ = 1. I f th is o c c u r s , it is in d ic a tiv e th a t th e p o ly n o m ia l
Am_ i ( z ) h a s a r o o t l o c a t e d o n th e u n it c ir c le . S u c h a r o o t c a n b e f a c t o r e d o u t f r o m
A m_ i ( z ) a n d th e ite r a tiv e p r o c e s s in ( 1 1 .2 .2 3 ) c a r r ie d o u t f o r th e r e d u c e d - o r d e r
s y s te m .
F in a lly , le t us c o n s i d e r th e m in im iz a tio n o f t h e m e a n - s q u a r e e r r o r in a b a c k
w a rd lin e a r p r e d ic t o r . T h e b a c k w a r d p r e d ic t io n e r r o r is
p -1
g p (n) x (n - p ) - f 2 2 bP (k )x (n - k)
( 1 1 .2 .2 4 )
= j(h - p) + ^
a* ()*(/1 ~ p + k)
k=i
a n d its m e a n -s q u a r e v a lu e is
b
p = [ M ) 1 2]
( 1 1 .2 .2 5 )
T h e m in im iz a tio n o f b
p w ith r e s p e c t to th e p r e d ic t io n c o e f f ic ie n t s y ie ld s th e s a m e
s e t o f lin e a r e q u a tio n s a s in ( 1 1 .2 .9 ) . H e n c e th e m in im u m m e a n - s q u a r e e r r o r is
m in [ { ] = E j = E ;
( 1 1 .2 .2 6 )
w h ic h is g iv e n b y ( 1 1 .2 ,1 0 ) .
( 1 1 .2 .2 7 )
T h e m in im iz a t io n o f E[|/m(n)|2] w ith r e s p e c t t o th e r e f le c t io n c o e f f i c i e n t K m y ie ld s
th e re s u lt
- [ / m- i ( n ) g ; _ ! ( n - l ) ]
rTi
'(
TTm
[ | g _ i ( n - 1)|2]
( 1 1 ./ .Z o ;
o r , e q u iv a le n tly ,
K m --
E [ f m- \( n ) g *
A n 1)1
, gm~ 1 -------- --
( 1 1 .2 .2 9 )
i-.
w h e r e E fm_ x = E b
m_ x = E [ \ g m^ ( n -
W e o b s e r v e t h a t th e o p tim u m c h o ic e o f th e r e f le c t io n c o e f f ic ie n ts in th e
l a t t i c e p r e d i c t o r is th e n e g a tiv e o f t h e ( n o r m a liz e d ) c r o s s c o r r e la t io n c o e f f ic ie n ts
864
Chap. 11
b e tw e e n th e fo r w a r d a n d b a c k w a r d e r r o r s in t h e la t t ic e .* S i n c e it is a p p a r e n t fr o m
( 1 1 .2 .2 8 ) th a t |AT, | < 1 . it fo llo w s t h a t t h e m in im u m m e a n - s q u a r e v a lu e o f th e
p r e d ic tio n e r r o r , w h ich c a n b e e x p r e s s e d r e c u r s iv e ly as
E { = {1 - |
( 11. 2. 30)
is a m o n o to n ic a lly d e c r e a s in g s e q u e n c e .
p f o r th e s a m e p r o c e s s .
T o s e e th e r e la tio n s h ip , w e r e c a ll th a t in a n A R ( p )
p r o c e s s , th e a u t o c o r r e la t io n s e q u e n c e { y ^ { m ) } is r e la te d to t h e p a r a m e te r s {a *}
b y t h e Y u l e - W a l k e r e q u a tio n s g iv e n in ( 1 1 .1 .1 9 ) o r ( 1 1 .1 .2 0 ) . T h e c o r r e s p o n d in g
e q u a tio n s f o r th e p r e d ic t o r o f o r d e r p a r e g iv e n b y ( 1 1 .2 .9 ) a n d ( 1 1 .2 .1 0 ) .
A d ir e c t c o m p a r is o n o f t h e s e tw o s e ts o f r e l a t i o n s r e v e a ls t h a t t h e r e is a o n e t o - o n e c o r r e s p o n d e n c e b e tw e e n th e p a r a m e te r s { a * } o f th e A R ( p ) p r o c e s s a n d th e
p r e d ic t o r c o e ff ic ie n ts {ap (k)} o f th e p t h - o r d e r p r e d ic t o r .
In f a c t , i f th e u n d e rly
in g p r o c e s s l x ( n ) } is A R ( p ) , th e p r e d ic t io n c o e f f i c ie n t s o f th e p t h - o r d e r p r e d ic t o r
a r e id e n tic a l to {ak}. F u r t h e r m o r e , th e m in im u m M S E in th e / ?th -o rd e r p r e d ic t o r
/ is id e n tic a l to crj,, th e v a r ia n c e o f th e w h ite n o is e p r o c e s s .
In th is c a s e , th e
Y 2 ,ap ^ y ^ 1
= 0
* =0
1 = 1 , 2 .......... p
(n .3 .1 )
0 ,( 0 ) = 1
T h e r e s u ltin g m in im u m M S E ( M M S E ) is g iv e n b y ( 1 1 .2 .1 0 ) . I f w e a u g m e n t
( 1 1 .2 .1 0 ) t o t h e n o r m a l e q u a tio n s g iv e n b y ( 1 1 .3 .1 ) w e o b ta in t h e s e t o f a u g m en te d
n o r m a l e q u a tio n s, w h ic h m a y b e e x p r e s s e d as
; :
2 .......... P
(1 U .2 ,
W e a ls o n o te d t h a t i f th e r a n d o m p r o c e s s is a n A R ( p ) p r o c e s s , t h e M M S E E p = a 2 .
The normalized crosscorrelation coefficients between the forward and backward error in the
lattice (i.e.,
are often called the partial correlation (PARCOR) coefficients.
Sec. 11.3
865
T h i s a lg o r ith m
e x p lo its th e s p e c ia l s y m m e tr y in th e a u t o c o r r e la t io n m a tr ix
> x ,( 0 )
k; , (
y ,,( D
. Y x x i p - 1)
N o te th a t
rp(i,j) =
j) ,
rp(i,j) = T*(j, i ) ,
m a trix . S in c e
The
key
to
th e
i)
* A p ~ 1)
Yxx(O)
Y*x i P ~ 2 )
Y x x (p ~ 2)
y^O )
( 1 1 .3 .3 )
s o t h a t t h e a u t o c o r r e la t i o n m a tr ix is a T o e p lit z
th e m a tr ix is a ls o H e r m itia n .
L e v in s o n - D u r b in
m eth o d
o f s o lu tio n ,
t h a t e x p lo its th e
T o e p l it z p r o p e r ty o f th e m a tr ix , is to p r o c e e d r e c u r s iv e ly , b e g in n in g w ith a p r e
d ic t o r o f o r d e r m = 1 ( o n e c o e f f i c i e n t ) a n d th e n t o in c r e a s e th e o r d e r r e c u r s iv e ly ,
u s in g th e lo w e r - o r d e r s o lu tio n s to o b ta in t h e s o lu tio n t o th e n e x t- h ig h e r o r d e r .
T h u s th e s o lu tio n t o th e f ir s t- o r d e r p r e d ic t o r o b t a in e d b y s o lv in g ( 1 1 .3 .1 ) is
o i(l) = -
Yxx( 1)
( 1 1 .3 .4 )
y*.t ( 0 )
a n d th e re s u ltin g M M S E is
e{
= yj (0 )+ f l i ( l ) y ( - l )
( 1 1 .3 .5 )
a 2 ( l ) y xx( 0 ) + a 2 (2)y * x ( l ) ~ Y x x ( 1)
(11.3.6)
02( l ) y ^ ( l )
+ a 2 ( 2 ) y xx(0) = - y xx( 2 )
866
Chap. 11
a 2 (2) = -
y xx(2) + a i ( 1 ) ^ ( 1 )
X r*(0 )[l -
| fll(l)i2]
Y jcjc( 2 ) - f a \ { l ) y xx( l )
^2(1)
fli d )
( 1 1 .3 .7 )
+ a 2(2)aUl)
T h u s w e h a v e o b ta in e d th e c o e ffic ie n ts o f th e s e c o n d - o r d e r p r e d ic t o r . A g a in , w e
n o t e t h a t ct2(2) = K 2 , th e s e c o n d r e f le c tio n c o e f f ic ie n t in th e la t t i c e f ilte r .
P r o c e e d in g in th is m a n n e r , w e c a n e x p r e s s th e c o e f f i c i e n t s o f th e m th - o r d e r
p r e d ic t o r in te r m s o f th e c o e f f ic ie n ts o f th e (m l ) s t - o r d e r p r e d ic t o r . T h u s w e c a n
w rite th e c o e f f ic ie n t v e c t o r
am as
th e su m o f tw o v e c to r s , n a m e ly .
~ a m( 1) *
a m(2)
" d m_ , "
_ f l m( m) w h ere
a,_i
( 1 1 .3 .8 )
am =
0
_Km _
is th e p r e d ic t o r c o e f f ic ie n t v e c t o r o f th e (m ~ l ) s t - o r d e r p r e d ic t o r a n d
th e v e c t o r d m_ j a n d th e s c a la r K m a r e to b e d e te r m in e d . L e t u s a ls o p a r titio n th e
m x m a u t o c o r r e la t io n m a tr ix T r* as
r#n-l
r m=
7m-1
(1 1 .3 .9 )
y ^ (0 )
= [y xx(m -
w h ere
1)
yxx(m -
2)
y xx( 1 )] = ( 7 * _ ] ) r , th e a s te r is k ( * ) d e
n o te s th e c o m p le x c o n ju g a t e , a n d y rm d e n o te s th e tr a n s p o s e o f y m. T h e s u p e r s c r ip t
b on
7 m_ ,
d e n o t e s th e v e c t o r
7^
, = [y (l)
y xx(2 )
y xx (m - 1 ) ] w ith e l e
m e n ts ta k e n in r e v e r s e o r d e r .
T h e s o lu tio n to th e e q u a tio n r ma m = y m c a n b e e x p r e s s e d a s
1 f
.1
a m- i
_0
um
k
] ) [ * > ]
<i m o >
T h is is th e k e y s te p in th e L e v in s o n - D u r b in a lg o r it h m . F r o m ( 1 1 .3 .1 0 ) w e o b ta in
tw o e q u a tio n s , n a m e ly ,
+ K my b*_x 7 m - i a m -1 + 7 t '_ i d m - i + K myxx{0 ) =
- y m_ x
( 1 1 .3 .1 1 )
- y xx(m )
( 1 1 .3 .1 2 )
S in c e r m_ i a m_ i = - y m_ : , ( 1 1 .3 .1 1 ) y ie ld s th e s o lu tio n
dm_!
But
7 **_ j
is ju s t
7 m_ !
= - K mT - \ xy b
;_ ,
( 1 1 .3 .1 3 )
w ith e le m e n t s ta k e n in r e v e r s e o r d e r a n d c o n ju g a te d . T h e r e -
Sec. 11.3
867
f o r e , th e s o lu tio n in ( 1 1 .3 .1 3 ) is sim p ly
'< C _ ] ( " J - 1 )
d m_ , = K ma * * .! = K m
flmi
-2 )
( 1 1 .3 .1 4 )
T h e s c a la r e q u a tio n ( 1 1 .3 .1 2 ) c a n n o w b e u s e d to s o lv e f o r K m. I f w e e lim in a te
d m_ i in ( 1 1 .3 .1 2 ) b y u s in g ( 1 1 .3 .1 4 ) , w e o b ta in
Km [Yxx(Q) +
+ 'Ym^ia m -l = ~ Y x x ( )
H en ce
K,,<0)
( 1 1 .3 .1 6 )
a ( k ) = a m- i ( k ) + K ma*m_ x(m - k)
= a m_ i( k ) + a m{ m ) a ^ ( m ~ k )
k -\2 ,...,m
tn = i , z , . . . , p
^1 1 3
T h e r e a d e r s h o u ld n o t e t h a t th e r e c u r s iv e r e la tio n in ( 1 1 .3 .1 7 ) is id e n tic a l to th e
r e c u r s iv e r e la t io n in ( 1 1 .2 .2 1 ) f o r th e p r e d ic t o r c o e f f ic ie n t s , o b ta in e d f r o m th e
p o ly n o m ia ls A m( z ) a n d B m(z). F u r t h e r m o r e , K m is t h e r e f le c t io n c o e f f ic ie n t in th e
m th s ta g e o f t h e l a t t ic e p r e d ic t o r .
T h i s d e v e lo p m e n t c le a r ly illu s tr a te s th a t th e
L e v in s o n - D u r b in a lg o r it h m p r o d u c e s th e r e f le c tio n c o e f f i c ie n t s f o r th e o p tim u m
l a t t i c e p r e d ic t io n f ilte r a s w e ll a s th e c o e f f ic ie n ts o f th e o p tim u m d ir e c t -f o r m F I R
p r e d ic t o r .
F in a lly , le t u s d e te r m in e th e e x p r e s s io n f o r th e M M S E . F o r t h e m th -o r d e r
p r e d ic t o r , w e h a v e
m
yxx(O ) + ^ [ o m^ i ( / c ) + f l m ( m ) f l * _ 1( r n - * ) ] y ( - / c )
i= l
m\2)
( 1 1 .3 .1 8 )
m = 1,2,...,
(11.3.19)
868
Chap. 11
T h is c o n c lu d e s th e d e r iv a tio n o f th e L e v in s o n - D u r b in a lg o r it h m f o r so lv in g
th e lin e a r e q u a tio n s T ma m = y m, f o r m = 0 , 1
p . W e o b s e r v e th a t th e lin e a r
e q u a tio n s h a v e th e s p e c ia l p r o p e r ty th a t th e v e c t o r o n th e r ig h t- h a n d s id e a ls o
a p p e a r s as a v e c t o r in
rm.
In th e m o r e g e n e r a l c a s e , w h e r e th e v e c t o r o n th e
rmbm= cm. T h e
re s u lt is a g e n e r a liz e d L e v in s o n - D u r b i n
a lg o r ith m ( s e e P r o b le m 1 1 .1 2 ) .
T h e L e v in s o n - D u r b in r e c u r s io n g iv e n b y ( 1 1 .3 .1 7 ) r e q u ir e s 0 ( m ) m u ltip lic a
tio n s a n d a d d itio n s ( o p e r a t i o n s ) to g o fr o m s ta g e m to s ta g e m + 1. T h e r e f o r e , f o r
c a n b e c o m p u te d s im u lta n e o u s ly b y e m p lo y in g p a r a lle l
H o w e v e r , th e a d d itio n o f th e s e p r o d u c ts c a n n o t b e d o n e s im u lta n e
o u s ly , b u t in s te a d , r e q u ir e 0 ( \ o g p ) tim e u n its .
H e n c e , th e c o m p u ta tio n s in th e
L e v in s o n - D u r b in a lg o r it h m , w h e n p e r f o r m e d b y p p a r a lle l p r o c e s s o r s , c a n b e a c
c o m p lis h e d in 0 ( p \ o g p ) tim e .
In th e f o llo w in g s e c tio n w e d e s c r ib e a n o t h e r a lg o r it h m , d u e to S c h iir ( 1 9 1 7 ) ,
th a t a v o id s th e c o m p u ta tio n o f in n e r p r o d u c ts , a n d t h e r e f o r e is m o r e s u ita b le f o r
p a r a lle l c o m p u ta tio n o f th e r e f le c tio n c o e ff ic ie n ts .
T o b e s p e c ific , l e t u s c o n s id e r th e
- + y ( P n-<>
( 1 U '2 0 )
a n d th e s e q u e n c e o f fu n c t io n s R m(z) d e fin e d r e c u r s iv e ly as
D i \
R m(z) -
Rm - 1 ( z ) R m - l ( o o )
------ rr
z *[1 - / ?*_ ! ( o o ) ( z ) J
m = 1,2,...
/1 1 o - i n
( 1 1 .3 .2 1 )
Sec. 11.3
869
S c h i i r s t h e o r e m s t a t e s t h a t a n e c e s s a r y a n d s u ffic ie n t c o n d itio n f o r th e c o r
r e l a t i o n m a t r ix to b e p o s itiv e d e f in it e is t h a t |/?m(oo)| < 1 f o r m = 1, 2 , . . . , p .
L e t u s d e m o n s tr a t e th a t th e c o n d itio n f o r p o s itiv e d e fin ite n e s s o f th e a u t o c o r
r e la t io n m a t r ix I ^ + i is e q u iv a le n t t o th e c o n d itio n t h a t th e r e f le c tio n c o e f f ic ie n ts
in t h e e q u iv a le n t la t t ic e f ilt e r s a tis f y t h e c o n d itio n |K m \ < 1, m = 1, 2 , . . . , p .
F ir s t , w e n o t e th a t R o(oo) = 0 . T h e n , fr o m ( 1 1 .3 .2 1 ) w e h a v e
Yxx(l) +
X x x (2 )z _1 + + Yxx(p)z~p+l
-----------------------------------
R \ ( 2) ---------^
^
( 1 1 .3 .2 2 )
H e n c e r t i( o o ) = yxx( l ) / y Xx(0 ). W e o b s e r v e t h a t R \( o o ) = K \ .
S e c o n d , w e c o m p u te R j( z ) a c c o r d in g to ( 1 1 .3 .2 1 ) a n d e v a lu a te th e r e s u lt a t
z = 00 . T h u s w e o b ta in
Yxx(2) + K ^ x x d )
x(0)(l - l^ii2)
A g a in , w e o b s e r v e t h a t # 2( 00) = K j . B y c o n tin u in g th is p r o c e d u r e , w e fin d th a t
| < 1 f o r m = 1, 2 , . . . , p , a n d e n s u r e s th e
p o s it iv e d e f in it e n e s s o f th e a u t o c o r r e l a t i o n m a tr ix r p+i.
S i n c e th e r e fle c tio n c o e f f ic ie n t s c a n b e o b ta in e d fr o m th e s e q u e n c e o f f u n c
tio n s R m( 2), m =
1, 2 , . . . , p , w e h a v e a n o t h e r m e th o d f o r s o lv in g th e n o r m a l
e q u a tio n s . W e c a ll th is m e t h o d th e S c h u r a lg o rith m .
Schur algorithm.
*<z) = 7Q mfrr
(z)
m= l ' P
( 1 1 .3 .2 3 )
w h ere
P o (z) = Y x x O ) Z ~ X + Y x x ( 2 ) z ~ 2 H--------- h Y x x (p )z ~ p
( 1 1 .3 .2 4 )
^0
0 a n d K m R m(oo) f o r m =
1 , 2 , . . . , p , th e r e c u r s iv e e q u a tio n
Qm(z):
[Q m (z)j
Z_1
r p m_ i ( z )
[_ Q m \ (z )
T h u s w e have
P l( z ) =
P o (z) = X t x ( l ) z _1 -I- Y x x (2 )z ~ 2 + + Y x x (p )z ~ p
( 1 1 .3 .2 6 )
f i i ( z ) = z -1 Q o (z ) = Y xx(0 )z - 1 + y ( l ) z - 2 + - + y xx( p ) z ~ p- 1
and
K\ =
P i( z )
Q iiz )
Yxx(1)
Vxx(0)
(11.3.27)
870
Chap. 11
P i( z ) =
=
P \( z ) + K xQ x{z)
[Yxx( 2 ) + K i y xx( l ) \ z ~ 2 +
+ [Y x A p ) + * 1 Y x x ip -
1 )]z~ p
( 1 1 .3 .2 8 )
Q i( z ) =
=
+
[x rJf(0 ) + Js:1v ( i ) ] z - 2 + - - + [Y x x ip -
2 ) + K * y xx( p - 1 ) } z ~ p
w h e r e th e te r m s in v o lv in g z ~ p~ l h a v e b e e n d r o p p e d .
T h u s w e o b s e r v e th a t th e
re c u r s iv e e q u a tio n in ( 1 1 .3 .2 5 ) is e q u iv a le n t to ( 1 1 .3 .2 1 ) .
B a s e d o n th e s e r e la tio n s h ip s , th e S c h u r a lg o r ith m is d e s c r ib e d b y th e fo llo w
in g re c u r s iv e p r o c e d u r e .
In it ia liz a t io n . F o r m th e 2 x ( p + 1) g e n e r a t o r m a tr ix
0
y ^ (0 )
Gn =
Kv-r(l)
y^O )
Yxx( 2 )
y xx (2 )
^ ( Z 7) ]
y xx{ p ) \
w h e r e th e e le m e n t s o f th e firs t ro w a r e th e c o e f f i c i e n t s o f P q( z ) a n d th e
e le m e n ts o f th e s e c o n d ro w a r e th e c o e f f ic ie n ts o f ?o(z).
Step 1.
S h ift th e s e c o n d ro w o f th e g e n e r a t o r m a tr ix t o th e rig h t by o n e
p la c e a n d d is c a r d th e la s t e le m e n t o f th is ro w . A z e r o is p la c e d in th e v a c a n t
p o s itio n . T h u s w e o b ta in a n e w g e n e r a to r m a tr ix ,
G, =
Yxx( 1)
y xx (0 )
0
.0
Y xxO )
y xx( 1)
Yx A 2 )
yxx{ 1)
y xA p )
y xx(p - 1 )
( 1 1 .3 .3 0 )
T h e (n e g a tiv e ) r a t io o f t h e e le m e n ts in th e s e c o n d c o lu m n y ie ld th e r e f le c tio n
c o e f f ic ie n t K \ = - y xA l ) / y xx {0).
Step 2. M u ltip ly th e g e n e r a t o r m a tr ix b y th e 2 x 2 m a tr ix
Vi =
Ki
(1 1 .3 .3 1 )
T h u s w e o b ta in
V!G1=
y < 2 ) + K xYxx{ \ )
y (0 ) + ^ * y ( l)
Y x x ip ) + K \ y xx{ p - 1)
Y x x ip -
1 ) + K * y xx(p )_
( 1 1 .3 .3 2 )
Step 3. S h ift th e s e c o n d ro w o f V i G i b y o n e p la c e t o th e r ig h t a n d th u s fo rm
th e n e w g e n e r a t o r m a tr ix
G: =
yxx(2) + K i y xx( l )
y xx(p ) + K \ y X I (p - 1)
L0
y xA 0 ) + K ; y xx( \ )
Yxx( p - 2 ) + K \ y xx( p - l )
( 1 1 .3 .3 3 )
T h e n e g a tiv e r a t io o f th e e le m e n ts in th e th ir d c o lu m n o f G
y ie ld s K
2.
Sec. 11.3
871
S te p s 2 a n d 3 a r e r e p e a t e d u n til w e h a v e s o lv e d f o r a ll p r e f le c tio n c o e f f ic ie n ts .
In g e n e r a l, th e 2 x 2 m a tr ix in s te p 2 is
1
K*
( 1 1 .3 .3 4 )
T h e c o m p u ta tio n o f
yxx(n )].
th e s e c o n d in p u t is y ( l ) , a n d s o o n [i.e ., / ( ) =
th e firs t s ta g e , w e h a v e g o(n -
1) =
yxx(n ~ \ ) .
A f t e r th e d e la y in
H e n ce , fo r n =
1, th e r a t io
. A t tim e n = 2 , th e in p u t to th e s e c o n d s ta g e
is, a c c o r d in g to ( 1 1 .2 .4 ) ,
/ ,( 2 ) = M 2 ) + K ^ g o G ) = y xx( 2 ) + K lY x x ( l )
a n d a f t e r th e u n it o f d e la y in th e s e c o n d s ta g e , w e h a v e
g,(l)
K * M l ) + g o ( 0 ) = K l y xx(1)
y ( 0 )
N o w th e r a t io f \ { 2 ) / g \ ( \ ) is
/ i(2 )
y xx(2) + K lY x x ( l )
si(l)
y x x(0) + ^ K ( l )
yxx(2) + K \ y xx{ \ )
e
= - k 2
H en ce
/i (2 ) + K i g \ ( \ ) =
51 (1 ) =
E{
B y c o n tin u in g in th is m a n n e r , w e c a n s h o w t h a t a t t h e in p u t t o th e m th l a t t i c e s ta g e ,
th e r a t io f m- \ ( m ) / g m- i ( m
1) = - K m a n d g m- i ( m
~ 1) = E }m_ v
C o n s e q u e n tly ,
th e la t t ic e f ilt e r c o e f f ic ie n ts o b ta in e d f r o m th e L e v in s o n a lg o r it h m a r e id e n tic a l
to t h e c o e f f i c i e n t s o b ta in e d in th e S c h u r a lg o r it h m . F u r t h e r m o r e , th e l a t t ic e filte r
872
Chap. 11
s tr u c tu r e p r o v id e s a m e t h o d f o r c o m p u tin g th e r e f le c t io n c o e f f i c i e n t s in th e la ttic e
p r e d ic to r .
Kung
K \ = yJ J :( l ) / K t j( 0 ) . T h e v a lu e o f K \ is s e n t s im u lta n e o u s ly to a ll th e P E s in th e
u p p e r b r a n c h a n d lo w e r b r a n c h .
T h e s e c o n d s te p in th e c o m p u ta tio n is to u p d a te th e c o n t e n t s o f a ll p r o c e s s in g
e le m e n ts s im u lta n e o u s ly . T h e c o n te n ts o f th e u p p e r a n d l o w e r P E s a r e u p d a te d
a s fo llo w s ;
P E A m: A m < A m + K i B m
m = 2 , 3 .......... p
P E B m: B m * B m + K \ A m
m = 1,2,.... p
T h e th ird s te p in v o lv e s th e s h iftin g o f th e c o n te n ts o f th e u p p e r P E s o n e
p la c e t o th e le ft. T h u s w e h a v e
P E A m\ A - i + - A m
m = 2 , 3 .......... p
B \ c o n ta in s y ( 0 ) +
K * y xx( \ ) . H e n c e th e p r o c e s s o r A \ is r e a d y t o b e g in th e s e c o n d c y c le b y c o m p u tin g
Figure 11.5 Pipelined parallel processor for computing the reflection coefficients
Sec. 11.4
873
th e s e c o n d r e f le c tio n c o e f f i c i e n t K
b e g in n in g w ith th e d iv is io n A \ / B \
-A \/B \.
T h e t h r e e c o m p u ta tio n a l s te p s
a r e c o m p u te d . N o te th a t P E B \ p r o v id e s th e m in im u m m e a n - s q u a r e e r r o r e L f o r
e a c h i te r a tio n .
I f t <j d e n o t e s th e tim e f o r P E A \ to p e r f o r m a ( c o m p l e x ) d iv is io n a n d rma
is th e tim e r e q u ir e d to p e r fo r m a ( c o m p le x ) m u ltip lic a tio n a n d an a d d itio n , th e
tim e r e q u ir e d t o c o m p u te a ll p r e fle c tio n c o e f f ic ie n ts is p (z^ + zma) f o r th e S c h u r
a lg o r ith m .
We
1 fo r all i .
T h is c o n d itio n a n d th e re la tio n
b e u se d to s h o w th a t th e z e r o s o f th e p r e d ic t io n - e r r o r
A A z ) = 1 + K i z -1
( 1 1 .4 .1 )
H e n c e z \ = K \ a n d e { = (1 - |K \ \ 2) E l > 0 . N o w , s u p p o s e th a t th e h y p o th e s is is
tr u e f o r p -
1. T h e n , i f n is a r o o t o f A p { z ) , w e h a v e f r o m ( 1 1 .2 .1 6 ) a n d ( 1 1 .2 .1 8 ) ,
A p (Zi) = A p - \ ( z i ) + K p z ~ l Bp
( 1 1 .4 .2 )
H en ce
z - pA ; _ x( i / z , )
Kp
A p ^ i (Zi )
Q U i)
( 1 1 .4 .3 )
W e n o t e th a t th e fu n c tio n Q( z) is a ll p a s s . In g e n e r a l, a n a ll-p a s s fu n c t io n o f th e
fo rm
p ( z ) = n ^
u *i< i
a i.4 .4 )
z + z*
s a tis f ie s th e p r o p e r ty th a t l ^ t e ) ) >
1 f o r [zl <
1, [/ (z )! =
1 f o r |z| =
1, a n d
874
O n th e o t h e r h a n d , s u p p o s e th a t
Chap. 11
= 0 . I n th is c a s e \ K p \ - = \
a n d \Q(Zi)\ = 1. S in c e th e M M S E is z e r o , th e r a n d o m p r o c e s s jr ( n ) is c a lle d p r e
d ic t a b le o r d e te rm in istic .
S p e c ific a lly , a p u r e ly s in u s o id a l r a n d o m p r o c e s s o f th e
fo rm
M
x ( n ) = 2 2 a ke jinoi*+et)
k=l
( 1 1 .4 .5 )
M
YxA m ) = 2 2 a h Jmwi
( H - 4 .6 )
*= i
a n d th e p o w e r d e n s ity s p e c tr u m
r xA f ) =
h = ?
- /*>
*= 1
(114-7)
Z7r
T h is p r o c e s s is p r e d ic t a b le w ith a p r e d ic t o r o f o r d e r p > M .
T o d e m o n s tr a t e th e v a lid ity o f th e s t a te m e n t, c o n s id e r p a s s in g th is p r o c e s s
th r o u g h a p r e d ic t io n e r r o r f ilt e r o f o r d e r p > M . T h e M S E a t th e o u tp u t o f th is
f ilte r is
M/2
/ =
r xA f ) \ A p ( f ) \ 2d f
J -\n
r 1/2 [
=
j-i/2
* (/ -/ *)
\A p{ f ) \ 2d f
( 1 1 .4 .8 )
= * 2i v / * ) i 2
k=i
B y c h o o s in g M o f t h e p z e r o s o f t h e p r e d ic t io n - e r r o r filte r t o c o in c id e w ith th e
fr e q u e n c ie s {/ * } , th e M S E / c a n b e fo r c e d to z e r o . T h e r e m a in in g p M z e r o s
c a n b e s e le c t e d a r b itr a r ily to b e a n y w h e r e in s id e th e u n it c ir c l e .
F in a lly , t h e r e a d e r c a n p r o v e t h a t i f a r a n d o m p r o c e s s c o n s is ts o f a m ix tu r e
o f a c o n tin u o u s p o w e r s p e c tr a l d e n s ity a n d a d is c r e te s p e c tr u m , th e p r e d ic t io n e r r o r filte r m u s t h a v e a ll its r o o t s in s id e th e u n it c ir c le .
The
s y s te m fu n c t io n f o r t h e b a c k w a r d p r e d ic t io n e r r o r f ilt e r o f o r d e r p is
B p (z) = z - pA ; ( z ~ 1)
( 1 1 .4 .9 )
C o n s e q u e n tly , th e r o o t s o f B p ( z ) a r e th e r e c ip r o c a ls o f th e r o o t s o f th e fo r w a rd
p r e d ic t io n - e r r o r f ilt e r w ith s y s te m fu n c t io n A p(z ).
H e n c e i f A p (z) is m in im u m
p h a s e , th e n B p (z) is m a x im u m p h a s e . H o w e v e r , i f th e p r o c e s s x ( ) is p r e d ic t a b le ,
a ll th e r o o t s o f B p ( z ) lie o n t h e u n it c ir c le .
Sec. 11.4
Whitening property.
875
S u p p o s e th a t th e ra n d o m p r o c e s s x(rt) is a n A R (p )
( 1 1 .4 .1 0 )
k= 1
T h e n th e p r e d i c t i o n - e r r o r f ilte r o f o r d e r p h a s th e s y s te m fu n c t io n
p
A p (z) 1 + 2 2 a p ( f t z ~ k
( 1 1 .4 .1 1 )
*= i
w h e r e th e p r e d ic t o r c o e f f ic ie n ts a p (k) = a
f ilte r is a w h ite n o is e s e q u e n c e { to (n ) }.
T h e r e s p o n s e o f th e p r e d i c t i o n - e r r o r
I n th is c a s e th e p r e d ic t io n - e r r o r f ilte r
A s th e o r d e r o f th e p r e d ic t o r is in c r e a s e d , th e p r e d ic t o r
o u tp u t x ( n ) b e c o m e s a c lo s e r a p p r o x im a tio n to x ( n ) a n d h e n c e th e d if f e r e n c e
f ( n ) = x ( n ) x ( n ) a p p r o a c h e s a w h ite n o is e s e q u e n c e .
T h e backw ard p re
d ic t io n e r r o r s { # ( ) ) fr o m d iff e r e n t s ta g e s in t h e F I R la t t i c e f ilte r a r e o r th o g o n a l.
T h a t is,
E [ g m(n )g i (n)] =
t m
, t i
( 1 1 .4 .1 2 )
E [g m (n )g/*(n )] = i > m ( * )
j =0
( 1 1 .4 .1 3 )
> ,* ( ;) [ * ( - k )x * (n - j ) ]
J= 0
i-0
b * a ) ] C bm ^
Yxx a ~ f t
B u t t h e n o r m a l e q u a tio n s f o r th e b a c k w a r d l in e a r p r e d ic t o r r e q u ir e th a t
> m (*)X U - *) =
k=0
f
[
m'
Jj Z 2 .......... m ~ 1
( 1 1 .4 .1 4 )
T h e re fo re ,
( 1 1 .4 .1 5 )
0 < I < m 1
876
Additional properties.
Chap. 11
T h e r e a r e a n u m b e r o f o t h e r in t e r e s t in g p r o p e r tie s
r e g a r d in g th e fo r w a rd a n d b a c k w a r d p r e d ic t io n e r r o r s in t h e F I R
la ttic e f ilte r .
T h e s e a r e g iv e n h e r e f o r r e a l-v a lu e d d a ta . T h e i r p r o o f is l e f t a s a n e x e r c is e f o r
th e re a d e r.
( a ) E [ f m(n )x (n - /')] = 0 ,
1 < i < m
( b ) E [ g m{n )x (n - /)] = 0 ,
0 < i < m -
( c ) [ / m( n ) x ( n ) ] = [ g m(n )jr (n - m )] = E m
( d ) E [ f i( n ) f j ( n ) ] = EtnajO 'i j )
(e ) E [ f ,( n ) f j{ n - f)] = 0 , fo r
( f ) E [ g i ( n)g j (n - 0 ] = 0 ,
for
>
i < j
J ^ J :
(g ) E [ M n + i ) f j ( n + j ) } = ^
) = j
J. + ^
! *
J.
* "
( j ) E [ f i( n ) g i { n - 1 )] = - K i + \ E i
( k ) [ g ,( r t - l ) jt ( n ) ] = E [ f j { n + 1 )jc(u -
j \ +l(
1 )] = - * , + ] ,
l a t t i c e t o lin e a r
p r e d ic t io n . T h e lin e a r p r e d i c t o r w ith t r a n s f e r f u n c t io n ,
p
A P(z) = 1 + ' ^ a p ( k) z ~ k
( 1 1 .5 .1 )
*= l
w h e n e x c ite d b y a n in p u t ra n d o m p r o c e s s {jc ( n ) } , p r o d u c e s a n o u tp u t th a t a p
p r o a c h e s a w h ite n o is e s e q u e n c e a s p -> o o.
O n th e o t h e r h a n d , i f th e in p u t
1 / A p (z),
p rocess.
c a lle d th e A R
l a t t ic e , a n d th e l a t t i c e - l a d d e r s tr u c tu r e f o r a n A R M A
Sec. 11.5
877
H ( z ) = --------- j l -------------
( 1 1 .5 .2 )
i= l
T h e d if f e r e n c e e q u a tio n f o r th is I I R s y s te m is
y(n) = - ^ P p ( ) y ( n - k ) + x ( n )
( 1 1 .5 .3 )
k= l
N o w s u p p o s e t h a t w e in te r c h a n g e th e r o le s o f t h e in p u t a n d o u tp u t [ i.e ., i n t e r
c h a n g e x (n ) w ith y ( n ) in ( 1 1 .5 .3 ) ] o b ta in in g th e d i f f e r e n c e e q u a tio n
~ft +
*(n) = k= 1
o r, e q u iv a le n tly ,
p
v ( ) = *(/?) + 2 2 , a p ( f t x (n ~ f t
*= i
( 1 1 .5 .4 )
W e o b s e r v e th a t ( 1 1 .5 .4 ) is a d if f e r e n c e e q u a tio n f o r an F I R s y s te m w ith
s y s te m fu n c t io n A p(z ).
T h u s a n a ll-p o le I I R s y s te m c a n b e c o n v e r te d to an a ll
z e r o s y s te m b y in te r c h a n g in g th e r o le s o f th e in p u t a n d o u tp u t.
B a s e d o n th is o b s e r v a t io n , w e c a n o b ta in th e s tr u c tu r e o f a n A R { p ) la ttic e
f r o m a M A ( p ) la t t ic e b y in te r c h a n g in g t h e in p u t w ith th e o u tp u t. S in c e th e M A ( p )
l a t t i c e h a s v (n ) = f P (n) as its o u tp u t a n d x ( n ) = / o(n ) is t h e in p u t, w e le t
x { n ) = f p {n)
( 1 1 .5 .5 )
y (n ) =
fo (n )
f m~ \( n ) -
f m{n) - K mg m- } (n - 1 )
m = p , p - 1 .......... 1
T h e e q u a tio n f o r g m(n) r e m a in s u n c h a n g e d . T h e r e s u lt o f th e s e c h a n g e s is th e s e t
o f e q u a tio n s
*(n ) =
f p (n)
f m- i ( n ) = f m(n) - K mg m- i ( n - 1)
(1 1 .5 .6 )
gm(n) =
y(n) = M n ) = gain)
T h e c o r r e s p o n d in g s tr u c tu r e f o r t h e A R ( p ) l a t t i c e is s h o w n in F ig . 1 1 .6 . N o te th a t
th e a ll-p o le la t t ic e s tr u c tu r e h a s a n a ll-z e r o p a th w ith in p u t g o ( ) a n d o u tp u t g p(n ),
878
Chap. 11
T h is is n o t
c 9(*)z _*
H ( z ) = ------------------- =
,
v -
( 1 1 .5 .7 )
A p {z)
*= i
W ith o u t lo s s o f g e n e r a lity , w e a s s u m e th a t p > q.
T h is s y s te m is d e s c r ib e d b y th e d if f e r e n c e e q u a tio n s
v (n ) = - ' ^ T a p (k )v (n - k) + x (n )
k= 1
<7
y (n ) =
( 1 1 .5 .8 )
J 2 c ^ ( f t v (n
o b ta in e d b y v ie w in g th e s y s te m a s a c a s c a d e o f a n a ll-p o le s y s t e m f o llo w e d b y a n
a ll- z e r o s y s te m . F r o m ( 1 1 .5 .8 ) w e o b s e r v e th a t th e o u tp u t y ( n ) is s im p ly a lin e a r
c o m b in a tio n o f d e la y e d o u tp u ts fr o m th e a ll- p o le s y s te m .
S in c e z e r o s r e s u lt fr o m fo r m in g a lin e a r c o m b in a tio n o f p r e v io u s o u tp u ts , w e
c a n c a r r y o v e r th is o b s e r v a t io n t o c o n s t r u c t a p o l e - z e r o s y s t e m u s in g t h e a ll- p o le
Sec. 11.5
879
l a t t ic e s t r u c tu r e a s th e b a s ic b u ild in g b lo c k . W e h a v e c le a r ly o b s e r v e d th a t gm(n)
in th e a ll-p o le l a t t ic e c a n b e e x p r e s s e d a s a lin e a r c o m b in a tio n o f p r e s e n t a n d p a s t
o u tp u ts . In f a c t , th e s y s te m
( 1 1 .5 .9 )
is a n a ll-z e r o s y s te m .
a ll- z e r o f ilte r .
L e t u s b e g in w ith a n a ll- p o le l a t t ic e filte r w ith c o e f f ic i e n t s K m, 1 < m < p ,
a n d a d d a la d d e r p a r t by ta k in g a s th e o u tp u t, a w e ig h te d l i n e a r c o m b in a tio n o f
{ m (n )}. T h e r e s u lt is a p o l e - z e r o filte r t h a t h a s th e la t t ic e -la d d e r s t r u c tu r e s h o w n
in F ig . 1 1 .7 . I t s o u tp u t is
v (n ) = 2 2 p k g k ( n )
( 1 1 .5 .1 0 )
w h e r e { / y a r e th e p a r a m e te r s th a t d e te r m in e th e z e r o s o f th e s y s te m . T h e s y s te m
fu n c tio n c o r r e s p o n d in g t o ( 1 1 .5 .1 0 ) is
( 1 1 .5 .1 1 )
Inpul
x(n)
fp -iW
fp-M )
/>()
f iW
/o(")
Stage
Stage
8P- ()_
Stage
gP- 2< )
P~ 1
o(n)
|( )
'p
O utput
(a) P o le -z e ro system
f m - 1<")
.-I
(b)
m1*1stage of lattice
880
Chap. 11
S in c e X ( z ) = F p (z) a n d F q ( z ) = G o (z ), ( 1 1 .5 .1 1 ) , c a n b e e x p r e s s e d a s
G t i z ) F o (z)
-2 P*
k= 0
G0(z) Fp{z)
( 1 1 .5 .1 2 )
a p (z) *=o
T h e re fo re ,
<?
C 9 (z) = f t * ( z )
t=o
( 1 1 .5 .1 3 )
B y m e a n s o f th e
s te p -d o w n r e c u r s iv e r e la tio n g iv e n b y ( 1 1 .2 .2 2 ) , w e a ls o o b t a i n th e p o ly n o m ia ls
B k ( z ) , k = 1 , 2 , . . . , p . T h e n th e la d d e r p a r a m e t e r s c a n b e o b t a i n e d f r o m ( 1 1 .5 .1 3 ) ,
w h ic h c a n b e e x p r e s s e d as
m -1
C , (z ) = ^
to
P k B k iz ) + fimB m(z)
( 1 1 .5 .1 4 )
= C m- i ( z ) + fimB m(z)
o r , e q u iv a le n tly ,
C m- i ( z ) = C m(z) - P mB m{z)
m = p, p - 1 , . . . , 1
( 1 1 .5 .1 5 )
B y ru n n in g th is r e c u r s iv e r e la tio n b a c k w a r d , w e c a n g e n e r a t e a ll th e lo w e r - d e g r e e
p o ly n o m ia ls , C m( z ), m =
d e te r m in e d fr o m ( 1 1 .5 .1 5 ) b y s e tt in g
p m = c m(m )
m = p , p - 1 ------, 1 , 0
W h e n e x c ite d b y a w h ite n o is e s e q u e n c e , th is la t t i c e - l a d d e r f i l t e r s tr u c tu r e
g e n e r a t e s a n A R M A ( p , ^ ) p r o c e s s th a t h a s a p o w e r d e n s ity s p e c tr u m
\C q( f ) \
IV / ) l
a n d a n a u t o c o r r e la tio n fu n c t io n th a t s a tis fie s ( 1 1 .1 .1 8 ) , w h e r e a 2 in th e v a ria n c e
o f t h e in p u t w h ite n o is e s e q u e n c e .
Sec. 11.6
881
d (n )
----------- t { + )-------<()
Figure l l j t
problem
c o m p o n e n t.
In s u c h a c a s e , th e o b je c t i v e is t o d e s ig n a s y s te m t h a t f ilte r s o u t
th e a d d itiv e in t e r f e r e n c e w h ile p r e s e r v in g th e c h a r a c t e r is t ic s o f th e d e s ir e d s ig n a l
{* ( )}
In th is s e c t io n w e t r e a t th e p r o b le m o f s ig n a l e s tim a tio n in th e p r e s e n c e o f
a n a d d itiv e n o is e d is tu r b a n c e .
T h e e s tim a to r is c o n s t r a in e d to b e a li n e a r f ilte r
p r o b le m .
T h e in p u t s e q u e n c e t o th e f ilte r is x ( n ) = s ( n ) + w (n ), a n d its o u tp u t s e q u e n c e
is v (n ). T h e d iffe r e n c e b e tw e e n t h e d e s ir e d s ig n a l a n d th e filte r o u tp u t is th e e r r o r
s e q u e n c e e(n ) = d (n ) y (n ) .
W e d is tin g u is h t h r e e s p e c ia l c a s e s :
1 . I f d {n ) = s ( n ) , th e lin e a r e s tim a tio n p r o b le m is r e f e r r e d to as, filte rin g .
2 . I f d (n ) = s {n + D ), w h e r e D > 0 , th e li n e a r e s tim a tio n p r o b le m is r e f e r r e d to
a s s ig n a l p re d ic t io n . N o te t h a t th is p r o b le m is d if f e r e n t th a n th e p r e d ic tio n
c o n s id e r e d e a r l i e r in th is c h a p te r , w h e r e d {n ) = x i n + D ) , D > 0 .
3 . I f d {n ) s ( n D ) , w h e r e D > 0 , th e li n e a r e s tim a tio n p r o b le m is r e f e r r e d
t o a s s ig n a l s m o o th in g .
O u r tr e a t m e n t w ill c o n c e n t r a t e o n filte r in g a n d p r e d ic t io n .
T h e c r ite r io n s e le c te d f o r o p tim iz in g t h e - f i l t e r im p u ls e r e s p o n s e {/t(n)} is
th e m in im iz a t io n o f th e m e a n -s q u a r e e r r o r . T h is c r it e r i o n h a s th e a d v a n ta g e s o f
s im p lic ity a n d m a th e m a tic a l tr a c ta b ility .
T h e b a s ic a s s u m p tio n s a r e t h a t th e s e q u e n c e s { $ ( ) } , {
a n d {/(n)} a r e
k <
M - l ) .
882
Chap. 11
x (n 1 ) , , x (n M + 1 ),
Af -1
h ( k )x (n - k)
y (n ) =
( 1 1 .6 .1 )
t=o
T h e m e a n -s q u a r e v a lu e o f th e e r r o r b e tw e e n th e d e s ir e d o u tp u t d ( n ) a n d y in ) is
Z M = E \e { n ) \2
^
=
d (n ) -
( 1 1 .6 .2 )
h ( k ) x ( n k)
k =o
S in c e th is is a q u a d r a tic f u n c t io n o f th e filte r c o e f f ic ie n t s , th e m in im iz a t io n o f u
y ie ld s th e s e t o f lin e a r e q u a tio n s
M -l
5 > ( * W
*=o
/ = 0 , 1 .......... M
/ - ) = ^ ,(/ )
- l
( 1 1 .6 .3 )
w h e r e yxx(k) is th e a u t o c o r r e l a t io n o f th e in p u t s e q u e n c e { * ( ) } a n d ydx(k) =
E [ d ( n ) x * ( n fc)] is th e c r o s s c o r r e l a t i o n b e tw e e n th e d e s ir e d s e q u e n c e [d (n )} a n d
th e in p u t s e q u e n c e { x {n ), 0 < n < M 1 ). T h e s e t o f lin e a r e q u a t i o n s th a t s p e c ify
th e o p tim u m filte r is c a lle d th e W ie n e r - H o p f e q u a tio n . T h e s e e q u a tio n s a r e a ls o
c a lle d th e n o r m a l e q u a tio n s , e n c o u n te r e d e a r l ie r in th e c h a p t e r in th e c o n t e x t o f
lin e a r o n e - s te p p r e d ic t io n .
In g e n e r a l, th e e q u a tio n s in ( 1 1 .6 .3 ) c a n b e e x p r e s s e d in m a tr ix f o r m a s
r wh = y d
w h ere r
( 1 1 .6 .4 )
a n d y d is th e M x 1 c r o s s c o r r e l a t io n v e c t o r w ith e l e m e n t s Yd x(0 , i = 0 , 1 , . . . , M - \ .
T h e s o lu tio n f o r th e o p tim u m f ilte r c o e f f ic ie n ts is
hopt = Y M y d
( 1 1 .6 .5 )
a n d th e r e s u ltin g m in im u m M S E a c h ie v e d b y th e W i e n e r f ilte r is
M -l
M M S E M = m in M = a 2d h
^opt( * ) ? ( )
( 1 1 .6 .6 )
o r , e q u iv a le n tly ,
M M S E M = a 2 - y J T ^ y d
( 1 1 .6 .7 )
w h ere a j = E \d ( n ) \2 .
L e t us c o n s id e r s o m e s p e c ia l c a s e s o f ( 1 1 .6 .3 ) . I f w e a r e d e a lin g w ith filte rin g ,
t h e d (n ) = s ( n ) . F u r t h e r m o r e , i f s ( n ) a n d w (n ) a r e u n c o r r e la te d r a n d o m s e q u e n c e s ,
a s is u s u a lly th e c a s e in p r a c t ic e , th e n
Yxx(k) =
y ss(k) + Yww(k)
Ydx(k)
Yss(k)
(11.6.8)
Sec. 11.6
883
a n d th e n o r m a l e q u a tio n s in ( 1 1 .6 .3 ) b e c o m e
M -l
Y , W
) M
- V
+ Y w w V - k ) ] = y ss(l)
1 = 0 , 1 .......... M
-l
( 1 1 .6 .9 )
i= 0
I f w e a r e d e a lin g w ith p r e d ic t io n , th e n d (n ) = s (n + D ) w h e r e D
> 0. A s
s u m in g th a t s ( n ) a n d w (n ) a r e u n c o r r e la te d ra n d o m s e q u e n c e s , w e h a v e
Y d ,(k ) = y ss(l + D )
( 1 1 .6 .1 0 )
H e n c e th e e q u a tio n s f o r th e W ie n e r p r e d ic t io n f ilt e r b e c o m e
M-l
* ( * ) [ y ( / - * ) + yv.tt. ( / - * ) ] = y</ + z>)
i= 0
/= 0,1...., w - l
( 1 1 .6 .1 1 )
In all th e s e c a s e s , th e c o r r e la t io n m a tr ix t o b e in v e r t e d is T o e p lit z . H e n c e th e
( g e n e r a liz e d ) L e v in s o n - D u r b in a lg o r ith m m a y b e u s e d to s o lv e f o r th e o p tim u m
f ilte r c o e ffic ie n ts .
Example 11.6.1
Lei us consider a signal x( n) = j(n) + w(n), where s(n) is an AR(1) process that
satisfies the difference equation
s(n ) = 0.6.v(n 1) + u(n)
where lu(n)l is a white noise sequence with variance <tl2 = 0.64, and (u>(n)) is a white
noise sequence with variance en = 1. We will design a Wiener filter of length M = 2
to estimate (j(h)}.
Solution Since (j(n)) is obtained by exciting a single-pole filter by white noise, the
power spectra! density of
is
r ( / ) = < r ;\H { f ) \2
0.64
|1 0.6e~-i*nf \ 2'
0.64
1.36 1.2cos2jt/
The corresponding autocorrelation sequence (y(m)} is
Y,Am ) = (0.6)|m|
h(0) = 0.451
h(l) = 0.165
884
Chap. 11
E \e ( n ) x * ( n /)] = 0
/ = 0 , 1 .......... M 1
( 11.6 .12)
h ( k ) x ( n k)
( 1 1 .6 .1 3 )
w h ere
M -l
e (n ) = d (n )
i =o
d (n )
h (k )x (n k)
(1 1 .6 .1 4 )
*=o
is a v e c to r in th e s u b s p a c e s p a n n e d b y th e d a ta { * ( & ) , 0 < k < M 1 }. T h e e r r o r
E M / i) !2 is a m in im u m
w h e n e (n ) is p e r p e n d ic u la r t o th e d a ta s u b s p a c e [ i.e ., e(rt) is o r th o g o n a l to e a c h
d a ta p o in t x ( k ) , 0 < k < M 1 ],
W e n o te t h a t th e s o lu tio n o b t a in e d fr o m th e n o r m a l e q u a t i o n s in ( 1 1 .6 .3 )
is u n iq u e i f th e d a ta { * ( ) } in th e e s t im a t e d (n ) a r e lin e a r ly in d e p e n d e n t. In th is
c a s e , th e c o r r e la t io n m a tr ix
is n o n s in g u la r . O n th e o t h e r h a n d , i f th e d a ta a r e
lin e a r ly d e p e n d e n t, th e r a n k o f T M is le s s th a n M a n d t h e r e f o r e th e s o lu tio n is n o t
u n iq u e . In th is c a s e , th e e s t im a t e d ( n ) c a n b e e x p r e s s e d a s a lin e a r c o m b in a tio n
o f a r e d u c e d s e t o f lin e a r ly in d e p e n d e n t d a ta p o in t s e q u a l to th e r a n k o f T w .
S in c e th e M S E is m in im iz e d b y s e le c tin g t h e f ilte r c o e f f i c i e n t s to s a tis fy th e
o r th o g o n a lity p r in c ip le , th e r e s id u a l m in im u m M S E is s im p ly
MMSE*f = E[e(n)d*()]
(11.6.15)
Sec. 11.6
885
Figure 11.9
Geometric interpretation
of linear M S E problem
( 11 .6 . 16 )
y ( ) = / 2 ( ) * ( n - k)
T h e f ilt e r c o e f f ic ie n ts a r e s e le c te d to m in im iz e th e m e a n -s q u a r e e r r o r b e tw e e n th e
d e s ir e d o u tp u t d (n ) a n d v ( n ). th a t is,
x =
E \ e { n ) \2
( 1 1 .6 .1 7 )
tion.
( 1 1 .6 .1 8 )
T h e r e s id u a l M M S E is s im p ly o b t a in e d b y a p p lic a t io n o f th e c o n d itio n g iv e n b y
( 1 1 .6 .1 5 ) . T h u s w e o b ta in
M M S E s c = m in ^
= aj -
f c opt ( * ) > ( )
( 1 1 .6 .1 9 )
886
Chap. 11
( 1 1 .6 .2 0 )
<?(*)/( - k)
j( n ) =
( 1 1 ,6 .2 1 )
*=o
a n d e(rt) = d { n ) > ( n ), a p p lic a t io n o f th e o r th o g o n a lity p r in c ip le y ie ld s th e n e w
W i e n e r - H o p f e q u a tio n as
OC
22<}(k'>y"V - k ) = ydi(D
/>
( 11.6. 22)
Yd, (I)
Ydi(0
q d ) = ZZLLL =
/> 0
( 1 1 .6 .2 3 )
Ya(0)
T h e z - tr a n s f o r m o f t h e s e q u e n c e l g ( i ) } is
Q iz ) = Y l q ( k ) z ~ k
k0
=
Y lr d i( lc ) z ~ k
a <
t=o
( 1 1 .6 .2 4 )
r di( z ) =
Y i
W *( * ) * *
( 1 1 .6 .2 5 )
* = -0 0
a n d d e fin e [r\/,-(z)]+ a s
[ I \ ,,( z ) ] + = 2 2 Y * W z ~ k
*=o
( 1 1 .6 .2 6 )
Q iz ) = ~ [ r d iiz ) ) +
of
( 1 1 .6 .2 7 )
then
Sec. 11.6
887
i{ n ) = ^
v ( );c (n k)
( 1 1 .6 .2 8 )
*=o
w h e r e (u (Jt), k > 0 } is t h e im p u ls e r e s p o n s e o f th e n o is e -w h it e n in g filte r ,
( 1 1 .6 .2 9 )
Then
Yd i{k) = E [ r f ( n ) i * ( n - * ) ]
OC
2 2 v ( m ) E [ d { n ) x * ( n m Jt)]
22 v (m ')ydAk
( 1 1 .6 .3 0 )
+m )
m=0
T h e z - tr a n s fo r m o f th e c r o s s c o r r e la tio n Y d iik ) is
oc
r ji( z ) =
2 2
oc
' Y 2 v ^ Y d x { k + m)
k=oo m=0
=
u ( m ) 2 2 Y d x (k + m )z~
m=0
*= -o c
oc
( 1 1 .6 .3 1 )
oc
u (m )z m 2 2
V iz -'W iA z ) =
Y * * (k )z~ k
r dx(z)
G i z - 1)
T h e re fo re ,
Q iz ) = A
r^ (z ) I
( 1 1 .6 .3 2 )
H op\ iz ) =
Q iz )
G iz )
( 1 1 .6 .3 3 )
(z ) t o o b ta in G i z ) , th e m in im u m -p h a s e
c o m p o n e n t , a n d th e n w e s o lv e f o r th e c a u s a l p a r t o f T dxi z ) / G i z ~ 1 ). T h e f o llo w in g
e x a m p le illu s tr a te s th e p r o c e d u r e .
888
Chap. 11
Example 11.6.2
L e t us d eterm in e the optim um I I R W ien e r filter fo r th e signal given in E x a m p le 11.6.1.
Solution
r ^ ) - r w
w here a f = 1.8 and
1 - |z-1
ca) = rro fe ^
T h e z-transform o f th e crossco rrelation ydx (m ) is
0 .6 4
r dJ(z) = r ( z )
H en ce
(1 - 0 . 6 z " > ) ( l - 0 . 6 z )
rr^a)! =r__
Lg(z-)J+ L a - 1
0 .64
z X l - 0 . 6 ; - 1)
0.8
[ 1 - 0.6z~'
0 .2 6 6 ;
i _ i zj
0.8
1 - 0 .6 z - ]
T h e optim um I I R filter has th e system function
1
/ l-0.6r'\
H-'w = r8(TTTFrj(rro^j
0. 8
5( j ) "
n >
W e c o n c lu d e th is s e c t io n b y e x p r e s s in g th e m in im u m M S E g iv e n b y ( 1 1 .6 .1 9 )
in te r m s o f th e f r e q u e n c y -d o m a in c h a r a c te r is tic s o f th e filte r . F i r s t , w e n o t e th a t
a j = E\ d{ n) \ 2 is s im p ly th e v a lu e o f th e a u t o c o r r e l a t i o n s e q u e n c e \ydd(k)} e v a lu
a te d a t it = 0. S in c e
Vdd(k) = ^ y ^ r ^ ( z ) z * ^ z
( 1 1 .6 .3 4 )
it fo llo w s th a t
a ] = ydd(0 ) =
( 1 1 .6 .3 5 )
w h e r e t h e c o n t o u r in te g r a l is e v a lu a te d a lo n g a c lo s e d p a th e n c i r c l i n g th e o rig in
in th e r e g io n o f c o n v e r g e n c e o f
Sec. 11.6
889
T h e s e c o n d te r m in ( 1 1 .6 .1 9 ) is a ls o e a s ily tr a n s f o r m e d t o t h e f r e q u e n c y
d o m a in b y a p p lic a t io n o f P a r s e v a ls t h e o r e m . S in c e h opl( k ) = 0 f o r k < 0 , w e h a v e
^ S fio p d z W .A z - ^ d z
fto p ,( * ) } ( * ) =
cc
( 1 1 .6 .3 6 )
J *
r dx(z~l).
r e g io n o f c o n v e r g e n c e o f / / optU ) a n d
B y c o m b in in g ( 1 1 .6 .3 5 ) w ith ( 1 1 .6 .3 6 ) , w e o b ta in th e d e s ir e d e x p r e s s io n f o r
th e M M S E c c in th e fo r m
M M S E ^ = ~ < ^ [ r dd(z) -
H opd z W dA z - l ) ] z - l d z
( 1 1 .6 .3 7 )
E x a m p le 1 1 .6 3
For the optimum Wiener filter derived in Example 11.6.2, the minimum MSE is
m m sem =
i fi r
2 x iJ f
o 35ss
-J)(l-0.fe)J
There is a single pole inside the unit circle at z = j. By evaluating the residue at the
pole, we obtain
MMSE^ - 0.444
We observe that this MMSE is only slightly smaller than that for the optimum two-tap
Wiener filter in Example ] 1.6.1.
2 2
h ( k ) x (n k)
( 1 1 .6 .3 8 )
oc
2 2
k=oc
- k ) = y dx( l )
- oo < I <
00
( 1 1 .6 .3 9 )
a n d t h e r e s u ltin g M M S E nf as
OO
M M S E nc =
22
Jt=-00
h (* ) r lc ^
d 1 -6 -4 )
890
Chap. 11
I jrjrv)
( 1 1 .6 .4 1 )
T h e M M S E ( c a n a ls o b e s im p ly e x p r e s s e d in t h e z -d o m a in a s
M M S E nf = J - ^ [ r dd(z) -
H nc( z ) r dA t - l ) ] z - l d z
( 1 1 .6 .4 2 )
Example 11.6.4
The optimum noncausal Wiener filter for the signal characteristics given in Exam
ple 11.6.1 is given by (11.6.41), where
0.64
r^ a> F-"(
(1 - 0 .6 ; - )(l -0.6c)
and
r ( s ) = r (;) + l
2(1 - 0 .3 --1 - 0.3;)
(1 - 0 . 6 - - ' )(1 - 0.6c)
Then.
0.3555
H ", U ~ ( l - i c - ' K l - i c )
The only pole inside the unit circle is c = |. Hence the residue is
0.35551
0.3555
= 0.40
Hence the minimum achievable MSE obtained with the optimum noncausal Wiener
filter is
MMSEnr = 0.40
Note that this is lower than the MMSE for the causal filler, as expected.
o f th e m e a n -s q u a r e e r r o r b e t w e e n a s p e c ifie d d e s ir e d f ilt e r o u tp u t a n d t h e a c tu a l
f ilte r o u tp u t.
Sec. 11.7
891
I n th e d e v e lo p m e n t o f lin e a r p r e d ic t io n , w e d e m o n s tr a t e d th a t th e e q u a tio n s
f o r th e fo r w a r d a n d b a c k w a r d p r e d ic t io n e r r o r s s p e c ifie d a la ttic e f ilte r w h o s e
p a r a m e te r s , th e r e fle c tio n c o e f fic ie n ts [ K m), w e r e s im p ly r e la te d to th e f ilte r c o e f
fic ie n ts (a m(A:)} o f t h e d ir e c t fo r m F I R lin e a r p r e d ic t o r a n d th e a s s o c ia t e d p r e d ic t io n
e r r o r filte r . T h e o p tim u m f ilte r c o e f f ic ie n ts { K m) a n d (a m( ) } a r e e a s ily o b ta in e d
f r o m th e s o lu tio n o f th e n o r m a l e q u a tio n s .
W e d e s c r ib e d tw o c o m p u ta tio n a lly e ff ic ie n t a lg o r it h m s f o r s o lv in g th e n o r m a l
e q u a tio n s , th e L e v in s o n - D u r b in a lg o r ith m a n d th e S c h u r a lg o r it h m .
B o t h a lg o
H ow
T h e g e n e r a liz a tio n o f
th e W i e n e r filte r t h e o r y t o d y n a m ic a l s y s te m s w ith ra n d o m in p u ts w a s d e v e lo p e d
b y K a lm a n ( 1 9 6 0 ) a n d K a lm a n a n d B u c y ( 1 9 6 1 ) .
K a lm a n filte r s a r e tr e a t e d in
th e b o o k s b y M e d itc h ( 1 9 6 9 ) , B r o w n ( 1 9 8 3 ) , a n d C h u i a n d C h e n ( 1 9 8 7 ) .
The
m o n o g r a p h b y K a ila t h ( 1 9 8 1 ) tr e a ts b o th W i e n e r a n d K a lm a n f ilte r s .
T h e r e a r e n u m e r o u s r e f e r e n c e s o n lin e a r p r e d ic t io n a n d la ttic e f ilte r s .
Tu
t o r ia l t r e a t m e n t s o n t h e s e s u b je c t s h a v e b e e n p u b lis h e d in th e jo u r n a l p a p e r s b y
M a k h o u l ( 1 9 7 5 , 1 9 7 8 ) a n d F r ie d la n d e r (1 9 8 2 a , b ) . T h e b o o k s b y H a y k in ( 1 9 9 1 ) ,
M a r k e l a n d G r a y 1 9 7 6 ) , a n d T r e t t e r ( 1 9 7 6 ) p r o v id e c o m p r e h e n s iv e tr e a t m e n t s o f
th e s e s u b je c t s . A p p lic a tio n s o f li n e a r p r e d ic t io n t o s p e c tr a l a n a ly s is a r e fo u n d in
th e b o o k s b y K a y ( 1 9 8 8 ) an d M a r p le ( 1 9 8 7 ) , to g e o p h y s ic s in th e b o o k R o b in s o n
a n d T r e i t e l ( 1 9 8 0 ) , a n d to a d a p tiv e filte r in g in th e b o o k b y H a y k in ( 1 9 9 1 ) .
T h e L e v in s o n - D u r b in a lg o r ith m f o r s o lv in g th e n o r m a l e q u a tio n s r e c u r s iv e ly
w a s g iv e n b y L e v in s o n ( 1 9 4 7 ) a n d la t e r m o d ifie d b y D u r b in ( 1 9 5 9 ) .
V a r ia t io n s
o f th is c la s s ic a l a lg o r it h m , c a lle d s p lit L e in s o n a lg o r it h m s , h a v e b e e n d e v e lo p e d
b y D e l s a r t e a n d G e n i n ( 1 9 8 6 ) a n d b y K r is h n a ( 1 9 8 8 ) .
T h e s e a lg o r it h m s e x p lo it
a d d itio n a l s y m m e tr ie s in th e T o e p l it z c o r r e la tio n m a tr ix a n d s a v e a b o u t a f a c t o r
o f 2 in th e n u m b e r o f m u ltip lic a tio n s .
T h e S c h u r a lg o r it h m w as o r ig in a lly d e s c r ib e d b y S c h u r ( 1 9 1 7 ) in a p a p e r
p u b lis h e d in G e r m a n .
A n E n g lis h tr a n s la tio n o f th is p a p e r a p p e a r s in th e b o o k
w h ich c a n b e i n te r p r e te d a s o r th o g o n a l p o ly n o m ia ls . A t r e a t m e n t
o f o r t h o g o n a l p o ly n o m ia ls is g iv e n in th e b o o k s b y S z e g o ( 1 9 6 7 ) , G r e n a n d e r a n d
S z e g o ( 1 9 5 8 ) , a n d G e r o n im u s ( 1 9 5 8 ) . T h e th e s is o f V i e i r a ( 1 9 7 7 ) a n d th e p a p e r s
b y K a ila t h e t a l. ( 1 9 7 8 ) , D e l s a r t e e t a l. ( 1 9 7 8 ) , a n d Y o u l a a n d K a z a n jia n ( 1 9 7 8 )
892
p r o v id e a d d itio n a l re s u lts o n o r th o g o n a l p o ly n o m ia ls .
Chap. 11
K a il a t h ( 1 9 8 5 , 1 9 8 6 ) p r o
v id e s t u t o r ia l t r e a t m e n t s o f th e S c h u r a lg o r it h m a n d its r e la tio n s h ip to o r th o g o n a l
p o ly n o m ia ls a n d t h e L e v in s o n - D u r b in a lg o r ith m . T h e p ip e lin e d p a r a lle l p r o c e s s
in g s tr u c tu r e f o r c o m p u tin g t h e r e fle c tio n c o e f f ic ie n t s b a s e d o n t h e S c h u r a lg o r ith m
a n d th e r e la te d p r o b le m o f s o lv in g T o e p l it z s y s te m s o f lin e a r e q u a t i o n s is d e s c r ib e d
in th e p a p e r b y K u n g a n d H u ( 1 9 8 3 ) . F in a lly , w e s h o u ld m e n t i o n t h a t s o m e a d
d itio n a l c o m p u ta tio n a l e f fic ie n c y c a n b e a c h ie v e d in th e S c h u r a lg o r it h m , b y fu r
t h e r e x p lo itin g s y m m e tr y p r o p e r tie s o f T o e p l it z m a t r ic e s , a s d e s c r i b e d b y K r is h n a
( 1 9 8 8 ) . T h is le a d s t o t h e s o -c a lle d s p lit- S c h iir a lg o r it h m , w h ic h is a n a lo g o u s to th e
s p lit- L e v in s o n a lg o r ith m .
PROBLEMS
11.1 T h e pow er density spectrum o f an A R process [x (n )) is given as
r jr M
g- |A{oj)|2
25
|1 - e~>w + i e - J '2" ! 2
(a)
D ete rm in e th e filter H ( z ) for g en eratin g (x (n )) fro m a w hite n o ise input seq uen ce.
Is H ( z ) un iqu e? E xp lain .
(b)
x(n ) = 1.6x(n 1) 0 .6 3 * ( - 2) +
(a)
(b)
+ 0.9w (n - 1)
D eterm in e th e system fun ction o f th e w hitening filter and its p o les and zeros.
D ete rm in e th e pow er density spectrum o f {jc(n )}.
11.4 D ete rm in e the lattice coefficien ts correspond ing to th e F I R filter w ith system function
Chap. 11
893
Problems
1 1 .6 (a) D ete rm in e the zeros and sk etch the zero p attern fo r the F I R la ttice filter with
reflectio n co efficien ts
Ki = \
K2 = - \
*3 = 1
r mb m
w here cm is an arb itrary v ector. (T h e v ecto r bm is n ot related to th e coefficien ts o f
th e backw ard p red icto r.) Show th at th e solu tion to r mb = c can b e obtain ed from
a generalized L e v in s o n -D u rb in algorithm which is given recursively as
bm(k) =
'" "
m = 1 ,2 ........p
894
Chap. 11
1 1 .1 9 D ete rm in e th e output o f an in finite-len gth (p = oo) m -step forw ard p red ictor and
th e resulting m ean -squ are e rro r w hen th e input signal is a first-o rd er autoregressive
process o f the form
1 L 2 2 D eterm in e th e system fun ction o f th e all-p ole filter d escrib ed by th e la ttice co efficien ts
J fi = 0.6, K 2 = 0 .3 , K } = 0 .5 , and K A = 0.9.
Chap. 11
895
Problems
11.23 Determine the parameters and sketch the lattice-ladder filter structure for the system
with system function
H{Z)
11.24 Consider a signal
jc ( )
1 + 0 .1 ;- i- 0 .7 2 ;- 2
where {u(n)) is a white noise sequence with variance er2 = 0.49 and {w(n)) is a
white noise sequence with variance er2 = 1. The processes {t>{n)) and {u)(n)J are
uncorrelated.
(a) Determine the autocorrelation sequences {y(m)) and {yXJ(m)].
( b ) Design a Wiener filter of length M = 2 to estimate |j{n)}.
(c) Determine the MMSE for M = 2.
11.25 Determine the optimum causal IIR Wiener filter for the signal given in Problem 11.24
and the corresponding MMSE^.
11.26 Determine ihe system function for the noncausal IIR Wiener filter for the signal given
in Problem 11.24 and the corresponding MMSEnr.
11.27 Determine the optimum FIR Wiener filter of length M 3 for the signal in Ex
ample 11.6.1 and the corresponding MMSEj. Compare MMSEj with MMSEi and
comment on the difference.
11.28 An AR(2) process is defined by the difference equation
= x(n 1) 0.6jr(n 2) + u>(ri)
where {u>(n)} is a white noise process with variance <t2, Use the Yule-Walker equa
tions to solve for the values of the autocorrelation y(0), ^ x(l). and yxx(2).
11.29 An observed random process (*()) consists of the sum of an AR{j>) process of the
form
p
and a white noise process {u>{n)} with variance tr2. The random process {u()} is also
white with variance er2. The sequences {u(n)} and fio(n)} are uncorrelated.
Show that the observed process
= j() + u>()} is ARM A(p, p) and de
termine the coefficients of the numerator polynomial (MA component) in the corre
sponding system function.
a 12
F o r e x a m p le ,
m e t e o r o lo g ic a l p h e n o m e n a s u c h a s th e flu c tu a tio n s in a ir t e m p e r a t u r e a n d p r e s s u re
a r e b e s t c h a r a c te r iz e d s ta tis tic a lly a s ra n d o m p r o c e s s e s .
T h e r m a l n o is e v o lta g e s
g e n e r a te d in r e s is to r s a n d e le c t r o n i c d e v ic e s a r e a d d itio n a l e x a m p le s o f p h y s ic a l
s ig n a ls th a t a r e w e ll m o d e le d a s ra n d o m p r o c e s s e s .
D u e to th e r a n d o m f lu c tu a tio n s in s u ch s ig n a ls , w e m u s t a d o p t a s ta tis ti
c a l v ie w p o in t, w h ich d e a ls w ith th e a v e r a g e c h a r a c t e r is t ic s o f r a n d o m s ig n a ls . In
p a r tic u la r , th e a u t o c o r r e la tio n fu n c t io n o f a r a n d o m p r o c e s s is th e a p p r o p r ia te
s ta tis tic a l a v e r a g e th a t w e w ill u se fo r c h a r a c te r iz in g ra n d o m s ig n a ls in th e tim e
d o m a in , a n d th e F o u r i e r tr a n s fo r m o f th e a u t o c o r r e la t io n f u n c t io n , w h ic h y ie ld s
t h e p o w e r d e n s ity s p e c tr u m , p r o v id e s th e t r a n s fo r m a tio n fr o m t h e tim e d o m a in t o
th e f r e q u e n c y d o m a in .
P o w e r s p e c tr u m e s tim a tio n m e t h o d s h a v e a r e la tiv e ly lo n g h is to r y .
For a
h is to r ic a l p e r s p e c tiv e , th e r e a d e r is r e f e r r e d to th e p a p e r b y R o b i n s o n ( 1 9 8 2 ) a n d
t h e b o o k b y M a r p le ( 1 9 8 7 ) . O u r t r e a t m e n t o f th is s u b je c t c o v e r s t h e c la s s ic a l p o w e r
s p e c tr u m e s tim a tio n m e th o d s b a s e d o n th e p e r io d o g r a m , o r ig in a lly in tr o d u c e d by
S c h u s t e r ( 1 8 9 8 ) , a n d b y Y u l e ( 1 9 2 7 ) , w h o o r ig in a te d t h e m o d e m m o d e l- b a s e d o r
p a r a m e t r ic m e th o d s . T h e s e m e t h o d s w e r e s u b s e q u e n tly d e v e lo p e d a n d a p p lie d b y
W a lk e r (1 9 3 1 ), B a r tle tt (1 9 4 8 ), P a rz e n (1 9 5 7 ), B la c k m a n an d T u k e y (1 9 5 8 ), B u rg
( 1 9 6 7 ) , a n d o th e r s . W e a ls o d e s c r ib e t h e m e t h o d o f C a p o n ( 1 9 6 9 ) a n d m e t h o d s
b a s e d o n e ig e n a n a ly s is o f th e d a ta c o r r e l a t io n m a tr ix .
896
Sec. 12.1
897
W h e n d e a lin g w ith
O n t h e o t h e r h a n d , i f th e s ig n a l
In s u c h a c a s e , th e le n g th o f t h e d a ta r e c o r d t h a t w e
CC
th e n its F o u r i e r t r a n s f o r m e x is ts a n d is g iv e n a s
X a(F ) =
Xo( t ) e - j2 * F ,d t
J -OO
F r o m P a r s e v a ls t h e o r e m w e h a v e
oo
\xa ( t ) \2dt =
roc
/
\ X a ( F ) l 2d F
( 1 2 .1 .1 )
J oc
00
T h e q u a n t it y |Xa (F )| 2 r e p r e s e n ts th e d is tr ib u tio n o f s ig n a l e n e r g y a s a f u n c
tio n o f fr e q u e n c y , a n d h e n c e it is c a lle d th e e n e r g y d e n s ity s p e c tr u m o f th e s ig n a l,
t h a t is,
SXA F ) = \ X e ( F ) \ 2
( 1 2 .1 .2 )
a s d e s c r ib e d in C h a p te r 4 . T h u s t h e to t a l e n e r g y in t h e s ig n a l is s im p ly th e in te g r a l
o f SXX{ F ) o v e r a ll F [ i.e ., th e to t a l a r e a u n d e r SJtJt( F ) ] .
I t is a ls o in te r e s tin g t o n o te t h a t S XX( F ) c a n b e v ie w e d a s t h e F o u r i e r t r a n s
fo rm
o f a n o t h e r fu n c t io n ,
R IX { t ) ,
c a lle d
th e
a u to c o rr e la tio n fu n c t io n o f th e
898
Chap. 12
RxA*)= f
J OC
x * { t) x a { t + x ) d t
( 1 2 .1 .3 )
I n d e e d , it e a s ily fo llo w s th a t
R x x ( r ) e - J2jrFrd x = SXA F ) = l * ( F ) | 2
J C
s o t h a t R x x (?) a n d SXX( F ) a r e a F o u r i e r t r a n s fo r m p a ir.
( 1 2 .1 .4 )
N o w s u p p o s e th a t w e c o m p u te th e e n e r g y d e n s ity s p e c tr u m o f th e s ig n a l x a (t )
f r o m its s a m p le s t a k e n a t th e r a t e F s s a m p le s p e r s e c o n d . T o e n s u r e th a t th e r e is
n o s p e c tr a l a lia s in g re s u ltin g f r o m th e s a m p lin g p r o c e s s , th e s ig n a l is a s s u m e d to
b e p r e filte r e d , s o th a t, f o r p r a c tic a l p u r p o s e s , its b a n d w id th is lim ite d to B h e r tz .
T h e n th e s a m p lin g fr e q u e n c y F s is s e le c te d s u c h th a t F s > 2 B .
T h e s a m p le d v e r s io n o f x a (t) is a s e q u e n c e * { ) , - o c < n < o c , w h ich h a s a
F o u r i e r tr a n s fo r m ( v o lta g e s p e c tr u m )
OC
X { a i) =
22
ns-cc
x (n )e ~ J<"
o r, e q u iv a le n tly ,
X (f) =
22
X ( n ) e - j2xfn
( 1 2 .1 .5 )
A! = CC
R e c a l l th a t X { f ) c a n b e e x p r e s s e d in te r m s o f th e v o lta g e s p e c tr u m o f th e a n a lo g
s ig n a l jco ( 0 as
*
( )
X ( F ~ k F ^
( l 2 1 '6)
w h e r e / = F / F s is th e n o r m a liz e d f r e q u e n c y v a r ia b le .
I n th e a b s e n c e o f a lia s in g , w ith in th e f u n d a m e n ta l ra n g e l^ l < F J 2 , w e h a v e
X a ( F ) , |Fj < F J 2
( 1 2 .1 .7 )
= F } \X a ( F ) \2
( 1 2 .1 .8 )
W e c a n p r o c e e d f u r t h e r b y n o tin g t h a t th e a u t o c o r r e la t io n o f t h e s a m p le d
s ig n a l, w h ich is d e fin e d as
OO
rxx ( k ) =
2 2
* * (
+ *)
(1 2 - 1 .9 )
#*= 00
h a s th e F o u r i e r tr a n s fo r m ( W i e n e r - K h i n t c h i n e t h e o r e m )
S (/)=
j t
r*Ak )e~j2*kf
(12.1.10)
Sec. 12.1
899
SxA f ) = l * ( / ) l 2
2
OO
2 2 X( n) e~j2*fn
(12.1.11)
(12.1.12)
X i f ) = * ( / ) * W{ f )
(12.1.13)
- 1/2
900
Chap. 12
Sec. 12.1
901
Sisif) = W ) \ 2 =
j2nfn
(12.1.14)
(12.1.15)
Then
|X(fc)|2 = Si-Af)\j-k/N = Sri
(12.1.16)
902
Chap. 12
and hence
j 2 n k n / N
(12.1.17)
t )]
(12.1.18)
(12.1.20)
lim R x x i r )
lim
To-+oc
To-*oo
7b
(12.1.21)
Sec. 12.1
903
s p e c tru m , th a t is,
7b
frTo
T rr rr7b
*
= t t /
/
x ^ x ^ + T^d t
-^ o J-T q U - T q
1
e-pxFx
dT
(12.1.22)
I f T
= r /
x ( t ) e - * F' d t
-iio \J-To
T h e a c tu a l p o w e r d e n sity sp e c tru m is th e e x p e c te d v a lu e o f PXX( F) in th e lim it as
7b - oo,
r (F ) = lim [ / > ( ) ]
Til- oo
=
(12.1.23)
[ / :;
lim j J I /
To-^oc
a i
x( t ) e j27rFdt
A '- m - l
AA
= T,-----r 7
A/ lm I
Y
x*(n)x{n+m)
n=Q
m = 0 ,1 ,
1
(12.1.24)
N- 1
Jl
x (n)x(n+m)
m = -1 , - 2 ,..., 1 - N
P^ ( f ) =
E
r'x x { m ) e - M *
m=N+l
(12.1.25)
N- m- l
E [r x' A m )] = r; r~,
N ~
22
to
E[x*(n)x{n + m)]
(12.1.26)
= Yxx(m)
w h e re yxx( m) is th e tr u e (statistical) a u to c o rre la tio n s e q u e n c e o f x ( n) . H e n c e
rxx(m) is a n u n b ia s e d e s tim a te o f th e a u to c o rre la tio n fu n c tio n yxx( m). T h e v a ria n c e
904
Chap. 12
o f th e e stim a te rxx(m) is a p p ro x im a te ly
N
v a r [r i j ( m )] ^
_ |m |]2
22
[\Yx*(n)\2 + y * A n - m ) y xx(n + m) ]
(12.1.27)
N oc
(12.1.28)
p ro v id e d th a t
3C
22
\Yxx(n)\2 < oo
n-oc
0 < m < JV 1
(12.1.29)
m = 1. 2 ........ 1 N
A '- m - l
22
E[ x* ( n) x ( n + m)]
n=0
W -_M yjrjr(m)
, , = ^
= _
(12.1.30)
| m |j\ yx A m )
_ _
(12.1.31)
n~oo
H-+x
(12.1.32)
/ (/)=
22
m = - ( N - 1)
r* A m ) e - M m
(12.1.33)
Sec. 12.1
905
-jln fn
(12.1.34)
22
rx A m ) e ,2jrfn
m = - ( N - 1)
22
E [ p xx( f ) ] =
J2
m= (/V1)
f 1 J r )
m = - ( N - 1) ^
Y xim )e
J2nfm
(12.1.35)
'
Y xx(m )
(12.1.36)
J 2 YA m ) e - i2nfm
m=oc0
(12.1.37)
1/2
if*
r xx( a ) W B( f - a ) d a
1/2
lim E
N-t-cc
2 2
rx x ( m ) e ' j2nfm
Yxx{m)e-J2* fm = TxA f )
906
Chap. 12
(12.1.39)
N - + oo
Sec. 12.1
907
(12.1.40)
a t th e fre q u e n c ie s /* = k / N .
In p ra c tic e , h o w ev er, such a sp a rs e sa m p lin g o f th e sp e c tru m d o e s n o t p ro v id e
a v ery g o o d re p re s e n ta tio n o r a g o o d p ic tu re o f th e c o n tin u o u s sp e c tru m estim ate
* > ( /). T h is is easily re m e d ie d b y e v a lu a tin g Pxx( f ) a t a d d itio n a l freq u e n cies.
E q u iv a le n tly , w e can effectiv ely in c re a se th e le n g th o f th e se q u e n c e by m e a n s o f
z e ro p a d d in g a n d th e n e v a lu a te Pxx{ f ) at a m o re d en se se t o f freq u e n cies. T h u s
if w e in crease th e d a ta se q u e n c e le n g th to L p o in ts by m e a n s o f z e ro p a d d in g an d
e v a lu a te th e L -p o in t D F T , we h av e
(12.1.41)
W e em p h a siz e th a t z e ro p a d d in g an d e v a lu a tin g th e D F T at L >
d o e s n o t im p ro v e th e fre q u e n c y re so lu tio n in th e sp e c tra l estim a te .
p ro v id e s us w ith a m e th o d fo r in te rp o la tin g th e valu es o f th e m e a s u re d
a t m o re fre q u e n c ie s. T h e fre q u e n c y re so lu tio n in th e s p e c tra l e stim a te
d e te rm in e d by th e len g th N o f th e d a ta reco rd .
N p o in ts
It sim ply
sp e ctru m
PXI{.f) is
n = 0 , 1 , . . . , 15
908
Chap. 12
_S___ B___ S_
L I ..
T
32
^mTTTTnK/f
I^WrffTllnaa
128
Figure 12.4
Sec. 12.2
F igure 1X5
909
910
Chap. 12
i = 0, I, . . . . K 1
(12.2.1)
n = 0 , 1 .........M - l
F o r ea c h se g m en t, w e c o m p u te th e p e rio d o g ra m
p i 'v
"
M-l
= _L E * . '< n ) e - J2nfn\
M
i= 0 ,l,...,J f - l
(12.2.2)
( 12-2 -3 >
,=v>
E f1-
y ^ e~s2nfm
(12.2.5)
M J _-i]/2
r-
s in ;r ( / - a) J
w h ere
1 / s in jr/M V
B(f) = t ;
:
M V s ni f f / /
. _ .
( 12. 2. 6)
] ------ ,
0,
|m|
< M 1
11 ~
"
o th e rw ise
(12.2.7)
Sec. 12.2
911
K2 I=U
( 12.2 .8 )
= ^ v a r [/> (/)]
If w e m a k e u se o f (12.1.38) in (12.2.8), w e o b ta in
v ar [ / > * ( / ) ] = j T l x { f )
1+
/ sin I n f M ' V
\M s in 2 ;r/ J
(12.2.9)
n = 0 ,1 , . . . , M 1
(12.2.10)
i = 0 . 1 .........L - l
w h e re i D is th e sta rtin g p o in t fo r th e /th se q u e n c e . O b s e rv e th a t if D = M ,
th e se g m en ts d o n o t o v e rla p an d th e n u m b e r L o f d a ta se g m e n ts is id e n tic a l to
th e n u m b e r K in th e B a rtle tt m e th o d . H o w e v e r, if D = M /2 , th e r e is 50%
o v e rla p b e tw e e n su ccessive d a ta se g m e n ts a n d L = 2 K se g m e n ts a re o b ta in e d .
A lte rn a tiv e ly , w e can fo rm K d a ta se g m en ts ea c h o f le n g th 2 M .
T h e se c o n d m o d ifica tio n m a d e by W elch to th e B a rtle tt m e th o d is to w indow
th e d a ta se g m e n ts p rio r to c o m p u tin g th e p e rio d o g ra m . T h e re su lt is a m o d ifie d
p e rio d o g ra m
1
* * (/) =
~MU n=0
( 12.2. 11)
912
Chap. 12
(12.2.14)
^ . =o
= * ( /)]
B u t th e e x p e c te d v alu e o f th e m od ified p e rio d o g ra m is
i
M -l M-\
(12.2.15)
M - l Af-1
Since
r ia
Vjcx(n) = j
r xx(a)el27!anda
(12.2.16)
J - 1/2
s u b s titu tio n fo r y ^ n ) fro m (12.2.16) in to (12.2.15) yields
*?</>]=
1/2
M - 1 M -l
j- 1/2l r w
n = 0 m =0
da
(12.2.17)
1 /2
f
= /
r (a )W (/-a )rfa
'-1/2
w h e re , by d efin itio n ,
3 # 17
E u>(n)e
n=0
-jZnfn
(12.2.18)
T h e n o rm a liz a tio n fa c to r U e n s u re s th a t
1/2
W (/W / = 1
(12.2.19)
J 1/2
^ ~ ( f ) P g ( f ) ] ~ {E[P?Af)])2
(12.2 .20)
* zr(/)
(12.2.21)
Sec. 12.2
913
(12.2.22)
E
r , A m ) w { m ) e - J2*fm
m=(M1)
(12.2.23)
* * //(/)= /
J- 1/2
P*A<x)W{f-a)da
(12.2.24)
| / | < 1 /2
(12.2.25)
914
Chap. 12
, 1/2
[* * //( /) ]= /
E [ P xA a ) ] W ( f - a ) d a
J - 1/2
(12.2.26)
w h e re fro m (12.1.37) w e h av e
,1/2
[/> ( )]= /
r xA 0 ) W B( a - 0 ) d e
J -1/2
a n d WB{ f ) is th e F o u rie r tra n sfo rm o f th e B a rtle tt w in d o w .
(12.2.27) in to (12.2.26) yields th e d o u b le c o n v o lu tio n in teg ral
(12.2.27)
S u b stitu tio n of
r 1/2 ,1/2
E[P?rT ( / ) ] = /
/
r ( e ) W JJ( a - 0 ) W ( / - a ) r f a r f e
/1/2 J \[2
(12.2.28)
22
=
m
E [ r * A m ) ] w ( m ) e - J 27lfm
(iWll
(12.2.29)
Af-1
22
y , A m ) w B( m ) w ( m ) e - j 2nfm
m=(M-l)
w h ere th e B a rtle tt w in d ow is
wB(m)
0,
o th e rw ise
VxA 0 ) W { f - d ) d d
(12.2.31)
J - 1/2
since
1/2
J - 1/2
1/2
WB(a - d ) W { f - a ) d a =
W B( a ) W ( f - 9 - a)doc
J - 1/2
(12.2.32)
^ w (f-e)
T h e v arian ce o f th e B la c k m a n -T u k e y p o w e r sp e c tru m e s tim a te is
v a r [ / > / / ( / ) ] = { [ P / / ( / ) 2]} - { [ / > / / ( / ) ] } 2
(12.2.33)
Sec. 12.2
w h e re th e m e a n can b e a p p ro x im a te d as in (12.2.31).
(11.2.33) is
915
T h e se c o n d m o m e n t in
fl/2
rl/2
E{[PxBxT ( f ) ] 2) = /
E [ P xx( a ) P xx( . e ) ] W( f
-6)dade
(12.2.34)
J - 1/2 J-\f2
O n th e a s su m p tio n th a t th e ra n d o m p ro c e ss is G a u ssia n (see P ro b le m 12.5), w e
find th a t
r (a )r (0) 1 +
E [ P xA a ) P xA&)] =
sin7r(0 + a ) N
_Ns i n7 r ( 8 + a)_
sin7r(0 a ) N
N s i n n ( 6 a) _
(12.2.35)
-.2
r xA 0 ) W ( f - e ) d e
E { [ P ? / ( f ) ] 2} =
- 1/2
,1 [2
+ /
1/2
r xA<*)rxA e ) W ( f - a ) W ( f - d )
J - 1/2 J -l/2
s in jr(# -l-oON
si nn( & a ) N
N s in jr(0 + a)_
N sin7r(8 or)
d a d$
(12.2.36)
y _ i /2
{[L N s m n ( 8
-a)N
+ a;)J
r
[ _ ^ sin 7 r(0 ~a j
de
(12.2.37)
% r xA - a ) W ( f + c c ) + r xA<x)W( f - a)
N
W ith th is a p p ro x im a tio n , th e v a ria n c e o f PXJ i f ) b ec o m e s
Cxn
ar[ / " ( / ) ] -
" J - 1/2
1/2
r ( a ) W ( / - a ) [ r ( - a ) W ( / + a) + r (o )W (/-o ()]rfa
r lfl
J i L 1/2 rZ^
-
w^ f ~ a)da
(12.2.38)
w h e re in th e last s te p w e m a d e th e a p p ro x im a tio n
1/2
r z, ( a ) r ( - c r ) V ( / - a ) W ( f + a ) d a 0
1/2
(12.2.39)
916
Chap. 12
r2
xx(f)
f '* W2(0)d0j
1/2
(12.2.40)
M-l
H A f)
w 2( m )
(Af1)
iE[P?Af)}}2
(12.2.41)
t>ar [ P ( f ) ]
w h e re A = B , W , o r B T fo r th e th re e p o w e r s p e c tru m estim ates. T h e recip ro c al o f
th is q u a n tity , called th e variability, can also be u se d as a m e a s u re o f p e rfo rm a n c e .
F o r re fe re n c e , th e p e rio d o g ra m has a m e a n a n d v arian ce
(12.2.42)
J- l / 2
v a r [/> ( /) ]= r ,V /)[ l + ( | ^
) 2'
\N sin2nf/
(12.2.43)
w h ere
1 / sin n f N \ 2
W B( f ) = ~
~
Lr
N V sin n f J
(12.2.44)
i-l/2
E [ P * i ( f ) ] -+
r (/) /
w B( d ) d e =
u>,(0) r ( / ) = r ( / )
(12.2.45)
J - 1/2
var[/>(/)] - r l x( f )
H e n c e , as in d ic a te d p rev io u sly , th e p e rio d o g ra m is an asy m p to tically u n b ia se d
e stim a te o f th e p o w e r sp e c tru m , b u t it is n o t c o n siste n t becau se its v arian ce d o es
n o t a p p ro a c h z e ro as N in c re a se s to w a rd infinity.
A sy m p to tically , th e p e rio d o g ra m is c h a ra c te riz e d by th e q u a lity fa c to r
r\
Qp
2 (f )}
_ r xx^J
= z.1-,
= 1
(12.2.46)
rlA f)
T h e fact th a t Qp is fixed a n d in d e p e n d e n t o f th e d a ta le n g th N is a n o th e r in d ic a tio n
o f th e p o o r q u ality o f th is e stim a te .
Sec. 12.2
917
T h e m e a n a n d v a ria n c e o f th e B a rtle tt
p o w e r s p e c tru m e s tim a te a re
E[P?Af)]=
J-
(12.2.47)
r xxm w B( f - 6) dd
1/2
/ s in 2 jr /A f V
v a r[/ (/)] = - r 1 ( f )
^ \ M sin 2 n f )
(12.2.48)
an d
1 / sin n f M \ 2
W B( f ) =
. J .
M \ s in ^ / /
(12.2.49)
[ * * < /) ]
r ( /)
w ,(/)r f/
= r xx( f ) w B(0) =
r (/)
7 - -1/2
1 /2
(12.2.50)
v a r [P /x( / ) ]
rL (/)
0 .9 /A /
= l.IN A f
(12.2.52)
(12.2.53)
T h e m e a n a n d v a ria n c e o f th e W elch
1/2
[ * ( / ) ] =
f r^mw(f-B)de
(12.2.54)
2 2 w ( n ) e - j2*f *
(12.2.55)
w h ere
and
fo r no o v e rla p
v a r [ j ( /)] =
9 ,
r 2 (f),
8L xx
fo r 50% o v e rla p a n d
tria n g u la r w indow
(12.2.56)
918
As N
Chap. 12
oo an d M - * oo, th e m e a n co n v e rg e s to
[* (/> ]-> r ( / )
(12.2.57)
fo r n o o v e rla p
S L = 16N
fo r 5 0 % o v e rla p a n d
9 9M '
(12.2.58)
tria n g u la r w indow
(12.2.59)
C o n se q u e n tly , th e q u ality fa c to r e x p re ss e d in te rm s o f A f a n d N is
0.78N A /,
fo r n o o v e rla p
1 39NAf
fo r ^ 0/ o v e rla P a n d
tr ia n g u la r w indow
(12.2.60)
T h e m e a n a n d v a ria n c e o f
th is e s tim a te a re a p p ro x im a te d as
- 1/2
E[Pf / ( f ) ] * f
r xxm w ( f - d ) d 8
J --M
1/2l
- r
1
v a r[P //(/)] *
r;x(f)
L
(12.2.61)
>71
w (m)
m=-(W -1)
r * '1
2/ s
(2 M/N,
< ")= { 2U/3N.
re c ta n g u la r w in d o w
tr ia n g u la r w in d o w
^
(12'2 '62)
(12.2.63)
(12.2.64)
and hence
Q b t = x r i N & f = 2 .3 4 W A /
U.64
(12.2.65)
Sec. 12.2
919
Quality Factor
Bartlett
l.UNAf
Welch
(50% overlap)
Blackman-Tukey
1.39NA/
2.34AfA/
log2 M j ~ log2
920
Chap. 12
log2 2 M ) = N log2
Sec. 12.3
921
(12.3.1)
9 22
Chap. 12
(12.3.3)
Sec. 12.3
9 23
m > q
k),
(12.3.4)
~ 2 2 ot Yxxi m - ^
*=l
y*x (m) ,
+ <*122
*=o
0 <m <q
m < 0
T h e re la tio n sh ip s in (12.3.4) p ro v id e a fo rm u la fo r d e te rm in in g th e m o d el
p a ra m e te rs {ak} by re stric tin g o u r a tte n tio n to th e case m > q. T h u s th e se t o f
lin e a r e q u a tio n s
~Yxx(q)
Yxxiq + 1)
Yxxiq ~ 1)
Yxxiq)
-Yxx(q + / ? - ! )
Yxx(q + p - 2)
Yxxiq ~ p + 1 ) '
Yxx (q + P + 2)
Yxxiq)
Yxxiq + 1)
yxx(q + 2)
(12.3.5)
- Yx xi q + P ) -
0 < m < q
924
Chap. 12
I f w e a d o p t a n A R ( p ) m o d e l fo r th e o b se rv e d d a ta , th e re la tio n s h ip b e tw e e n
th e A R p a ra m e te rs a n d th e a u to c o rre la tio n se q u e n c e is o b ta in e d by se ttin g q = 0
in (12.3.4). T h u s w e o b ta in
p
~ Y 2 akYxx(m - k),
*=i
m> 0
Y xx(m ) =
(12.3.6)
- J 2 akYxx(m - k ) + ct^,
Jt=i
Yxx( ~ m )-
m = 0
m < 0
Y x x ( ~ 1)
Yxx(l)
Y x x ( 0)
- Y x x i p - 1)
Y x x ip -
Y x x i - P + 1)
Yxx(~ P
2)
+ 2)
~a\ "
Y x x i 1) "
a2
Yxx
(2)
(12.3.7)
. Y xx( P ) .
Krjr (0)
(12.3.8)
= Yxxi ) + Y 2 a k Y x x i ~ k )
L y(p)
Yx x (
- 1 -
1)
Yxx ( 0 )
Y x x ip -
1)
Y x x ( - p + 1)
y (0 )
a\
-ap_
~a l ~
0
(12.3.9)
_0 _
1=0
0,
y*x( - m ) ,
m > q
m < 0
(12.3.10)
Sec. 12.3
925
rxx(m) =
N
y '
n = 0
jc*(n)jc( + m)
m> 0
(12.3.11)
) | 2]
(12.3.13)
926
Chap. 12
x(n) = y
*=1
(12.3.14)
x ( n - m) =
(fc)x(n + k m)
k= 1
+ \ g M \ 2]
(12.3.15)
n=/n
T h is e r r o r is to b e m in im ized by se lectin g th e p re d ic tio n coefficients, su b je ct
to th e c o n s tra in t th a t th e y satisfy th e L e v in s o n -D u rb in re c u rsio n given by
am(k) = a m- i( * ) -I-
-k)
1 < fc < m - 1
(12.3.16)
1 < m < p
w h ere K m = a m(m) is th e m th reflec tio n c o effic ie n t in th e la ttic e filter re a liz a tio n
o f th e p re d ic to r. W h e n (12.3.16) is s u b s titu te d in to th e ex p re ssio n s fo r f m(n)
a n d gm(n), th e re su lt is th e p a ir o f o rd e r-re c u rsiv e e q u a tio n s fo r th e fo rw a rd a n d
b ac k w a rd p re d ic tio n e rro rs given by (11.2.4).
N ow , if w e su b s titu te fro m (11.2.4) in to (12.3.16) a n d p e rfo rm th e m in im iza
tio n o f m w ith re sp e c t to th e co m p lex -v alu ed re fle c tio n co effic ie n t K m, w e o b ta in
th e resu lt
N-1
fm-i(n)g*m- i ( n - D
Km =
------------------------------------
m = 1 ,2 , . . . , p
(12.3.17)
n=m
a n d E ^ _ v re sp e c tiv e ly . H e n c e (12.3.17)
Sec. 12.3
927
can b e e x p re ss e d as
- 1)
m = 1, 2 , . . . , p
Km =
(12.3.18)
w h e re
+ E bm- \ is an e stim a te o f th e to ta l sq u a re d e r ro r E m. W e leave it as
a n ex ercise fo r th e r e a d e r to verify th a t th e d e n o m in a to r te r m in (12.3.18) can be
c o m p u te d in an o rd e r-re c u rsiv e fash io n a c co rd in g to th e re la tio n
E m = (1 - \ Km |2) m_i - |/m -] (m - 1)[2 - |gm_ ,(m - 2 ) |2
(12.3.19)
(12.3.20)
1 + j 2 a p( k ) e - W
T h e m a jo r a d v a n ta g e s o f th e B u rg m e th o d fo r e stim a tin g th e p a ra m e te rs o f
th e A R m o d e l a re (1) it resu lts in high fre q u e n c y re so lu tio n , (2) it yields a sta b le
A R m o d el, an d (3) it is c o m p u ta tio n a lly efficient.
T h e B u rg m e th o d is k n o w n to h av e se v e ra l d isa d v a n ta g e s, h o w ev er. F irst,
it ex h ib its sp e c tra l lin e sp littin g a t high sig n a l-to -n o ise ratio s, [see th e p a p e r by
F o u g e re e t al. (1976)]. B y line sp littin g , w e m e a n th a t th e sp e c tru m o f x( n) m ay
h a v e a sin g le sh a rp p e a k , b u t th e B u rg m e th o d m ay re s u lt in tw o o r m o re closely
sp a ced p e a k s. F o r h ig h -o rd e r m o d els, th e m e th o d also in tro d u c e s sp u rio u s p eak s.
F u rth e rm o r e , fo r sin u so id al signals in n o ise , th e B u rg m e th o d ex h ib its a sensitivity
to th e in itial p h a se o f a sinusoid, esp ecially in s h o rt d a ta reco rd s. T h is sensitivity
is m a n ife st as a fre q u e n c y shift fro m th e tru e freq u e n cy , re su ltin g in a p h a se d e
p e n d e n t fre q u e n c y b ias. F o r m o re d etails o n so m e o f th e s e lim ita tio n s th e r e a d e r
is r e fe rr e d to th e p a p e rs o f C h e n a n d S te g e n (1974), U lry c h a n d C lay to n (1976),
F o u g e re e t al. (1976), K ay a n d M a rp le (1979), S w ingler (1979a, 1980), H e rrin g
(1980), a n d T h o rv a ld s e n (1981).
S ev eral m o d ifica tio n s h av e b e e n p ro p o se d to o v e rc o m e so m e o f th e m o re
im p o rta n t lim ita tio n s o f th e B u rg m e th o d : n a m ely , th e lin e sp littin g , sp u rio u s
p e a k s , a n d fre q u e n c y bias. B asically, th e m o d ifica tio n s inv o lv e th e in tro d u c tio n
o f a w eig h tin g (w in d o w ) se q u e n c e o n th e sq u a re d fo rw a rd a n d b ack w a rd e r
ro rs . T h a t is, th e le a st-sq u a re s o p tim iz a tio n is p e rfo rm e d o n th e w e ig h te d s q u a re d
928
Chap. 12
e rro rs
N-1
b =
(12.3.21)
']Tl Wm--i(n)fm- i ( n ) g Z _ l (n - 1)
Km = ~1 ~
L--------------------------------------------------
1 n=m
(12.3.22)
+ |g m- i ( n - 1 )|2]
/
In
J-l/2
r xx( f ) d f
(12.3.23)
B u rg fo u n d th a t th e m ax im u m o f th is in te g ra l su b je ct to th e ( p + 1) c o n stra in ts
rlfl
/
J - 1/2
= Yxx(m)
0 < m < p
(12.3.24)
Sec. 12.3
929
p -
Y l ^ f p ^ 2+
n=p
x ( n ) + ' Y \ ap ^ x ^n ~ k )
*=i
2"
+ x ( n - p) + 2 2 Op(k ) x( n + k - p)
k=1
(12.3.25)
w h ich is th e sa m e p e rfo rm a n c e in d ex as in th e B u rg m e th o d . H o w e v e r, w e d o n o t
im p o se th e L e v in s o n - D u rb in re c u rsio n in (12.3.25) fo r th e A R p a ra m e te rs. T h e
u n c o n s tra in e d m in im iz atio n o f p w ith re sp e c t to th e p re d ic tio n co effic ie n ts yields
th e se t o f lin e a r e q u a tio n s
M * ) ^ ( U ) = - r ( l , 0)
k=l
l = l,2,...,p
(12.3.26)
~ k ) x *(n 0 + x ( n - P + l)x*(n p + )]
(12.3.27)
np
T h e re su ltin g re sid u a l le a st-sq u a re s e r r o r is
p
e pL s = r ( 0 ,0 ) + t f , ( * ) r ( 0 , k )
t-i
(12.3.28)
930
Chap. 12
(12.3.29)
Sec. 12.3
931
932
Chap. 12
FPE(',=<(^373t)
d2'3-30*
(12.3.31)
N o te th a t th e te rm a 2p d e c re a s e s a n d th e r e fo r e In er2p also d e c re a s e s as th e o rd e r
o f th e A R m o d e l is in crease d . H o w e v e r, 2 p / N in c re a se s w ith an in crease in p.
H e n c e a m in im u m v alu e is o b ta in e d fo r so m e p.
A n a lte rn a tiv e in fo rm a tio n c rite rio n , p ro p o s e d by R is sa n e n (1983), is b ased
o n se lectin g th e o r d e r th a t m i n i mi z e s the description l ength (M D L ), w h e re M D L
is d efin ed as
M D L (/j) = N \ r \ a 2p + p i n N
(12.3.32)
_L ) - J -
(12.3.33)
w h ere
(12.3.34)
T h e o rd e r p is se le c te d to m in im ize C A T (/?).
In ap p ly in g th is crite ria , th e m e a n sh o u ld b e re m o v e d fro m th e d a ta . Since
a 2k d e p e n d s o n th e ty p e o f sp e c tru m e s tim a te w e o b ta in , th e m o d e l o rd e r is also
a fu n ctio n o f th e c riterio n .
T h e e x p e rim e n ta l re su lts given in th e re fe re n c e s ju s t c ite d in d ic a te th a t
th e m o d e l-o rd e r se lectio n c rite ria d o n o t y ield d efin itiv e re su lts. F o r ex am p le,
U lry ch an d B ish o p (1975), J o n e s (1976), a n d B e rry m a n (1978), fo u n d th a t th e
F P E ( p ) c rite rio n te n d s to u n d e re s tim a te th e m o d e l o rd e r. K a s h y a p (1980) sh o w ed
th a t th e A IC c rite rio n is sta tistically in c o n s is te n t as N oo. O n th e o th e r
h a n d , th e M D L in fo rm a tio n c rite rio n p ro p o s e d b y R issan n is statistically c o n
sisten t. O th e r e x p e rim e n ta l re su lts in d ic a te th a t fo r sm a d a ta len g th s, th e o r
d e r o f th e A R m o d e l sh o u ld b e se le c te d to b e in th e ra n g e N /3 to N f l fo r
g o o d resu lts. I t is a p p a r e n t th a t in th e a b se n c e o f any p r io r in fo rm a tio n r e
g ard in g th e p h y sical p ro c e ss th a t re su lte d in th e d a ta , o n e sh o u ld tr y d iffer
e n t m o d e l o r d e rs a n d d iffe re n t c rite ria an d , finally, c o n s id e r th e d iffe re n t
resu lts.
Sec. 12.3
933
(12.3.35)
w h e re th e co efficien ts [dm] a re re la te d to th e M A p a r a m e te r s by th e ex p ressio n
g-\m\
(12.3.36)
(12.3.37)
a n d th e p o w e r sp e c tru m fo r th e MA(< 7 ) p ro cess is
(12.3.38)
It is a p p a r e n t fro m th e se e x p ressio n s th a t w e d o n o t h av e to solve fo r th e M A
p a ra m e te rs {>*} to e stim a te th e p o w e r sp e c tru m . T h e e stim a te s o f th e a u to c o r re
latio n yxx( m) fo r |?| < q suffice. F ro m such e stim a te s w e c o m p u te th e e s tim a te d
M A p o w e r sp e ctru m , g iven as
(12.3.39)
w h ich is id e n tic a l to th e classical (n o n p a ra m e tric ) p o w e r sp e c tru m e stim a te d e
sc rib ed in S ectio n 12.1.
T h e re is an a lte rn a tiv e m e th o d fo r d e te rm in in g {bk} b a se d o n a h ig h -o rd e r
A R a p p ro x im a tio n to th e M A p ro cess. T o b e specific, let th e MA(<?) p ro cess b e
m o d e le d by an A R ( p ) m o d el, w h e re p > > q. T h e n B( z ) = 1 / A( z ) , o r eq u iv alen tly ,
B ( z ) A ( z ) = 1. T h u s th e p a ra m e te rs {bk} a n d {ak} a re r e la te d by a co n v o lu tio n sum ,
w h ich can b e e x p ressed as
n = 0
n t^O
(12.3.40)
ao = l,
ak = 0,
k <0
(12.3.41)
which is minimized by selecting the MA(?) parameters {*}. The result of this
9 34
Chap. 12
minimization is
b = - R ~i
J r aa
w h ere th e e le m e n ts o f
(12.3.42)
a n d raa a re given as
p-tf-jl
R aa(\i ~ y |) =
22
i,j = l,2,...,q
n=0
(12.3.43)
p-i
raa 0 ) = 2 2
n+ '
I = 1, 2, . . . ,
T h is least sq u a re s m e th o d fo r d e te rm in in g th e p a r a m e te r s o f th e MA(<j)
m o d el is a ttr ib u te d to D u rb in (1959). I t h as b e e n sh o w n by K a y (1988) th a t this
e s tim a tio n m e th o d is a p p ro x im a te ly th e m ax im u m lik e lih o o d u n d e r th e a ssu m p tio n
th a t th e o b se rv e d p ro c e ss is G au ssian .
T h e o r d e r q o f th e M A m o d e l m a y b e d e te rm in e d e m p iric a lly b y se v era l
m e th o d s. F o r e x a m p le , th e A IC fo r M A m o d els h a s th e sa m e fo rm as fo r A R
m o d els,
A lC (tf) = l n < 4 + ^
(12.3.44)
r Az) = J u m ? T )+ "
_
a l +<t2A ( z ) A ( z
(12.3.45)
j)
Sec. 12.3
935
rxx(q + 1)
rxx(q ~ 1)
rxx(q)
rXx(q - p + 1) -] ~a\
o2
rxx(q - p + 2)
,rxx( M - 1)
rxx( M - 2 )
rxx( M - p)
rxx(q)
= _
~rxx(q + 1)~
rxx(q + 2 )
. r xx( M )
_
(12.3.46)
o r eq u iv a le n tly ,
(12.3.47)
Tr
R r r S ---
Since
is o f d im en sio n ( M q) x p, an d M q > p w e c a n use th e le a st-sq u a re s
c rite rio n to so lv e fo r th e p a r a m e te r v e c to r a. T h e re su lt o f th is m in im iz atio n is
a = -(R ' R r
(12.3.48)
(12.3.49)
n = 0 ,1 ,..., N 1
(12.3.50)
^ A( / ) = L
rw ( m ) e ~ ^
(12.3.51)
936
Chap. 12
1+E
T h e p ro b le m o f o rd e r se lectio n fo r th e A R M A ( p , g ) m o d e l h as b e e n in v es
tig a te d by C how (1972a, b) a n d B ru z z o n e a n d K a v e h (1980). F o r th is p u rp o s e th e
m in im u m o f th e A IC in d ex
A I C ( p , q) = I n a l " + ~
(12.3.53)
Sec. 12.3
937
Burg
-1 0
//II
II
LS
20 points
4 poles
SNR = 20 dB
E
3 5
.20
N-------- Yule-Walker ^
r I i i i i m j i i i i l i i i i j j n j i l - I i l l n i i i i i . i j l i i l i i - L l i i i x i j . j . i l i j i l j i i i i i i j i l i m i i i i i l n m i n | J | n t u n i ___ f
.22
.24
Figure 12.6
.26
.28
.30
.32
.34
Frequency (cycles/sample)
.36
.38
.40
d e c re a s e d to A f = 0.07, th e Y u le -W a lk e r m e th o d n o lo n g e r reso lv es th e p e a k s as
illu stra te d in Fig. 12.7. S o m e b ias is also e v id e n t in th e B u rg m e th o d . O f c o u rse , by
in c re a sin g th e n u m b e r o f d a ta p o in ts th e Y u le -W a lk e r m e th o d e v e n tu a lly is able
to reso lv e th e p eak s. H o w e v e r, th e B u rg a n d le a st-s q u a re s m e th o d s a re clearly
s u p e rio r fo r s h o rt d a ta reco rd s.
T h e effe ct o f ad d itiv e n oise o n th e e s tim a te is illu stra te d in Fig. 12.8 fo r th e
le a s t-s q u a re s m e th o d . T h e effect o f filter o rd e r o n th e B u rg a n d le a st-sq u a re s
m e th o d s is illu stra te d in F igs. 12.9 a n d 12.10, resp ec tiv ely . B o th m e th o d s ex h ib it
s p u rio u s p e a k s as th e o r d e r is in crease d to p = 12.
T h e effe ct o f in itial p h a se is illu stra te d in Figs. 12.11 a n d 12.12 fo r th e B u rg
an d le a s t-s q u a re s m e th o d s. I t is clear th a t th e le a st-sq u a re s m e th o d ex h ib its less
se n sitiv ity to in itial p h a s e th a n th e B u rg alg o rith m .
A n e x a m p le o f lin e sp littin g fo r th e B u rg m e th o d is sh o w n in Fig. 12.13 w ith
p = 12. It d o e s n o t o c c u r fo r th e A R (8 ) m o d el. T h e le a st-sq u a re s m e th o d d id
n o t e x h ib it lin e sp littin g u n d e r th e sa m e co n d itio n s. O n th e o th e r h a n d , th e line
sp littin g o n th e B u rg m e th o d d isa p p e a re d w ith an in crease in th e n u m b e r o f d a ta
p o in ts N .
F ig u re s 12.14 a n d 12.15 illu stra te th e re so lu tio n p r o p e rtie s o f th e B u rg an d
le a st-s q u a re s m e th o d s f o r A f = 0.07 a n d N = 20 p o in ts a t low S N R (3 dB ).
S ince th e ad d itiv e n o ise p ro c e ss is A R M A , a h ig h e r-o rd e r A R m o d e l is re q u ire d
t o p ro v id e a g o o d a p p ro x im a tio n a t low S N R . H e n c e th e fre q u e n c y re so lu tio n
im p ro v e s as th e o r d e r is in crease d .
938
Frequency (cycles/sample)
(dB)
Frequency (cycles/sample)
Figure 1Z8
Chap. 12
Sec. 12.3
(dB)
Figure 12.9
Figure 12.10
od
LS method.
939
Chap. 12
/
Frequency (cycles/sample)
Figure 12.11
20 points
4 poles
SNR = 15 dB
/ , = -23
f l = -36
-6
16 sinusoid phases
-1 2
_ J4 r Hi ! I11111l1
.20
.22
.26
Figure 12.12
.28
.30
.32
.34
Frequency (cycles/sample)
.36
.38
.40
(dB)
Sec. 12.3
Frequency (cycles/sample)
Line splitting in Burg method.
Figure 12.13
FigHre 12.14
941
942
Chap. 12
Frequency (cycles/sample)
Figure 12,15
Sec. 12.4
943
l.l
1.0
0.9
0.8
t 0.7
|3 0.6
c
fe.0.5
| 0.4
0.3
0.2
0.1
0
6 8 10 12 14 16 18
Numberof poles
20points
4poles
; 1.;t = .95f^ - 23'
Zi
= ,95e *
20datasequences
-12
.20
.22
.24
Figure 12.17
.26
.36
.38
.40
944
Chap. 12
Frequency (cycles/sample)
(b)
p
y(n) = 21<ikx(n - k ) = X '(n )a
k=0
(12.4.1)
Sec. 12.4
9 45
X l (n) = [jr(n ) x ( n 1)
x ( n - p) ] is th e d a ta v e c to r a n d a is th e filter c o e f
ficien t v e c to r. If w e assu m e th a t [ * ( )] = 0, th e v arian ce o f th e o u tp u t se q u e n c e is
a 2 = [ |y ( n ) |2] = [a * 'X * (n )X ' (n)a]
(12.4.2)
= a*T a
w h e re T xx is th e a u to c o rre la tio n m a trix o f th e se q u e n c e jc(n), w ith e le m e n ts yxx(m).
T h e filter co efficien ts a re se le c te d so th a t a t th e fre q u e n c y f s, th e fre q u e n c y
re sp o n s e o f th e F I R filter is n o rm a liz e d to u n ity , th a t is,
; a ke - j2*k}' = 1
k= 0
(12.4.3)
w h e re
E '( / , ) = [ l
e*2**
ej2*pf' ]
E* ( /,)
(12.4.4)
(12.4.5)
(12.4.6)
94 6
Chap. 12
(12.5.1)
Sec. 12.5
947
x( n) = - 2 2 a x (n ~ m )
(12.5.2)
m=l
2p
(12.5.3)
..tZ
1
T h e p o ly n o m ia l
2p
A( z ) = 1 +
( 12.5.5)
If w e s u b s titu te x( n ) = y ( n ) w( n) in (12.5.2), w e o b ta in
2p
y ( n ) - w( n) ~ - ^ [ . v ( n - m) - w( n - m) ]am
m=1
o r, eq u iv a le n tly ,
2p
2p
T
amy( n m ) Y J omw( n m)
m=0
(12.5.6)
m=0
w h e re , by d efin itio n , a0 = 1.
W e o b se rv e th a t (12.5.6) is th e d ifferen ce e q u a tio n fo r a n A R M A ( p , p ) p r o
cess in w h ich b o th th e A R a n d M A p a ra m e te rs a r e id e n tic a l. T h is sy m m etry is a
c h a ra c te ristic o f th e sin u so id al signals in w h ite n o ise. T h e d iffe re n c e e q u a tio n in
(12.5.6) m ay b e e x p re sse d in m atrix fo rm as
Y 'a = W 'a
(12.5.7)
w h e re Y r = [y (n ) y ( n 1) y ( n - 2 p ) ] is th e o b s e rv e d d a ta v e c to r o f d i
m e n s io n (2p 4 - 1 ), W ' = [ wi n ) w( n 1) w( n - 2p ) ] is th e n o ise vector,
a n d a = [ 1 a\ ct2P ] is th e c o effic ie n t v e cto r.
If w e p re m u ltip ly (12.5.7) by Y a n d ta k e th e e x p e c te d v a lu e , w e o b ta in
E ( Y Y > = ( Y W ') a = [ ( X -I- W )W r]a
(12.5.8)
r yya = < a
w h e re w e h a v e u se d th e a ssu m p tio n th a t th e s e q u e n c e w( n ) is z e ro m e a n a n d
w h ite , a n d X is a d e te rm in is tic signal.
9 48
Chap. 12
(12.5.9)
COS^ n f , k
k it 0
c o s 2 tt f i
cos 4 ;r/i
c o s 4 j t /2
.c o s 2 n p f i
cos 2 n f p n r p r
cos 4 n f p
P2
cos 2 ttp /2
cos 2:
-Pp-
r y .w d ) n
Yyy( 2)
(12.5.11)
- Y y y (p ) -
''v v ( O )
y.p,
(12.5.12)
1=1
Sec. 12.5
949
i o3 1
1 3J
g ( k ) =
0
X
= (3 - k)(k2 - 6X + 7} = 0
3- k j
y/2
y /2 .
- 1 -
'
-o=
0
.0 .
-02-
1= 0
Thus
1 . . 1
V2
J V2
Zl Z2
Note that |zi| = |z2| = 1, so that the roots are on the unit circle. The corresponding
frequency is obtained from
Z; =*'"
1
s / 2 + y V2
Yyy ( 1 ) =
/>! = V 2
950
Chap. 12
x(n) =
22
A ,eJ(2,t/n+,f,
(12.5.13)
;=i
w h ere th e a m p litu d e s {A;} a n d th e fre q u e n c ie s j / ;- } a re u n k n o w n a n d th e p h ases
{<f>, } a re statistically in d e p e n d e n t ra n d o m variab les u n ifo rm ly d is trib u te d o n (0, 2n ) .
T h e n th e ra n d o m p ro cess x ( n ) is w id e-sen se s ta tio n a ry w ith a u to c o r re la tio n fu n c
tion
y ,,( m ) =
22
Piei2nf'm
(12.5.14)
/=!
w h ere, fo r co m p lex sin u so id s, P, = A ? is th e p o w e r of th e / th sin u so id .
Since th e se q u e n c e o b se rv e d is y( n) = x ( m ) + w ( n ), w h e re w{n) is a w h ite
n o ise se q u en ce w ith sp e c tra l d e n sity erj, th e a u to c o rre la tio n fu n c tio n fo r v (n) is
Yyy(m) = yIX( m ) + a l S ( m )
m = 0, 1 , . . . , { M - 1)
(12.5.15)
ctu
2i
(12.5.16)
T xx =
22
(12.5.17)
1=1
l!* ]
(12.5.18)
Sec. 12.5
951
r =
(12.5.19)
/=i
r w = 2 2 k *iVil + 2 2 ^ y y ^
1=1
1=1
(12.5.21)
= 2 2 (k +
1=1
2 2 fT- v' v/ /
i=p+i
i = 1,2,..., p
(12.5.22)
But (12.5.22) implies that the frequencies {/;} can be determined by solving for
9 52
Chap. 12
th e z e ro s o f th e p o ly n o m ial
p
V ( z ) = J 2 vp + ^ k + 1^ ~ k
n=0
(12.5.23)
T h e an g les o f th e s e r o o ts a re 2n f , , i = 1,
(12.5.24)
{u;*)
a re
(12.5.25)
i = 1,2,...,/?
(12.5.26)
1
22
*=p + i
(12.5.27)
I ( / ) n |
22
k=p+1
|s H( / ) * |2
(12.5.28)
Sec. 12.5
9 53
= x(n) + w (n)
w h e re x (n ) is th e signal v e c to r a n d w (n) is th e n oise v ecto r. T o e x p lo it th e d e
te rm in is tic c h a ra c te r o f th e sinusoids, w e d efin e th e tim e-d isp laced v e c to r z( n) =
y (n + 1). T h u s
z( n) = [z(n), z(n + 1).........z( n + M - 1)]'
(12.5.30)
= [;y(n + 1), y( n + 2 ).........y( n + Af)]'
W ith th e s e d efin itio n s we can ex p ress th e v ecto rs y(n) a n d z(n ) as
y (rt) = S a + w (n)
(12.5.31)
i (n ) = S $ a + w (n)
w h e re a = [ a \ , a i , . . ap]r, cii = A
, , a n d $ is a d ia g o n a l p x p m a trix c o n sist
in g o f th e re la tiv e p h a s e b e tw e e n a d ja c e n t tim e sa m p le s o f each o f th e co m p lex
sin u so id s,
$ = d ia g [ e '2,r/l, ej2jrf2, . . . , ei 2nf>]
(12.5.32)
i = 1 , 2 .........p
(12.5.33)
(12.5.34)
= S P S W+ a l l
954
Chap. 12
(12.5.36)
w h ere
I V = [ w (n ) w w(n + 1)]
(12.5.37)
0 0
rvv =
yw (0)
y ;v(D
yyy(l)
Yyy(0)
yvv(A/ - 1) "1
Yyyi M - 2 )
(12.5.38)
- y ; y ( M - 1)
r
K w (i)
yyy(0)
Yyy(M - 2)
Yyy (2)
yyy(l)
Yyy( 0)
Yyv(M) -1
Yyy(M -l)
(12.5.39)
- Yyy ( M 2)
Y'yy( M - 3)
yyy(l)
(12.5.40)
F ro m (12.5.36) w e also h av e
- a 2T w = S P * HS H m C
(12.5.41)
(12.5.42)
Sec. 12.5
955
rv:
2. C o m p u te th e e ig en v alu es o f R vv. F o r M > p, th e m in im u m eig en v alu e is an
e stim a te o f a 2.
3. C o m p u te C vv = R vv a * I an d C v- = R vc <7*Q, w h e re Q is defin ed in
(12.5.37).
4. C o m p u te th e g e n e ra liz e d eig en v alu es o f th e m a trix p a ir (C TT, C v- |. T he p
g e n e ra liz e d e ig en v alu es o f th e s e m atric es th a t lie o n (o r n e a r) th e u n it circle
d e te rm in e th e ( e stim a te ) e le m e n ts of $ a n d h e n c e th e sin u so id al freq u en cies.
T h e re m a in in g M p eig e n v a lu e s will lie at ( o r n e a r) th e origin.
O n e m e th o d fo r d e te rm in in g th e p o w e r in th e sin u so id al c o m p o n e n ts is to
solve th e e q u a tio n in (12.5.11) w ith ryy{m) s u b s titu te d fo r y yy(m).
A n o th e r m e th o d is b a se d on th e c o m p u ta tio n o f th e g e n e ra liz e d eig en v ecto rs
{v,} c o rre sp o n d in g to th e g e n eralized e ig en v alu es {A, }. W e h av e
(C vv - A., c v:)v, = S P (I - X/
= 0
(12.5.43)
i =
( 12 .5 .44)
956
Chap. 12
G(p)
M
p)
+ E(p)
(12.5.45)
w h ere
g (p
)=
p = 0 , 1 .........M - l
M p
A(p) =
1
M
//>+]
(12.5.46)
1
E ( P) = 2 p(-2 M ~ P')loZ N
N: n u m b e r o f sa m p le s u sed to e s tim a te th e M
a u to c o rre la tio n lags
S o m e resu lts o n th e q u ality o f th is o r d e r se le c tio n c rite rio n a re given in th e p a p e r
b y W ax an d K ailath (1985). T h e M D L c rite rio n is g u a ra n te e d to b e co n sisten t.
x ( n ) = 2 2 A iej a n f 'n+4,') + w( n)
i=l
w h e re A, = 1, i = 1, 2, 3, 4, {tp,} a re sta tistically in d e p e n d e n t ra n d o m v ariab les
u n ifo rm ly d istrib u te d on (0, 2j t ), {w(rt)) is a z e ro -m e a n , w h ite n o ise se q u e n c e w ith
v a ria n c e a 2, an d th e fre q u e n c ie s a re f \ = 0.222, f a 0.166, f s = 0.10, an d
f i = 0.122. T h e se q u e n c e {jt(n), 0 < n < 1023} is u se d to e s tim a te th e n u m b e r
o f fre q u e n c y c o m p o n e n ts a n d th e c o rre sp o n d in g v alu es o f th e ir fre q u e n c ie s for
a 2 = 0 . 1 , 0.5, 1.0, a n d M 12 (le n g th o f th e e s tim a te d a u to c o rre la tio n ).
Sec. 12.5
957
Frequency
Figure 12.19
Figure H 2 0
958
Figure 1X21
Chap. 12
Frequency
Figure 12.22
Sec. 12.6
0.1
0.5
1.0
True values
959
ESPRIT ALGORITHM
Ia
-0.2227
-0.2219
-0.222
-0.222
-0,1668
-0.167
-0.167
-0.166
-0.1224
-0.121
0.1199
0.122
0.10071
0.0988
0.1013
0.100
960
Chap. 12
perform ance is difficult and, con sequ en tly, few er results are availab le. S om e o f the
papers that have addressed the problem o f p erform ance characteristics o f param et
ric m eth od s are th o se of K rom er (1969), L acoss (1971), B erk (1974), B aggeroer
(1976), Sakai (1979), Sw ingler (1980), L ang and M cC lellan (1980), and Tufts and
K um aresan (1982).
In addition to the referen ces already given in this chapter on the various
m eth od s for spectrum estim ation and their perform ance, w e sh ou ld include for
referen ce som e o f th e tutorial and survey papers. In particular, w e cite the tutorial
paper by K ay and M arple (1981), w hich in clu d es ab ou t 280 referen ces, the paper
b y B rillinger (1974), and the Special Issue on Spectral E stim ation o f the I E E E
P ro ceed in g s, Sep tem b er 1982. A n oth er indication o f the w id esp read interest in
the subject o f spectrum estim ation and analysis is the recent p u b lication o f texts
by G ardner (1987), K ay (1988), and M arple (1987), and the IE E E b ook s edited
by Childers (1978) and K esler (1986).
M any com puter program s as w ell as softw are packages that im plem ent the
various spectrum estim ation m eth od s described in this chapter are available. O ne
softw are package is available through the IE E E (P ro g ra m s f o r D ig ita l S ig n a l P ro
cessing, IE E E Press, 1979); others are available com m ercially.
PROBLEMS
12.1 (a) By expanding (12.1.23), taking the expected value, and finally taking the limit as
To -+ oo, show that the right-hand side converges to
show that
(a) E [P (fx)P * A h )] = a* 1 +
+
sin jr(/i + f i) N
[Afsin7r(/i + / 2) 1
Chap. 12
Problems
961
h )\
j+
|
/ s i n 2 j r / W \ 2]
under the condition that the sequence x(n)
y N sin 2jt/ 1) }
power density spectrum r ( / ) . Then derive the variance of the periodogram Pxr( f ),
as given by (12.1.38). {Hint: Assume that the colored Gaussian noise process is the
output of a linear system excited by white Gaussian noise. Then use the appropriate
relations given in Appendix A.)
12.5 Show that the periodogram values at frequencies /* = k /L , k = 0, 1 , . . . , L - 1, given
by (12.1.41) can be computed by passing the sequence through a bank of N IIR filters,
where each filter has an impulse response
M ) = e -j2*nk,f/u(n)
and then compute the magnitude-squared value of the filter outputs at n = N. Note
that each filter has a pole on the unit circle at the frequency f t .
12.6 Prove that the normalization factor given by (12.2.12) ensures that (12.2.19) is satisfied.
12.7 Let us consider the use of the DFT (computed via the FFT algorithm) to compute
the autocorrelation of the complex-valued sequence x (n ), that is,
1
i'u(m ) =
N
N -m -l
Suppose the size M of the FFT is much smaller than that of the data length N.
Specifically, assume that N = K M .
(a) Determine the steps needed to section x(n) and compute rxx(m) for (M /2) + 1 <
m < (M /2) - 1, by using 4K A/-point DFTs and one M-point IDFT
(b) Now consider the following three sequences x\(n), x2(n), and x^(n), each of du
ration M. Let the sequences x\(n) and x2(n) have arbitrary values in the range
0 < n < (M/2) - 1, but are zero for (M /2) < n < M 1. The sequence xi(n) is
defined as
xi(n).
x i(n) =
xi
H>
"2
< rt < M - 1
Determine a simple relationship among the M-point DFTs X i(k), X 2(k), and
* 3 (J t).
(c) By using the result in part (b), show how the computation of the DFTs in part
(a) can be reduced in number from AK to 2 K.
12J5 The Bartlett method is used to estimate the power spectrum of a signal x(n). We
know that the power spectrum consists of a single peak with a 3-dB bandwidth of
0 .0 1 cycle per sample, but we do not know the location of the peak.
962
Chap. 12
(a) Assuming that N is large, determine the value of M = N / K so that the spectral
(b) Explain why it is not advantageous to increase M beyond the value obtained in
pan (a).
12.9 Suppose we have N = 1000 samples from a sample sequence of a random process.
(a) Determine the frequency resolution of the Bartlett, Welch (50% overlap), and
Blackman-Tukey methods for a quality factor Q = 10.
(b) Determine the record lengths (Af) for the Bartlett, Welch (50% overlap), and
Blackman-Tukey methods.
12.10 Consider the problem of continuously estimating the power spectrum from a sequence
x (n) based on averaging periodograms with exponential weighting into the past. Thus
with P \ f ) = 0, we have
1
l M _1
l Y ' xm(n)e-
C (/) =
-J2n/n
m=-<Af-1 ) V
where r J( *(m) is the estimated autocorrelation sequence obtained from the j'th block
of data. Show that P ^ ( f ) can be expressed as
/ *> (/ ) = E ' ! ( f ) R ^ E ( f )
where
(/) = [l
eila}
]'
and therefore,
(n 1) + w(n) - w(n - 1)
jc
Chap. 12
Problems
963
m = 0
4ct2 ,
m= 1
2 a 2,
m = 2
0,
otherwise
(a) Determine the coefficients of the MA(2) process that have the foregoing auto
correlation.
(b) Is the solution unique? If not, give all the possible solutions.
12.16 An MA(2) process has the autocorrelation sequence
y(m) =
al
35 ,
- cr2.
62
m =0
m = 1
m = 2
7*al
62
(a) Determine the coefficients of the minimum-phase system for the MA(2) process.
(b) Determine the coefficients of the maximum-phase system for the MA(2) process,
(c) Determine the coefficients of the mixed-phase system for the MA(2) process.
12.17 Consider the linear system described by the difference equation
v(n) = 0.8v(n 1) + x(n) + x(n 1)
where x(n) is a wide-sense stationary random process with zero mean and autocorre
lation
* ,( > = G ) 1" 1
f 2
p
Yxx(m) +
{ .q
= 0,
1 < m < p.
where ap(k) are the prediction coefficients of the iinear predictor of order p and a 2
is the minimum mean-square prediction error. If the (p + 1) x (p + 1) autocorrelation
matrix Txx in (12.3.9) is positive definite, prove that:
(a) The reflection coefficients |K| < 1 for 1 < m < p.
(b) The polynomial
p
A p(z) = 1 + y ^ a p(k)z~k
*i
has all its roots inside the unit circle (i.e., it is minimum phase).
964
Chap. 12
(b)
x () = w(n) + 0.81u>(n 2)
w here w(n) is a w hite n oise p rocess with v arian ce a 2 .
(a ) D ete rm in e th e p aram eters o f th e A R ( 2 ) , A R ( 4 ) , and A R ( 8 ) m od els that provide
a m inim um m ean -squ are erro r fit to the data x(n).
(b ) P lo t th e true spectra m and th ose o f th e A R ( p ) , p = 2. 4 , 8. and com pare
the results. C o m m en t on how w ell the A R ( p ) m odels a p p roxim ate the M A (2 )
process.
2 r COS 6
t2 ]
(a) Determine the reflection coefficients for the corresponding FIR lattice filter.
(b ) Determine the values of the reflection coefficients in the limit as r
o3 (l) = 1.25.
a3(2) = 1.25,
a 3 (3) = - 1
m = 0
m = 1
m = 2
m = 3
otherwise
1.
Chap. 12
965
Problems
D ete rm in e th e system fun ction s A (z) for th e p red ictio n -erro r filters for m = 1, 2, 3,
th e reflectio n coefficien ts { K m}, and the correspond ing m ean -squ are p red iction errors.
1 2 .2 6
(a)
(a)
(b)
nm
A(Z) =
*>1
and reflectio n co efficien ts |AT* | < 1 fo r 1 < k < p 1 and |ATP | > 1 is m axim um phase
[all th e ro o ts o f A p ( z ) lie outside th e unit circle].
1 2 3 1 A random p rocess x (n ) is ch aracterized by th e p o w er density spectrum
U ) ~
\e W -Q .9 ?
_ JQ 9 |2|cjr2T/ + jQ 9l2
X (k ) = y '^ x ( n ) e - j2*nk/"
HkO
A ssu m e th at E [x {n )] = 0 and E [x (n )x (n + m ) ] = cr25(m ) [i.e., x(n) is a w hite noise
process].
966
Chap. 12
Jt=0
a = 1
*s=0
(a) Determine the difference equation for y(n) and thus demonstrate that y(n) is an
ARMA(2, 2) process. Determine the coefficients of the A R M A process.
Chap. 12
967
Problems
0 < n < N 1
0 < n < M 1
otherwise
The frequency a>o is known but the delay h0, which is a positive integer, is unknown,
and is to be determined by crosscorrelating x(n) with _y(n). Assume that N > M + n0.
Let
N- 1
ri y (.m) = Y
n* 0
y (n
- m )x (n )
denote the crosscorrelation sequence between x(n) and y(n). In the absence of noise
this function exhibits a peak at delay m = n0. Thus n0 is determined with no error.
The presence of noise can lead to errors in determining the unknown delay.
(a) For m = no, determine E[riy(n(,)]. Also, determine the variance, var[riV(rtB)],
due to the presence of the noise. In both calculations, assume that the double
frequency term averages to zero. That is, M 3> 2n/wo.
(b) Determine the signal-to-noise ratio, defined as
SNR = l % < ^
var[r^(n0)j
968
Chap. 12
j 2,
(a)
(b)
(c)
12.41* A random signal is generated by passing zero-mean white Gaussian noise with unit
variance through a filter with system function
(1 + az~l + 0 .9 9 i- 2 ) ( l - a z - 1 + 0 . 9 8 ; - ; )
(a) Sketch a typical plot of the theoretical power spectrum r { / ) for a small value
of the parameter a (i.e., 0 < a < 0.1). Pay careful attention to the value of the
two spectral peaks and the value of Pzx(a>) for co = n/2.
(b) Let a = 0.1. Determine the section length M required to resolve the spectral
peaks of T ( / ) when using Bartletts method.
(c) Consider the Blackman-Tukey method of smoothing the periodogram. How
many lags of the correlation estimate must be used to obtain resolution compa
rable to that of the Bartlett estimate considered in part (b)? How many data
must be used if the variance of the estimate is to be comparable to that of a
four-section Bartlett estimate?
(d) For a 0.05, fit an AR(4) model to 100 samples of the data based on the
Yule-Walker method and plot the power spectrum. Avoid transient effects by
discarding the first 200 samples of the data.
(e) Repeat part (d) with the Burg method.
(f) Repeat parts (d) and (e) for 50 data samples and comment on similarities and
differences in the results.
Appendix
Random Signals, Correlation
Functions, and Power Spectra
Random Processes
M any physical p h en om en a en cou n tered in nature are best characterized in statis
tical term s. For exam p le, m eteorological p h en om en a such as air tem perature and
air pressure fluctuate random ly as a function o f tim e. Therm al n oise voltages gen
erated in the resistors o f electron ic d evices, such as a radio or television receiver,
are a lso random ly fluctuating p h en om en a. T h ese are just a few exam p les o f ran
dom signals. Such signals are usually m odeled as infinite-duration infinite-energy
signals.
Suppose that w e take the set o f w aveform s corresponding to the air tem p er
ature in differen t cities around the w orld. For each city there is a corresponding
w aveform that is a function o f tim e, as illustrated in Fig. A .I . T h e set o f all p ossible
w aveform s is called an en sem b le o f tim e functions or, equivalently, a ra n d o m p r o
cess. T h e w aveform for the tem perature in any particular city is a single realization
or a sa m p le fu n c tio n o f the random process.
Sim ilarly, th e therm al n oise voltage gen erated in a resistor is a single real
ization or a sam p le function o f the random p rocess con sistin g o f all n oise voltage
w aveform s gen erated by the set o f all resistors.
T h e set (en sem b le) o f all p ossib le noise w aveform s o f a random process
is d en o te d as X (r, S ), w h ere t rep resents the tim e index and S represents the
set (sam p le sp a ce) o f all p ossib le sam ple functions. A single w aveform in the
en sem b le is d en o te d by x ( t , s). U sually, w e drop the variable s (or S ) for n otational
co n v en ien ce, so that the random p rocess is d en oted as X (r) and a single realization
is d en o ted as x ( t) .
A1
A2
App. A
Figure A.1
i = 1,
2 , . . . , n, and another set o f n sam p les disp laced in tim e from th e first set by an
App. A
A3
( A .l)
for all r and all n, then the random process is said to b e stationary in the strict
sense. In other words, the statistical properties o f a stationary random p rocess are
invariant to a translation o f the tim e axis. O n the other hand, w h en th e joint P D F s
are different, the random process is nonstationary.
the process X (/) is stationary, the joint P D F o f the pair (X tj, X ,2) is identical to
the joint P D F o f the pair (X fl+r, X ,1+T) for any arbitrary r. T his im plies that the
autocorrelation function o f X ( t ) dep en d s on the tim e d ifferen ce t \ ti = x. H en ce
for a stationary real-valued random process the au tocorrelation function is
yxx( r) = E [ X tl+TX h ]
(A .4)
y ( - r ) = ( * - , * ) = ( * , ; * , ;+r) = ^ ( r )
(A .5)
A4
App. A
cxx ( t )
= yxx(r) - m \
(A .7)
......>,;)
for any set o f tim e instants {/,} and \t'} and for any p ositive in teger valu es o f m
and n.
T h e crosscorrelation fu n c tio n o t X ( t ) and Y (t), d en oted as yxv (t\ , t2)> is defined
by the joint m om en t
OO
00
(A .8)
00 * ' 00
(A .9)
W hen the random p rocesses are jointly and individually stationary, w e have
YxyVi, h ) = Yxyih - t2) and cxy(ti, t2) = cxy(h - t2). In this case
^ ( - r ) = E( XtlYll+r ) = E (X ,r r Yt) = yyx( r)
(A .10)
x<., y ,,
.........y t>
m) = p ( x h , . . . , x tt )p(y,> , - . . , y , m)
( A .ll)
App. A
A5
(A .12)
w here X( t ) and K(/) are random p rocesses. T he joint P D F o f the com plex-valued
random variables Z,, = Z(r,), i = 1, 2 , , is given by the joint P D F o f the
co m p o n en ts ( X l;, Yti), i = 1, 2 ........ n. Thus the P D F that characterizes Z,,, i = 1,
2 .........n is
p ( x n , x l2.........x t ,y ,y l2, . . . , y , m)
A com p lex-valu ed random p rocess Z (t) is en cou n tered in the representation
o f the in-phase and quadrature com p onents o f th e low p ass equivalent o f a nar
row band random signal or noise. A n im portant characteristic o f such a process is
its autocorrelation function, which is defined as
= E { Z h Z* )
= E [ ( X t] + j Y tl)(X ,2 - j Y ,2)]
(A .13)
(A .14)
( z w ;j
= E [ ( X h + j Y li)(U l2 ~ j V t2)}
( A .15)
( A .16)
A6
App. A
(A.17)
T he inverse F ourier transform is given as
(A .18)
W e observe that
y ( 0 ) = f Z c r * * (F )d F
(A .19)
= (* ? ) > 0
Since E (X ? ) = yxx (0) rep resents the average p ow er o f the random p rocess, which
is the area under r ^ F ) , it follow s that r ^ F ) is the distribution o f p ow er as a
function o f frequency. For this reason, TXX(F ) is called the p o w e r d en sity sp e ctru m
o f the random process.
If the random process is real, y IX( z ) is real and even and h en ce r(F) is real
and even. If the random p rocess is com p lex valued, yxx(r) = yx x ( z ) and, h ence
a cc
aoc
n jF ) =
y*x (z )e j2nfrdT = /
(A.20)
which is called the cro ss-p o w er d en sity sp e ctru m . It is easily sh ow n that T*V(F ) =
r v,( - F ) . For real random p rocesses, th e condition is P yx(F ) = I \ v( F).
App. A
A7
T he /th m om en t o f X( n) is defined as
E { X n ) = f
x'nP (xn)d x n
(A .21)
J -O C
OC
/ 00
/
oc . / - 0
(A .22)
(A .23)
(A .24)
- m]
(A .25)
(A .26)
(A .27)
22
r,,( /)=
Y xx{m )e~ M m
(A .28)
T x x ( f ) e iln fm d f
(A .29)
m = oc
1/2
J-\a
(A .30)
A8
App. A
Mean-Ergodic Process
G iven a stationary random p rocess X ( n ) with m ean
Since th e m ean value o f the estim ate is equal to the statistical m ean , w e say that
the estim a te m , is unbiased.
N ex t, w e com p ute the variance o f rhx. W e have
v a r ( / n j = E(\mx \2) - \mx \2
App. A
A9
But
( |/ ,|2 ) = ( 2 /v'+ T )2 5 1
'
n = A/ k=N
T h erefore,
(A .33)
If var(m x) -* 0 as A' -* oo, the estim ate con verges with probability 1 to the
statistical m ean m x. T h erefore, the p rocess X ( n ) is m ean ergod ic if
(A .34)
U n d er this con d ition , the estim ate m x in the lim it as N > oc b ecom es equal to
the statistical m ean, that is,
(A .35)
T h u s th e tim e-average m ean, in the lim it as TV -* oo, is equal to the en sem b le
m ean.
A sufficient con d ition for (A .3 4 ) to hold is .if
00
(A .36)
w hich im plies that cxx(m ) 0 as m -* oo. T h is condition h old s for m ost zero-m ean
p rocesses en co u n tered in th e physical world.
Correlation-Ergodic Processes
N o w , let us con sid er the estim ate o f the autocorrelation yxx(m ) from a single
realization o f the p rocess. F ollow in g ou r previou s n otation , w e d en ote the estim ate
(for a com p lex-valu ed signal, in gen eral) as
(A.37)
A10
App. A
E [r (m )] -
2N + 1
E [x * (n )x (n + m)]
(A .38)
= 2
T h erefore, the exp ected value o f the tim e-average autocorrelation is eq u al to the
statistical average. H en ce w e have an u nbiased estim ate o f yxx (m).
T o determ ine the variance o f the estim ate rxx(m), w e co m p u te the exp ected
value o f \rxx(m )\2 and subtract the square o f th e m ean value. T hus
v ar[r(m )] = E [\rxx(m )\2] - |y (m ) |2
(A .39)
But
j
E [\rXI(m ) |2] = t t t
T
Y
E [x*{n)x(.n + m )x (k )x * (k + m )]
(2N -I-1)2 n ? Nkt ? N
(A .40)
E
E t f O - W
( 2 N + l ) 2 n=-Nk=-N
(A .41)
2N
T
2N + 1
( i - J s L W
)
V
2 N + l ) rvv V '
(* ~
a v
+t )
<A A Z )
If var[rxx(m)] -* 0 as N -* oo, the estim ate rxx(m) con verges with probability
1 to the statistical autocorrelation yxx(m). U n d er these con d ition s, the process is
lim
r Y ] x * ( n ) x ( n + m ) = yxx( m)
N-COO 2 N + 1 n Ar
(A .43)
In our treatm ent o f random signals, w e assum e that the ran d om p rocesses are
m ean ergodic and correlation ergod ic, so that w e can deal w ith tim e averages o f
the m ean and the au tocorrelation ob tain ed from a sin gle realization o f the process.
In som e o f the exam p les given in the text, random num bers are generated to sim
ulate the effect o f n oise on signals and to illustrate how the m ethod o f correlation
can be used to d etect the presen ce o f a signal buried in n oise. In the case o f
periodic signals, the correlation tech n iqu e also allow ed us to estim ate the period
o f the signal.
In practice, random num ber generators are often used to sim ulate the effect
o f noiselik e signals and other random p h en om en a en cou n tered in the physical
world. Such n oise is p resent in electron ic d evices and system s and usually limits
our ability to com m u n icate over large distances and to be able to d etect relatively
w eak signals. B y generating such n oise on a com puter, w e are able to study
its effects through sim ulation o f com m unication system s, radar d etection system s,
and the lik e and to a ssess the p erform ance o f such system s in the presen ce o f
noise.
M ost com puter softw are libraries include a uniform random num ber gen er
ator. Such a random num ber gen erator gen erates a num ber b etw een zero and
1 with equal probability. W e call the output o f the random num ber generator a
random variable. If A d en otes such a random variable, its range is the interval
0 < A < 1.
W e know that the num erical output o f a digital com p uter has lim ited preci
sion, and as a co n seq u en ce, it is im possible to rep resen t the continuum o f num bers
in the interval 0 < A < 1. H ow ever, w e can assum e that our com puter represents
each output by a large num ber o f bits in either fixed point or floating point. C on se
quently, for all practical purposes, the num ber o f outputs in the interval 0 < A < 1
is sufficiently large, so that w e are justified in assum ing that any value in the
interval is a possib le ou tp u t from th e generator.
T he uniform probability density function for the random variable A , d en oted
as p ( A ) , is illustrated in Fig. B .la . W e n ote that the average valu e or m ean value
o f A , d en oted as m A, is m A =
T h e integral o f th e probability density function,
w hich represents the area under p ( A ) , is called the p robability distribution function
B1
B2
App. B
P(A)
2
(a)
(b)
Figure B .l
p (x )d x
( B. l )
J OC
For any random variable, this area must always b e unity, w hich is the m axim um
value that can be achieved by a distribution function. H en ce
(B .2)
and the range o f F( A) is 0 < F (A ) < 1 for 0 < A < 1.
If w e wish to generate uniform ly distributed n oise in an interval (b , b + 1 )
it can sim ply be accom plished by using the output A o f the random num ber gen
erator and shifting it by an am ount b. Thus a new random variable B can be
defined as
B = A + b
w hich n ow has a m ean value m s = b +
(B .3)
the random
(B .4)
C = F~l (A)
(B.5)
then
App. B
B3
Figure B.2
Figure B3
T hus w e so lv e (B .4 ) for C and the solution in (B .5) provides the value o f C
for w hich F ( C ) = A. B y this m eans w e obtain a n ew random variable C with
probability distribution F (C ). This inverse m apping from A to C is illustrated in
Fig. B.3.
Example B.1
Generate a random variable C that has the linear probability density function shown
in Fig. B.4a, that is,
p(C)={2'
0,
Solution
05 C - 2
otherwise
F( C)
iC
A1- 2 '
1,
C< 0
0< C < 2
C > 2
B4
App. B
Figure B.4
Figure B.5
App. B
B5
(B . 6 )
w here ct2 is the variance o f C , w hich is a m easure o f the spread o f the probability
density function p {C ). T he probability distribution function F (C ) is the area under
p (C ) over the range ( 0 0 , C ). Thus
(B.7)
U n fortu n ately, the integral in (B .7) can n ot be expressed in term s o f sim ple func
tions. C onsequently, the inverse m apping is difficult to ach ieve.
A w ay has b een found to circum vent this problem . F rom probability th e
ory it is know n that a (R ayleigh distributed) random variable R , with probability
distribution function
0,
1
R < 0
R > 0
(B.8)
(B .9)
D R sin
(B .10)
2nB
(B.12)
B6
C
SEQUENCE XIN IN
S E Q U E N C E W I T H G ( 0 , S I G M A * *2)
PARAMETERS
XIN
SIGMA
YOUT
[0,1]
:U N I F O R M
TO A GAUSSIAN RANDOM
IN
0,1]
RANDOM NUMBER
:U N I F O R M I N
[0, 1 ]
RANDOM NUMBER
:S T A N D A R D D E V I A T I O N O F T H E G A U S S I A N
:O U T P U T F R O M T H E G E N E R A T O R
C
SUBROUTINE GAUSS
PI=4.0*ATAN
9XIN,B,SIGMA,YOUT)
( 1 .0)
B=2.0*PI*B
R=SQRT
(2,0*(S I G M A * * 2 ) * A L O G ( 1 . 0 / (1.0-XIN) ) )
Y O U T = R * C O S (B }
RETURN
END
C
NOTE:
C
C
C
C
SUBROUTINE
FOR A
INDEPENDENT
Figure B.6
App. B
Appendix
Tables of Transition
Coefficients for the Design of
Linear-Phase FIR Filters
C1
TABLE C.1
BW
1
2
3
4
5
6
1
2
3
4
6
8
10
12
14
15
1
2
3
4
5
6
10
14
18
22
26
30
31
1
2
3
4
6
8
10
18
26
34
42
50
58
59
60
61
Minimax
Af = 15
-42.30932283
-41.26299286
-41.25333786
-41.94907713
-44.37124538
-56.01416588
Af = 33
43.03163004
-42.42527962
-42.40898275
-42.45948601
-42.52403450
-42.44085121
-42.11079407
-41.92705250
-44.69430351
-56.18293285
Af = 65
-43.16935968
-42.61945581
-42.70906305
-42.86997318
-43.01999664
-43.14578819
-43.44808340
-43.54684496
-43.48173618
-43.19538212
-42.44725609
-44.76228619
-59.21673775
Af = 125
-43.20501566
-42.66971111
-42.77438974
-42.95051050
-43.25854683
-43.47917461
-43.63750410
-43.95589399
-44.05913115
-44.05672455
-43.94708776
-43.58473492
-42.14925432
-42.60623264
-44.78062010
-56.22547865
Af Even
Ti
BW
Minimax
7i
0.43378296
0.41793823
0.41047636
0.40405884
0.39268189
0.35766525
1
2
3
4
5
6
0.42994995
0.41042481
0.40141601
0.39641724
0.39161377
0.39039917
0.39192505
0.39420166
0.38552246
0.35360718
1
2
3
4
5
8
10
12
14
Af = 16
-39.75363827
-37.61346340
-36.57721567
-35.87249756
-35.31695461
-35.51951933
Af = 32
-42.24728918
-41.29370594
-41.03810358
-40.93496323
-40.85183477
-40.75032616
-40.54562140
-39.93450451
-38.91993237
0.42919312
0.40903320
0.39920654
0.39335937
0.38950806
0.38679809
0.38129272
0.37946167
0.37955322
0.38162842
0.38746948
0.38417358
0.35282745
1
2
3
4
5
6
10
14
18
22
26
30
M = 64
-42.96059322
-42.30815172
-42.32423735
-42.43565893
-42.55461407
-42.66526604
-43.01104736
43.28309965
-43.56508827
43.96245098
-44.60516977
-43.81448936
0.42882080
0.40830689
0.39807129
0.39177246
0.38742065
0.38416748
0.37609863
0.37089233
0.36605225
0.35977783
0.34813232
0.29973144
0.42899170
0.40867310
0.39868774
0.39268189
0.38579101
0.38195801
0.37954102
0.37518311
0.37384033
037371826
0.37470093
0.37797851
0.39086304
0.39063110
0.38383713
0.35263062
1
2
3
4
5
7
10
18
26
34
42
50
58
62
Af = 128
-43.15302420
-42.59092569
-42.67634487
-42.84038544
-42.99805641
-43.25537014
-43.52547789
-43.93180990
-44.18097305
-44.40153408
-44.67161417
-45.17186594
-46.92415667
-49.46298973
0.42889404
0.40847778
0.39838257
0.39226685
0.38812256
0.38281250
0.3782638
0.37251587
0.36941528
0.36686401
0.36394653
0.35902100
0.34273681
0.28751221
0.42631836
0.40397949
0.39454346
0.38916626
0.38840332
0.40155639
0.42856445
0.40773926
0.39662476
0.38925171
0.37897949
0.36990356
0.35928955
0.34487915
0.34407349
App. C
C3
BW
1
2
3
4
5
1
2
3
5
7
9
11
13
14
1
2
3
4
5
9
13
17
21
25
29
30
1
2
3
5
7
9
17
25
33
41
49
57
58
59
60
Minimax
Af
-70.60540585
-69.26168156
-69.91973495
-75.51172256
-103.45078300
M Even
T\
= 15
0.09500122
0.10319824
0.10083618
0.08407953
0.05180206
M = 33
-70.60967541
0.09497070
-68.16726971
0.10585937
0.10937500
-67.13149548
-66.53917217
0.10965576
-67.23387909
0.10902100
0.10502930
-67.85412312
-69.08597469
0.10219727
-75.86953640
0.08137207
104.04059029
0,05029373
M = 65
70,66014957
0.09472656
68,89622307
0.10404663
-67.90234470
0.10720215
0.10726929
67.24003792
-66.86065960
0.10689087
0.10548706
-66.27561188
-65.96417046
0.10466309
0.10649414
-66.16404629
0.10701904
-66.76456833
-68.13407993
0.10327148
-75.98313046
0.08069458
-104.92083740
0.04978485
M = 125
-70.68010235
0.09464722
0.10390015
-68.94157696
-68.19352627
0,10682373
0.10668945
-67.34261131
0.10587158
-67.09767151
0.10523682
-67.058012%
-67.17504501
0.10372925
-67.22918987
0.10316772
-67.11609936
0.10303955
-66.71271324
0.10313721
-66.62364197
0.10561523
-69.28378487
0.10061646
-70.35782337
0.09663696
-75.94707718
0.08054886
-104.09012318
0.04991760
Ti
BW
Minimax
Tx
t2
M = 16
0.58995418
0.59357118
0.58594327
0.55715312
0.49917424
1
2
3
4
5
0.58985167
0.59743846
0.59911696
0.59674101
0.59417456
0.58771575
0.58216391
0.54712777
0.49149549
1
2
3
5
7
9
11
13
0.58945943
059.476127
0,59577449
0.59415763
0.59253047
0.58845983
0.58660485
0.58862042
0.58894575
0.58320831
0.54500379
0.48965181
1
2
-65.27693653
-62.85937929
-62.96594906
-66.03942485
-71.73997498
0.10703125
0.12384644
0.12827148
0.12130127
0.11066284
M = 32
-67.37020397
0.09610596
-63.93104696
0.11263428
-62.49787903
0.11931763
0.12541504
-61.28204536
-60.82049131
0.12907715
-59.74928167
0.12068481
-62.48683357
0.13004150
-70.64571857
0.11017914
0.60559357
0.62201631
0.62855407
0.61952704
0.60979204
0.59045212
0.60560235
0.61192546
0.61824023
0.62307031
0.60685586
0.62821502
0.60670943
M = 64
3
4
5
9
13
17
21
25
29
-70.26372528
-67.20729542
-65.80684280
-64.95227051
-64.42742348
-63.41714096
-62.72142410
-62.37051868
-62.04848146
-61.88074064
-70.05681992
1
2
3
4
6
9
17
25
33
41
49
57
61
-70.58992958
-68.62421608
-67.66701698
-66.95196629
-66.32718945
-66,01315498
-65.89422417
-65.92644215
-65.95577812
-65.97698021
-65.67919827
-64.61514568
-71.76589394
0.09376831
0.10411987
0.10850220
0.11038818
0.11113281
0.10936890
0.10828857
0.11031494
0.11254273
0.11994629
0.10717773
0.58789222
0.59421778
0.59666158
0.59730067
0.59698496
0.59088884
0.58738641
0.58968142
0.59249461
0.60564501
0.59842159
M --= 128
0.58933268
0.59450024
0.59508549
0.59187505
0,59821869
0.58738706
0.58358265
0.58224835
0.58198956
0.58245499
0.58629534
0.57812192
0.57121235
0.54451285
0.48963264
0.09445190
0.10349731
0.10701294
0.10685425
0.10596924
0.10471191
0.10288086
0.10182495
0.10096436
0.10094604
0.09865112
0.09845581
0.10496826
0.58900996
0.59379058
0.59506081
0.59298926
0.58953845
0.58593906
0.58097354
0.57812308
0.57576437
0.57451694
0.56927420
0.56604486
0.59452277
C4
Minimax
Af = 16
-51.60668707
-47.48000240
-45.19746828
-44.32862616
-45.68347692
-56.63700199
M = 32
-52.64991188
-49.39390278
-47.72596645
-46.68811989
-45.33436489
-44.30730963
-43.11168003
-42.97900438
-56.32780266
Af = 64
-52.90375662
-49.74046421
-48.38088989
-47.47863007
-46.88655186
-46.46230555
-45.46141434
-44.85988188
-44.34302616
-43.69835377
-42.45641375
-56.25024033
Af = 128
-52.96778202
-49.82771969
-48.51341629
-47.67455149
-47.11462021
-46.43420267
-45.88529110
-45.21660566
-44.87959814
-44.61497784
-44.32706451
-43.87646437
-42.30969715
-56.23294735
h
0.26674805
0.32149048
0.34810181
0.36308594
0.36661987
0.34327393
0.26073609
0.30878296
0.32984619
0.34217529
0.35704956
0.36750488
0.37810669
0.38465576
0.35030518
0.25923462
0.30603638
0.32510986
0.33595581
0.34287720
0.34774170
0.35859375
0.36470337
0.36983643
0.37586059
0.38624268
0.35200195
0.25885620
0.30534668
0.32404785
0.33443604
0.34100952
0.34880371
0.35493774
0.36182251
0.36521607
036784058
037066040
037500000
0.38807373
035241699
App. C
App. C
BW
1
2
3
4
5
1
2
3
5
7
9
11
13
1
2
3
4
5
9
13
17
21
25
29
1
2
3
4
6
9
17
25
33
41
49
57
61
Source;
Minimart
Ti
M = 16
-77.26126766 0.05309448
-73.81026745 0.07175293
-73.02352142 0.07862549
-77.95156193 0.07042847
-105.23953247 0.04587402
M = 32
-80.49464130 0.04725342
-73.92513466 0.07094727
-72.40863037 0.08012695
-70.95047379 0.08935547
-70.22383976 0.09403687
-69.94402790 0.09628906
-70.82423878 0.09323731
-104.85642624 0.04882812
M = 64
-80.80974960 0.04658203
-75.11772251 0.06759644
-72.66662025 0.07886963
-71.85610867 0.08393555
-71.34401417 0.08721924
-70.32861614 0.09371948
-69.34809303 0.09761963
-68.06440258 0.10051880
-67.99149132 0.10289307
-69.32065105 0.10068359
-105.72862339 0.04923706
M == 128
-80.89347839 0.04639893
-77.22580583 0.06295776
-73.43786240 0.07648926
-71.93675232 0.08345947
-71.10850430 0.08880615
-70.53600121 0.09255371
-69.95890045 0.09628906
-69.29977322 0.09834595
-68.75139713 0.10077515
-67.89687920 0.10183716
-66.76120186 0.10264282
-69.21525860 0.10157471
-104.57432938 0.04970703
Rabiner et al.
T2
0.41784180
0.49369211
0.51966134
0.51158076
0.46967784
0.40357383
0.49129255
0.52153983
0.54805908
0.56031410
0.56637987
0.56226952
0.48479068
0.40168723
0.48390015
0.51850058
0.53379876
0.54311474
0.56020256
0.56903714
0.57543691
0.58007699
0.57729656
0.48767025
0.40117195
0.47399521
0.51361278
0.53266251
0.54769675
0.55752959
0.56676912
0.57137301
0.57594641
0.57863142
0.58123560
0.57946395
0.48900685
05
C6
App. C
Appendix D
List of MATLAB Functions
a b s(x )
r e a l(x )
im a g (x )
c o n j(x )
e x p (z )
su m (x )
p ro d (x )
a n g le(x )
log(a;>
D2
App. D
loglO(x)
sq r t(x )
CH APTER 2
conv(x, h )
fliplr(x)
filter(b, a , x )
filler(6.1, x )
r a n d (l, N )
r a n d n (l, N )
xcorr(x, y )
xcorr(x)
CH APTER 3
roots(a)
residuez(b, a )
, q n \
deconv(i>, a)
poly(r)
pzplotz(b, a )
App. D
fi)ter(b, a , x , x ic )
D3
CHAPTER 4
freqz(6, a , N )
freqz(6, a , N , whole)
freqz(b, a , u>)
grpdelay(t>, a, N )
com p utes the group d elay o f the filter w ith num era
tor polyn om ial having coefficients b and denom inator
p olyn om ial with coefficients o , at N p oints over the
interval (0 , jr).
In .
CHAPTER 5
dfs(x, N )
Jdfs ( y , N )
N.
rem (n. N )
m od(n , N )
com p utes n m od N.
dft(x, N )
idft(AT, N )
ovrlpsav(x, h, N )
CHAPTER 6
ffl(x , N )
i (X , N )
fftshift(x)
CHAPTER 7
dir2cas(b, a)
D4
App. D
cas2dir(bo, B , A )
dir2par(b, a )
par2dir(C0B, A )
dir21atc(b)
latc2dlr(AT)
dir2ladr(b, a)
Iadr2dir(AT, C )
casfiltr(60, B , A , x )
parfiltr(C, B , A , x )
im plem ents the parallel form IIR realization o f a dilter with input seq u en ce x .
latcfilt(i, x )
ladrfilt(K, C . x )
round(x)
fix(x)
sign(x)
ss2tf(J4 , jB, C , D , i u )
ss2zp(J4, D , C , D , tu )
CH APTER 8
boxcar(M)
bartlett(M )
hanning(M)
App. D
ham m iitg(M )
blackm an(M )
kaiser(M )
buttap(iV)
D5
chebiap(iV, R )
ellipap(7V, R P, A S)
freqs(fc>, a , u>)
butter(iV, u n )
chebyl(7V, R p , urn)
cheby2(AT, A S i u>n)
e l l i p ( N , R p , A s ,u>n)
designs a digital low pass elliptic filter o f order N , passband ripple R p , stopband ripple A s, and cu to ff fre
quency cun.
remez(7V, / , m )
remez ( N , / , m , ftype')
butter(7V, w n , high)
botter(iV, w n , bandpass)
D6
App. D
ellilp(iV, R p , A s , w n )
.B u r)
lp2bs(num, den,
u jo
lp2hp(num, den, u o )
transform s an analog low p ass filter to an analog lowpass filter with cu toff frequency coo.
polyfit(x, y , n )
CH APTER 9
spline(x, y , x i )
spline(jTit, x , t)
C H A P T E R 10
dnsam ple(x, M )
V o l. 6, pp. 4 1 - 5 2 , Ju ly .
B e r k , K. N. 1974. C o nsisten t A u toreg ressiv e Sp ectral E stim a te s, A n n . Stat., \ o \ . 2, p p . 4 8 9 502.
B e r n h a r d t , P. A., A n t o n i a d is , D. A., and D a R o s a , A. V. 1976. L u n ar P ertu rb ation s in
Y o rk .
R1
R2
ety o f Exp lo ratio n Geophysicists, O k lah om a C ity, O k la ., O cto b er. R e p rin te d in M odern
Spectrum A n a ly sis, D . G . C hildres, ed. I E E E press, N ew Y o rk .
B u r g , J. P. 1968. A New A nalysis T ech n iq u e fo r T im e S eries D a ta . N A T O A d vanced
Study Institu te on Signal Processin g with E m p h asis on U n d erw ater A cou stics, A ugust
1 2 -2 3 . R ep rin ted in M o d e m Spectrum A n a ly s is , D . G . C h ilders, ed ., I E E E P ress, New
Y o rk .
B u r g , J. P. 1972. T h e R elatio n sh ip B e tw ee n M axim um E n tro p y and M axim u m L ik elih o od
S p e ctra , G e o ph ysics, V o l. 37, pp. 3 7 5 -3 7 6 , A p ril.
B u r g , J. P. 1975, M axim um E n tro p y S p ectral A n aly sis, P h .D . d issertatio n , D ep artm en t
o f G eo p h ysics, Stan ford U niversity, Stan fo rd , C alif., M ay .
B u r r u s , C. S ., and P a r k s , T. W . 1970. T im e -D o m a in D esig n o f R e cu rsiv e D igital F ilte rs.
I E E E Trans. A u d io an d Electroacoustics, V o l. 18, pp. 1 3 7 -1 4 1 , Ju n e .
B u r r u s , C. S. and P a r k s , T . W . 1985. D F T / F F T an d Co n v o lu tio n A lgo rith m s, W iley, New
Y o rk .
R3
Filter Sections Without Limit Cycles," IE E E Trans. Circuits and Systems, Vol. CAS-31,
pp. 141-146, February.
C a d z o w , J. A . 1979. ARM A Spectral Estimation: An Efficient Closed-Form Procedure,
tion Error Procedure, IE E E Trans. Geoscience Remote Sensing, Vol. GE-19, pp. 24-28,
January.
C a d z o w , J. A. 1982. Spectral Estimation: An Overdetermined Rational Model Equation
tions of Finite Impulse Response Digital Filters, Bell Syst. Tech. J., Vol. 52, pp. 329-345,
March.
C h a n , D. S. K., and R a b i n e r , L. R. 1973b. An Algorithm for Minimizing Roundoff Noise
in Cascade Realizations of Finite Impulse Response Digital Filters, Bell Sys. Tech. J.,
Vol. 52, pp. 347-385, March.
C h a n , D. S. K., and R a b i n e r , L. R. 1973c. Analysis of Quantization Errors in the Direct
Form for Finite Impulse Response Digital Filters, IE E E Trans. A udio and Electroacous
tics, Vol. AU-21, pp. 354-366, August.
C h a n g , T. 1981. Suppression of Limit Cycles in Digital Filters Designed w ith One
York.
C h e n , W. Y., and S te g e w , G. R. 1974. Experiments with Maximum Entropy Power Spectra
cess with Uncertain Observations, IE E E Trans. A utom atic Control, Vol. AC-17, pp. 707709, October.
C h o w , Y., and C a s s ig n o l, E. 1962. Linear Signal Flow Graphs and Applications, Wiley, New
York.
R4
R5
D e ls a rte ,
York.
D u h a m e l, P. 1986. Implementation of Split-Radix FFT Algorithms for Complex, Real, and
Real-Symmetric Data, IE E E Trans. Acoustics, Speech, and Signal Processing, Vol. ASSP34, pp. 285-295, April.
D u h a m e l, P., and H o l l m a n n , H. 1984. Split-Radix FFT Algorithm, Electron. Lett., Vol. 20,
New York.
D ym , H., a n d M c K e a n , H . P. 1972. Fourier Series and Integrals, Academic, New York.
E b e r t , P. M M a z o , J. E., and T a y l o r , M . G. 1969. Overflow Oscillations in Digital Filters,
That Are Free of All Finite Wordlength Limit Cycles, IE E E Trans. Acoustics, Speech,
and Signal Processing, Vol. ASSP-27, pp. 149-153, April.
F e t t w e i s , A. 1971. Some Principles of Designing Digital Filters Imitating Classical Filter
Maximum Entropy Power Spectrum Analysis, Phys. Earth Planet, Inter., Vol. 12, 201207, August.
F r i e d l a n d e r , B. 1982a. Lattice Filters for Adaptive Processing, Proc. IE E E , Vol. 70,
tation, Proc. 1980 International Conference on Acoustics, Speech, and Signal Processing,
pp. 332-335, April.
L. Y. 1958. Orthogonal Polynomials (in Russian) (English translation
sultant's Bureau, New York, 1961).
G e r o n im u s ,
by
Con
toregressive Models, IE E E Trans. A utom atic Control, Vol. AC-18, pp. 367-369, August.
A. J. 1969. An Introduction to Digital Filters, A u s t Tellcommun. Res., Vol. 3,
pp. 3-14, November.
G ib b s ,
R6
A. J. 1970. The Design of Digital Filters, A use. Telecommun. Res., Vol. 4, pp. 29-34,
May.
G ib b s ,
G o e rtz e l, G.
I., ed. 1986.1. Schiir Methods in Operator Theory and Signal Processing, Birkhauser
Verlag, Stuttgart, Germany.
G o h b e rg ,
G o ld ,
B., and - J o r d a n , K. L., Jr. 1969. A Direct Search Procedure for Designing Finite
Duration Impulse Response Filters, IE E E Trans. A u d io and Electroacoustics, Vol. AU17, pp. 33-36, March.
G o ld ,
G o ld ,
B., and
G o ld ,
R a d e r,
G o ld e n ,
G ood,
G o r s k i-P o p ie l,
J., ed. 1975. Frequency Synthesis: Techniques and Applications, IEEE Press,
New York.
D., K r a u s e , D. J., and M o o r e , J. B. 1975. Identification of Autoregressive-Moving
Average Parameters of Time Series, IE E E Trans. Autom atic Control, Vol. AC-20,
pp. 104-107, February.
G rau p e,
G ray ,
G ra y ,
G ray ,
G re n a n d e r,
G r iff ith s ,
G u ille m in ,
G u p ta ,
S. C. 1966. Transform and State Variable M ethods in Linear Systems, Wiley, New
York.
H a m m in g ,
York.
H a y k in ,
S. 1991. Adaptive Filter Theory, 2nd ed., Prentice Hall, Englewood Cliffs, N J.
H e l m e , B .,
R7
H e lm s , H .
H e lm s , H . D .
H e ls tro m ,
H e r r in g ,
H erm an n ,
H ild e b ra n d ,
N.J.
E., O p p e n h e i m , A. V., and S i e g e l , J. 1971. A New Technique for the Design
of Nonrecursive Digital Filters, Proc. 5th A nnual Princeton Conference on Information
Sciences and Systems, pp. 64-72.
H o f s te tte r ,
H o u s e h o l d e r , A . S.
Mass.
S. Y, 1977. Minimum Uncorrelated Unit Noise in State Space Digital Filter
ing. IE E E Trans. Acoustics, Speech, and Signal Processing, Vol. ASSP-25, pp. 273-281.
August.
J a c k s o n , L. B. 1969. An Analysis of Limit Cycles Due to Multiplication Rounding in
Recursive Digital (Sub) Filters, Proc. 7th A nnual Allerton Conference on Circuit and
System Theory, pp. 69-78.
H w ang,
Jack so n ,
Ja c k s o n , L.
R8
J a h n k e . E .. a n d E m d e , F.
J a in .
G. M., and
San Francisco.
J e n k in s ,
W a tts ,
J o h n s t o n , J.
Jo h n so n , D. H.
Jo n es,
J u r y . E . I.
1964. Theory and Applications o f the z-Transform M ethod, Wiley, New York.
K a ila th ,
K a ila th ,
K a ila th .
K a ila th ,
K a ila th ,
K a is e r . J. F. 1963. Design Methods for Sampled Data Filters." Proc. First Allerton Con
ference on Circuit System Theory, pp. 2 2 1 -2 3 6 , November.
K a is e r,
K a lo u p ts id is ,
K a lm a n ,
K a lm a n ,
R. L. 1980. Inconsistency of the AIC Rule for Estimating the Order of Autore
gressive Models, IE E E Trans. Autom atic Control, Vol. AC-25, pp. 996-998, October
K ashyap.
K aveh,
K aveh,
R9
K ay,
K ay,
K ay,
K e s le r,
S. B., ed. 1986. M odem Spectrum Analysis II, IEEE Press, New York.
K n o w le s , J.
H. 1988. New Split Levinson, Schur, and Lattice Algorithms for Digital Signal
Processing, Proc. 1988 International Conference on Acoustics, Speech, and Signal Pro
cessing, pp. 1640-1642, New York, April.
K rish n a ,
K ro m er,
K u n g , S. Y
K ung,
L aco ss,
L ang,
1947. The Wiener RMS Error Criterion in Filter Design and Prediction,
J. Math. Phys., Vol. 25, pp. 261-278.
L e v in so n , N.
L evy,
H and
L essm an,
B. 1971. Effect of Finite Word Length on the Accuracy of Digital Filters A Review,
IE E E Trans. Circuit Theory, Vol. CT-18, pp. 670-677, November.
L iu ,
J. 1975. Linear Prediction: A Tutorial Review, Proc. IE E E , Vol. 63, pp. 561
580, April.
M a k h o u l,
M a rp le ,
S. L., J r . 1987. Digital Spectral Analysis with Applications, Prentice Hall, Englewood
Cliffs, N J.
a r z e t t a , T . L . 1983. A New Interpretation for Capons Maximum Likelihood Method
of Frequency-Wavenumber Spectral Estimation, IE E E Trans. Acoustics, Speech, and
Signal Processing, Vol. ASSP-31, pp. 445-449, April.
M a rp le ,
R10
T. L., and Lang, S. W. 1983. New Interpretations for the MLM and DASE
Spectral Estimators, Proc. 1983 IC A SSP , pp. 844-846, Boston, April.
M a rz e tta ,
M a rz e tta ,
S. J., and
New York.
M aso n ,
Z im m e rm a n ,
M c C le lla n ,
M cD onough,
M c G ille m , C .
M e d itc h ,
York.
L., M u l l i s , C . T ., and R o b e r t s , R . A . 1981. Low Roundoff Noise and Normal
Realizations of Fixed-Point IIR Digital Filters. IE E E Trans. Acoustics, Speech, and
Signal processing, Vol. ASSP-29, pp. 893-903, August.
M ills , W .
M o r f , M V ie ir a ,
M u llis ,
M u llis ,
M u s ic u s , B .
W. I. 1981. Extension to the Maximum Entropy Method III, Proc. 1st A SSP
Workshop on Spectral Estimation, pp. 1.7.11.7.6, Hamilton, Ontario, Canada, August.
N ew m an,
N i k i a s , C . L .,
N ik ia s ,
A. H. 1976. Spectral Analysis of a Univariate Process with Bad Data Points, via
Maximum Entropy and Linear Predictive Techniques, N U SC Technical Report TR-5303,
New London, Conn., March.
N u tta ll,
N y q u is t,
O p p e n h e im ,
R11
O p p e n h e im ,
Filters and the Fast Fourier Transform, Proc. IE E E , Vol. 60, pp. 957-976. August.
O p p e n h e im , A. V ., and W i l l s k y , A. S. 1983. Signals and Systems, Prentice Hall, Englewood
Cliffs, N J.
P a p o u lis ,
A. 1962 The Fourier Integral and Its Applications, McGraw-Hall, New York.
P a p o u lis ,
T. W., and M c C l e l l a n , J. H. 1972b. A Program for the Design of Linear Phase Finite
Impulse Response Digital Filters, IE E E Trans. A udio and Electroacoustics, Vol. AU-20,
pp. 195-199, August.
P a rk s,
P a rze n ,
P a rze n ,
P eacock,
Z., J r . 1987. Probability, Random Variables, and Random Signal Principles, 2nd
ed., McGraw-Hill, New York.
P e e b le s , P.
V. F. 1973. The Retrieval of Harmonics from a Convariance Function, Geophys. J. R. Astron. Soc., Vol. 33, pp. 347-366.
P isa re n k o ,
P o o le , M . A.
P r ic e , R. 1990. Mirror FFT and Phase FFT Algorithms, unpublished work, Raytheon
FIR Digital Differentiators, Bell Syst. Tech. J., Vol. 53, pp. 333-362, February.
R a b i n e r , L. R ., and S c h a f e r , R . W . 1974b. On th e Behavior of Minimax F I R Digital Hilbert
Transformers, Bell SysL Tech. J., Vol. 53, pp. 363-394, February.
R a b i n e r , L. R ., and S c h a f e r , R. W. 1978. Digital Processing o f Speech Signals, Prentice Hall,
Englewood Cliffs, N J.
R a b i n e r , L. R., S c h a f e r , R . W ., and R a d e r , C. M. 1969. The Chirp ^-Transform Algorithm
and Its Applications, Bell S yst Tech. J., Vol. 48, pp. 1249-1292, May-June.
R a b i n e r , L . R ., G o l d , B., a n d M c G o n e g a l, C . A . 1970. An Approach to the Approxima
R12
R a b i n e r , L . R ., M c C l e l l a n , J . H ., a n d P a r k s , T .
R a d e r, C. M .
R a d e r,
R ad er,
R ad er,
R a m s ta d , T. A.
R e m e z, E. Y a.
R js s a n e n .
R o b e r t s , R . A .,
and
M u llis ,
C.
T,
Mass.
R o b in s o n ,
R o b in so n ,
R o b in s o n ,
and
wood Cliffs, N.J.
R o b i n s o n , E . A .,
T r e i t e l , S.
R o y , R ., P a u l r a j ,
S a fra n e k ,
S a k a i,
S a n d b e rg ,
S a to riu s ,
R13
S c h a f e r , R.
S c h e u e rm a n n ,
S c h m id t,
S c h m id t,
S c h o tt,
I. 1917. On Power Series Which Are Bounded in the Interior of the Unit Circle,
J. Reine Angew. Math., Vol. 147, pp. 205-232, Berlin. For an English translation of the
paper, see Gohberg 1986.
S ch u r,
S c h u s te r , S ir A r t h u r .
S e d l m e y e r , A .,
S h a n k s , J. L. 1967. Recursion Filters for Digital Processing," Geophysics, Vol. 32, p p . 3 3 5 1 , February.
Shannon,
January.
D. H., ed. 1986. Analog-Digital Conversion H andbook, Prentice Hall, Englewood
Cliffs, N.J.
S h e in g o ld ,
S ie b e rt,
R. C. 1967. A Method for Computing the Fast Fourier Transform with Auxil
iary Memory and Limit High speed Storage. IE E E Trans. A udio and Electroacoustics,
Vol. AU-15, pp. 91-98, June.
S in g le to n ,
R. C. 1969. An Algorithm for Computing the Mixed Radix Fast Fourier Trans
form, IE E E Trans. A u dio and Electroacoustics, Vol. AU-17, pp. 93-103, June.
S in g le to n ,
S m ith ,
M. J. T., and E d d i n s , S. L. 1988. Subband Coding of Images with Octave Band Tree
Structures, Proc. 1987 IE E E International Conference on Acoustics, Speech, and Signal
Processing, pp. 1382-1385, Dallas, April.
S m ith ,
K. 1965. The Equivalence of Digital and Analog Signal Processing, Inf. Control,
Vol. 8 , pp. 455-467, October.
S te ig litz ,
S te ig litz ,
R14
T. G. 1966. High Speed Convolution and Correlation, 1966 Spring Joint Com puter Conference, A F IP S Proc., Vol. 28, pp. 229-233.
S to c k h a m ,
S to re r.
S w a r z tr a u b e r.
346. July.
D. N. 1979a. A Comparison Between Burgs Maximum Entropy Method and a
Nonrecursive Technique for the Spectral Analysis of Deterministic Signals, J. Geophys.
Res.. Vol. 84, pp. 679-685, February.
S w in g le r,
S w in g le r,
S w in g le r,
G. 1967. Orthogonal Polynomials, 3rd ed., Colloquium Publishers, no. 23, American
Mathematical Society, Providence, R.l.
Szego,
T h o rv a ld s e n , T.
Tong,
H. 1977. More on Autoregressive Model Fitting with Noise Data b y Akaike's Infor
mation Criterion," IE E E Trans. Information Theory, Vol. IT-23, pp. 409-410. May.
Tong,
T re tte r.
T u fts ,
U lr y c h .
U lry c h ,
V a id y a n a th a n ,
V a id y a n a th a n ,
Cliffs, N.J.
J. 1984. Multi-dimensional Sub-band Coding: Some Theory and Algorithms,
Signal Processing, Vol. 6 , pp. 97-112, April.
V e tte r li,
V e tte rli,
V ie ir a ,
W a lk e r ,
W ax,
R15
P. D. 1967. The Use of Fast Fourier Transform for the Estimation of Power Spectra:
A Method Based on Time Averaging over Short Modified Periodograms, IE E E Trans.
A u d io and Electroacoustics, Vol. AU-15, pp. 70-73, June.
i e n e r , N. 1949. Extrapolation, Interpolation and Sm oothing o f Stationary Time Series with
Engineering Applications, Wiley, New York.
W e lc h ,
Accumulator, 58
Akaike information criterion (AIC), 932
Algorithms, 4
Chiip-z, 482-486
FFT, 448-475
Goertzel, 4 8 0 -4 8 1
Remez, 645-647
Aliasing
frequency-domain, 22, 276-279
time-domain. 276
Alternation theorem, 643
Amplitude, 16
Analog-to-digital (A/D) converter, 5, 21,
748-762
oversampling, 756-762
Analog signals (see Signals)
Antialiasing filter, 746-747
Autocorrelation
of deterministic signals, 118-133
of random signals, 327-329, A3
Autocovariance, A4
Autoregressive-moving average (ARMA)
process, 855, 922
autocorrelation of, 856
Autoregressive (AR) process, 855, 922
autocorrelation of, 856
Averages
autocorrelation, A3
autocovariance. A4
ensemble, A3-A5
for discrete-time signals, A6-A7
expected value, A3
moments, A3
power, A3
time-averages, A8-A10
Backward predictor, 515. 860
Bandlimited signals, 281
Bandpass filter, 331. 337-338
Bandpass signal, 280, 738-742
Bandwidth, 279-282. 619
Bartlett's method (see Power spectrum
estimation)
Bessel filter, 690-691
Bibliography, R1-R15
Bilinear transformation. 676-680
Binary codes, 752
11
12
Index
Parseval's theorem, 424
periodicity, 410
symmetry, 413415
table. 415
time reversal. 421
relationship to Fourier series. 407. 409
relationship to Fourier transform, 407
relationship to -transform, 408
use in frequency analysis, 433 -44 0
use in linear filtering, 425-433
Discrete-time signals, 9, 43-55
antisymmetric (odd), 5 1
correlation, 1 IS133
definition, 9, 43
exponential, 46-47
frequency analysis of. 247-264
nonperiodic, 50
periodic. 14-19
random, 12
representation of, 44
sinusoidal, 16-18
symmetric (even), 51
unit ramp, 45
unit sample, 45
unit step, 45
Discrete-time systems, 56-71
causal, 6 8-6 9, 86-87
dynamic, 62
finite-duration impulse response. 90-91
finite memory, 62, 90-91
implementation of, 500-556
infinite-duration impulse response. 90-91
infinite memory, 62, 90-91
linear, 65
memoryless, 60
noncausal, 6 8-69
nonlinear, 67
nonrecursive, 94-95
recursive, 92-93
relaxed, 59
representation, 44
shift-invariant, 63-65
stability test for, 213-219
stability triangle, 216
stable (BIBO), 69-70, 87-90
static, 62
time-invariant, 63-65
unit sample (impulse) response, 76-82
unstable, 6 9-70, 87-90
Distortion
amplitude, 317
delay. 332
harmonic, 378
phase, 317
Down sampling, 54, 55
See also Sampling rate conversion
Dynamic range, 35, 561, 751
Eigenfunction, 307
Eigenvalue. 307, 547
Eigenvector, 547
Elliptic fitters, 689-690
Emigy
definition, 47
density spectrum, 243-246, 260-264
partial. 391
signal. 47-49
Energy density spectrum, 243-246,
260-264
computation. 897-902
Ensemble, AI
averages, A3-A3
Envelope, 740-741
complex, 740
Envelope delay, 332
Ergodic, A8
correlation-ergodic, A9-A10
mean-ergodic, A8-A9
Estimate (properties)
asymptotic bias, 904
asymptotic variance, 904
bias, 904
consistent, 904
variance, 904
See also Power spectrum estimation
Fast Fourier transform (FFT) algorithms,
448-475
application to
correlation, 4 77-479
efficient computation of DFT, 448-475
linear filtering, 477-479
implementation. 473-475
minor FFT, 473
phase FFT, 473
radix-2 algorithm. 456-464
decimation-in-frequcncy. 461-464
decimation-in-time. 456-461
radix-4 algorithm, 465-469
split-radix, 470-473
Fibonacci sequence, 201, 548-549, 553
difference equation, 201-202
state-space form, 548-549, 553
Filter
bandpass, 331, 337-338
definition, 317, 330-332
design of linear-phase FIR, 620-665
transition coefficient for, C1-C5
design of HR filters, 330-354, 666-692
all pass, 350-352
comb, 345-349
notch, 343-344
by pole-zero placement, 333-354
resonators (digital), 340-343
distortion. 317
distortionless, 332
frequency-selective, 331
highpass, 331. 333-334
ideal. 331-332
least squares inverse, 711-718
lowpass, 331, 333-334
nonideal, 332-333
passband ripple, 619
stopband ripie, 619
transition band, 619
prediction error filter, 512. 858
smoothing, 39
structures, 500-556
Wiener filter, 715, 880-890
n h e r banks, 825-831
Index
13
Fourier transform (continued)
symmetry, 287-294
table, 304
time-reversal, 297
time-shifting, 296
relationship to ;-transform, 264-265
of signals with poles on unit circle,
267-268
Frequency, 14-18
alias, 18, 26
content, 29
folding, 28, 274-275
fundamental range, 19
highest. 19
negative. 15
normalized, 24
positive, 15
relative, 24
Frequency analysis
continuous-time aperiodic signals,
240-243
continuous-time periodic signals,
232-240
discrete-time aperiodic signals, 253-256
discrete-time periodic signals, 247-250
dualities, 282-286
for LTI systems, 305-330
table of formulas for, 285
Frequency response. 311
computation. 321325
to exponentials, 306-314
geometric interpretation of, 321-325
magnitude of, 311
phase of. 311
relation to system function, 319-321
lo sinusoids, 311-314
Frequency transformations (see Filter
transformations)
Fundamental period, 17
Gibbs phenomenon, 259, 629
Goertzel algorithm, 480-481
Granular noise, 753
Group (envelope) delay, 332
Harmonic distortion. 378, 779-780
High-frequency signal. 280
Hilbert transform, 618
Hilbert transformer, 657-662, 739
Homomorphic
deconvolution, 365-367
system, 366
HR filters
design from analog filters, 666-692
by approximation of derivatives,
667-671
by bilinear transformation, 676-680,
692
by impulse invariance, 671-676
by maiched-z transformation, 681
least-squares design methods, 706-724
frequency domain optimization,
719-724
least squares inverse, 711
718
14
Index
variance, 903
Phase. 14, 741
maximum. 359-363
minimum, 359-363
mixed, 359-363
response, 311
Pisarenko method, 948-950
Poles, 172
complex conjugate, 193-194, 218-219
distinct, 178-179, 189-191. 217
location, 178-181
multiple-order, 179, 191-192
Polyphase filters, 797-800
for decimation, 800
for interpolation, 797
Power
definition, 49
signal. 50
Power density spectrum, 235-240
definition. 236
estimation of (see Power spectrum
estimation)
periodic signals, 235-240, 250-253
random signals, A5-A7
rectangular pulse train, 237-240
Power spectrum estimation
Capon (minimum variance) method.
942-945
direct method. 899
eigenanalysis algorithms, 950-959
ESPRIT. 953-955
MUSIC, 952
order selection, 955-956
Pisarenko, 948-950
experimental results, 936-942
from finite data, 902-908
indirect method, 899
leakage, 899
nonparametric methods, 908 -92 0
Bartlett, 910-911, 917
Blackman-Tukey, 913-916, 918-919
computational requirements, 919-920
performance characteristics, 916-919
Welch, 911-913, 917-918
parametric (model-based) methods,
920-942
AR model, 924
AR model order selection, 9 3 1-932
ARMA model, 924, 9 34-936
Burg method, 925-928
least-squares, 929-930
MA model, 924, 933-934
maximum entropy method. 928
model parameters, 923-924
modified Burg, 928
relation to linear prediction. 923-924
sequential least squares, 930-931
Yule-Walker. 925
use of DFT, 906-908
Prediction coefficients, 857
Prediction-error filter, 512, 858
properties of, 873-876
Principal eigenvalues, 951
Probability density function, A1-A3
Probability distribution function. B1-B2
mean-ergodic, A8-A9
power density spectrum, A5-A6
response of linear systems, 327-330
autocorrelation, 327-329
expected value, 328
power density spectrum, 329-330
sample function, A 1
stationary, A3
wide-sense, A3
time-averages, A8-A9
Random signals (see Random processes)
Rational z-transforms, 188-196
poles, 172-174
zeros, 172-174
Recursive systems, 116-118
References, R1-R15
Reflection coefficients, 512, 536. 863-864
Resonator (see Digital resonator)
Reverse (reciprocal) polynomial. 515, 861
backward system function. 515, 861
Round-off error, 565-567, 590-598
Sample function. Al
Sample-and-hold, 748-749, 765
Sampling, 9, 21. 23, 269-279, 742-746
aliasing effects. 2 7-28, 271-279
of analog signals, 23-33, 269-279.
742-746
of bandpass signals. 742-746
of discrete-time signals. 782-845
frequency, 23
frequency domain, 394-399
interval, 23
Nyquist rate, 30
period, 23
periodic, 23
rate, 23
of sinusoidal signals, 24-28
theorem, 29-30
time-domain, 2 4-2 8, 269-279
uniform, 23
Sampling-rate conversion, 782-845
applications of, 821-845
for DFT filter banks, 825-831
for interfacing, 823
for lowpass filters, 824
for oversampling A/D and D/A.
843-844
for phase shifters. 821-822
for subband coding, 831-832
for transmultipiexing, 841-843
by arbitrary factor. 815-821
of bandpass signals, 810-815
decimation, 784-787
filter design for, 792-806
interpolation, 784. 787-790
multistage, 806-810
polyphase filters for, 797-800
by rational factor, 790-792
Sampling theorem, 29-30, 269-279
Schur algorithm, 868-872
pipelined architecture for, 872-873
split-Schiir algorithm. 892
15
Schur-Cohn stability test. 213-215
conversion to lattice coefficients.
213-214
Shanks' method, 709-710
Sigma-delta modulation. 758
Sign magnitude representation, 558
Signal flowgraphs, 521-526
Signals, 2-3
analog, g
antisymmetric, 51
aperiodic. 50
bandpass, 280. 738-742
complex envelope. 740
envelope, 741
quadrature components. 740
continuous-time. 8
deterministic. 11
digital. 11
discrete-time, 9, 43-55
electrocardiogram (ECG), 7
equivalent lowpass. 740
harmonically related. 19
multichannel. 7
multidimensional, 7
natural. 282
frequency ranges. 2K2-283
periodic, 15
random, 12, AI-A 10
correlation-ergodic. A9-A10
ergodic. A9
expected value of, A4
mean-ergodic. A9-A10
moments of. A4-A7
statistically independent. A4
strict-sense stationary'. A3
time-averages, A 8-A I0
wide-sense stationary. A3
unbiased. A8
unconelated. A4
seismic, 283
sinusoidal. 14
speech. 2-3
symmetric, 51
Signal subspace, 951
Sinusoidal generators {.tee Oscillators)
Spectrum, 230-232
analysis. 232
estimation of. 232. 896-959
line, 237
Set also Power spectrum estimation
Split-radix algorithms. 470-473
Stability of LTI systems, 208-217
of second-order systems, 215-217
Stability triangle. 216
State-space analysis, 539-566
definition of stale, 540
for difference equations. 540-542
LTI state-space model. 542
output equation. 542
relation to impulse response, 551-553
Index
solution of state-space equations,
543-544
state equations, 542
state space, 541
state-space realizations
cascade form, 555
coupled form, 556
minimal, 546
normal (diagonal) form, 555
parallel form, 555
state transition matrix, 544
state variables, 539
z-domain, 550-554
zero-input response, 544
zero-state response. 544
Steady-state response. 206-207, 314-316
Structures. 111-118
direct form I, 111-112
direct form II, 113-114
Subband coding, 831-833
Superposition principle, 65
Superposition summation, 76
System, 3, 56-59
dynamic, 62
finite memory, 62
infinite memory, 62
inverse, 356
invertible, 356
relaxed, 59
Syslem function 181-184, 319-321
of all-pole system, 183
of all-zero system, 182-183
of LTI systems, 182-183
relation to frequency response, 319-321
System identification, 355, 363-364
System modeling, 855
System responses
forced, 96-97
impulse, 108-110
natural (free), 97, 204
o f relaxed pole-zero systems, 172-184
steady-stale, 206-207
of systems with initial conditions.
204-206
transient, 107, 206-207
zero-input, 97
zero-state, 96
Toeplitz matrix, 865, 883
Time averages, A8-A10
Time-limited signals, 281
Transient response. 107, 206-207. 314-315
Transition band, 619
Transposed structures, 521-526
Truncation error, 35, 564-565
Twos complement representation, 559
Uniform distribution, 487-488, 565-568,
755
Unit circle, 265, 267
Unit sample (impulse) response. 108-110