• Non ci sono risultati.

Design of IIR eigenfilters in the frequency domain

N/A
N/A
Protected

Academic year: 2021

Condividi "Design of IIR eigenfilters in the frequency domain"

Copied!
4
0
0

Testo completo

(1)

DESIGN

O F I I R EIGENFILTERS IN T H E FREQUENCY DOMAIN

F.

Argenti,

E. Del

Re

D%pnrti,inento

di

liige,qner.%n

H e

f t w n i c n ,

lJniversitri

di Firenze

Via

cli

Santa Marta,

3

-

50131)

Firenze

-

Italy

Tel.: +3!)

55 4796:

424

-

Fax: $39 55

4706

485

e-mail:

argenti@cosimo.die.unifi.it

Abstract: In this work a iiiethod to apply the eigeiifilter approach to the clesigii of IIR filters in the frequeiicy doiiiaiii is described. ' l h c eigeiifilter approach is an appealiiig way of desigiiiiig digit,al filters: clue iiiaiiily t o the +iiplicit,y of it,s iinpleiiieiitatioii: an error fuiictioii is expressed as a quadratic form in the filter coefiicieiit,s and Ihe search of the eigeiivector corresponding to the iiiiiiiiiiuiii eigenvalue yields t.he optiiiiuiii solution. 'lhis t,ecliiiicpe has been successfully applied t,o the clesigii of both VIR and Iltt filters. In this work tlie IIM case is

addressed: in our approach tlie error between a desired function aiid the response of a rational transfer fuiict,ioii

is expressed in t,he frequency domain. Some exaiiiples of iiuiiierical design are showii for different types of filters, lowpass aiid bandpass: t o slio~v t,he effectiveness of tlie presented inethod.

1. I N T R O D U C T I O N

l h e eigeiifilt,er approach is a siiiiplc aiid Aexiblc

way of designing digital filters. ' l h e iiiethod coii-

sist,s in expressing t,he error between a t,arget ancl a digital filt,er frequency respoiise as a real. syiii- iiieiric; posit.ive-clefiiiit,e quaclrat,ic form in the fil-

ter coefEcieiit,s. 'llie error can he referred either to tlie t,iiiie or t,o the frequency domain, or t,o both of t,lieiii. 'I'he eigeiivect,or corresponding t.o

the

iniiii-

iiiuiii eigeiivalue yields t,he opt,iiiium filt,er coefficients accordiiig t80 t,he chosen error measure.

' t h e iiiethod has heen iiitrocluced for least-squares desigii of a variety of linear phase Fllt digital filters in [I]. It has been extended to the case of FIR Hilbert t,raiisforiiiers aiicl digital differeiit,iat,ors in [2][3]. hi [4] t,he eigenfilt,er approach has been applied t.0 the design of FlH, filters wit,h an arbit,rary frequency re-

sponse aiicl iiot having: in general, a liiirar phase. Design of 118 eigeiifilt,erv in the tiinc cloiiiaiii has been addressed in [SI. A desired syiiniiet,rical iiifiiiit,e iiiipulse respoiise i s considerecl as t,he suin of a causal aiicl an anti-causal part,. A recursive difference equa- tion is used t o approximate t,he causal part. 'I'he error bet8weeii t,he t,arget, function aiicl t,he impulse respoiise of the system is expressed as a quaclrat,ic form in t,he filt,er coeficieiit,s; so t,liat. t,lie eigeiifil- ter approach caii be applied. In t,liis case: however:

a noncausal system is iiecessary t,o implement the

glol~al desired impulse respoiise. If a rausal iinple- ineiit,atioii is reyuired. this caii be obtained by substi- t,utiiig poles outside the unit, circle with their iiiverse conjugate and with a proper scaling of tlie transfer fuiict,ioii: t,herefore: st,ahlr poles are coiistraiiied to lx= double. Moreover. the error weighting fuiictioii operates in t,he h i i e cloiiiaiii. making more complex

a different, coiisiderat,ioii of the passbaiicls aiid of t.he st,ophands.

In [6][7] the eigeiifilt,er approach is applied to the

dcsigii of allpass sect,ioiis wit,li a givm phase re- sponse. If two allpass sc>c.i.ions are tlesigiiecl t o be

iii-phase ancl out-of-phase in the passband ailcl in tlie stopband, respectively, then the inethod can be ap- plied also to t,he desigii of IIR filt,ers [i][tl]; however. the degrees of the numerator aiid of the denoiiiiiia- tor are related to the degrees of the allpass €unctions composing t,he syst,ein aiid can iiot be completely ar- bitrary.

Design of equiripple I1H. filters with an arbitmry iiuinber of poles and zeros is dealt. with; for exaiii-

ple, in [9][10]. hi [lo] the solut'ioii of an eigeiivalue problem yields the filter coefficieiibs, even t,liough the classical eigeiifilter approach. based on t,he Hayleigli's principle [I] aiicl on the search of t,he iiiiiiiiiiuiii eigeii-

value of a positive-definite matrix, is not, nsed. In this work a new ancl simple iiiet,liod based oii the eigeiifilter approach t o desigii causal I1R filters mit,h an arbit,rary number of zeros aiid poles is preseiit,ed. It works in the frequency cloiiiain so t,liat differeiit

w e i g h can be assigned t,o t,he different, bands. More-

over; no constraints are posed on zeros and poles of the system, so yielding more degrees of freedom.

The iiiethod is presented iii the next, section. while in Sect,ioii

3

some exaiiiples of iiuiiierical desigii of IIR

filters are shown.

2. D E S I G N O F I I R E I G E N F I L T E R S ' l h ~ main problem iu desigiiiiig IIK. eigeiifilters is expressing the error between t,he t,arget. aiid the filt,er frequeiicy respoiise as a quadratic forin in the filt,er coefficients, 'Lliis task is easier in t,he FIR case; where the target fuiictioii is not rat,ioiial.

Let

H

( 2 ) be a rat,ioiial fuiictioii having

I U

zeros

aiid N poles (with arbitrary

111

aiid A'). i.e..

where U , 11

=

O j 1. . . . i V 2 aiid b,,, n =

0:

1; . . . : 111.

are real coeficieiit,s. Let H " ( U ) be a desired t,arget fiiiictmioii represeiit,iiig, in general; a lompasa. high- pass, baiidpass filter frequeiicy response. Let U'A IF

(2)

tlie bouiicls of each band (passband; transition band, stopband). For a lowpass filt,er, for example

(0.

w i ) ,

(wl w2) and (up; T ) are a passband, traiisitioii Imiid

and stopbaiid2 respect,ively.

Consider we are iiiteresl,ed oiily in approximating the magnitude of t h e t,arget, fuiict,ioii ~ " ( w ) . 111 our

approach, however, we will assign also a phase t o tlie function H " ( u J ) : tlie iiiit,ial guess will be a h e a r phase fuiiction. 'I'hereforr, if H : ( U ) is the target frequency response in tlie hand (wk, w k + l ) , we will assume:

if ( d k : w1;+1) is a passband

b) N ~ ( u ) = . ~ ~ ( J ) E - ; I " ~ ' if ( w k : ! w ' k + l ) is a traiisi-

e ) H:(W.) = o if (w,:wk:+L) is a st,opband 'L'lie choice of /i is discussed later. . l h e real fuiic- t,iou fk: (w) must. he chosen so that it, joins t,he ampli-

t,udes of the adjacent passband and st,opbaiid; i.e.,

it is a decreasing funct8ioii mit,li , f ( w k . )

=

1 ailcl

f ( w k + l ) =

0;

or; vicevetsa. an iiicreasiiig function

with f(w~.) =

0

aiicl f ( u ~ + i ) = 1. hi our examples, however! we will discuss iiiaiiily t,he case of transition

baiids considered as "don'18 care" bands.

In t,he ideal case: the frequency response

H

( w ) and

H"

( U ) coincide,

that

i s

tioii band

and, therefore? we should have

H"(w)(uo

+

ale-.+

+

. . .

+

a,\)t-Jh'"' ) = = b,,

+

blc-""

+

, , ,

+

b,\,/t-.jdl-

(3)

However, siiice the above equation can not be veri- f e d . in general, for all tlie €requencies. an error fuiic- tioii in tlie frequency doiiiain can lie defined for each iiiterval ( ~ k ) ~ k : + l ) :

k

wliere dk is a constant, t,liat weighs t,he k-th hand error function ( j k given by:

wibli

I,\/,

( U ) a posit,ive weiglit,ing fuiict,ion.

t,ors

11 we consider the clefiiiitioiis of- t,he following vec-

A =

[Q

. . .

CL,^ bo b i

. . .

b , ~ ~ ] ' " ( 8 )

then the error funct,ioiis $ k can be expressed as:

4,

=

Ld,,,

w A A ~ c , ( L J ) c ~ ' ( c ~ ~ ) A n . i , ( ~ ) dd+

+

~ L ~ k A t l A " C ~ . ( L J ) C ~ ' ( W ) A I/C'~(LU.) ~ U J ( 9 )

wliere superscript

'T

aiicl

*

deiiot,e traiisposit,ioii and coiijugat,ioii, respectively (A" = A siiice t,he fill-er coefficieiits are assumed real). 'Therefore: ( j k is given

by : ( 10)

4k:

= A' PkA where PA = A+lh;:J c ~ ( w ) c ~ ' ( w ) 1 ~ 1 ~ k : ( w ) c l w +

+ JkYkA+'

c ; ( u J ) c ; ( d ) l v k ( d ) d d (11)

is a symiiietricj real, positive-defiiiit,e

( M

+

N

+

2 ) x ( M

+

ili

+

2) matrix. 'Therefore; t#he glolml error fuiictioii @ caii be expressed as:

By using the eigeiifilt,er approach, t.lie optimal fil-

ter coefficient,s that iniiiiiiiize tlie error function @

are the elements of tlie eigenvector of t.he iiiat,rix

corresponding to the iiiiiiimuiii eigenvalue. 'I'lie coni- putatioii of tlie iiiatrices PA. can he performed iiuiiier- ically in each band (q, wk:+l).

He,tnnrks:

1) CJhoice of the wezyht ftinctzon bVk:(w); As can be seen from tlie above discussion, me have t.0 int#ro- duce a phase for the target function t,o express t,liP error as a quadrat,ic form in tlie filter coefticie1it.s.

However, me are interested oiily in approximaling the

magnitude of the target funct,ion: if the error b ' k : ( d ) i s small. t,lieii t,he magnitude constraint, is approxi- mately verified.

I n

some previous works [1][4]['i] a recursive upclatiiig of tlie weighting fiiiiction was in- troduced to obtaiii an almost, ecluiripple solnt,ioii. hi

our case, t.lie use o f t h i s recursive updating is rec- oiniiieiided for tlie method to coiiverge to a solutioii

satisfying the iiiagiiitude coiist#raiiits.

Let. A(") be the solution vector at. the ~ i - t h itera- bioii aiicl let

H

( r l j ( U ) be the correspoiicling frequency response.

'lhe

magiiit,iide error in the k-th Ixuid is given by:

' l h e weiglit,ing fiiiict,ion t.0 be used in the ( n + I ) - t h

it,erat,ioii will be:

(3)

wlirre eiiv(g(.c)) is tlie eiiwlope of the positive fuiic- tioii y( .c) (we used a h e a r iiit,erpolat,ioii hetween t,he

ii-iasiiiia of g( z ) ) . f3y usiiig this approach: larger neiglit#s are assigiirtl bo larger errors niit,il t,lie weightm

fuiict~iou does not. cllange a n y more. so that, an almost eqiiiripple solnt8ion i s obtmaiiiecl at, blie eiitl [1][4] [TI,

2 ) Y hi yet function p h c ccpclci

tr

ny : ils discnssecl

a l i o ~ e . we t,ry l o approuiniat,e a liiicar phase func- tion mit.11 a rat,ioual transfer function. Lxact linear phase is obt,aiiied if poles appear in pairs, one the inverse of t,he ot,lier. By assuming a linear phase

l,arget, funct8ioii at. each it,eratioii: we found that one

pole is usually placed in tlie traiisitioii lmid outside

the nnit circle. causal st.able system having t,lie

same iiiagiiit,ude of blie designed freqiiciicy response caii be olit,aiiietl by substit,ut~iiig: at, t,he cleiioiiiiiiabor, the factor ( 2 - p ) (where p i s tlie pole out,sicle the uiiit, circle) wit,h I J " ( Z - Z / p " ) . , A s a clrawback. a iiarrowev tlian required t,raiisit,ion Ixind caii be obt,ained arid tlii-i is o f h i accomplislied hy assuming t,he t,raiisit.ion bauds not to I x "don't, caw" bands: in other words;

t,lie iiiagiiit,iide aiid thc widt,li of the t,raiisit,ioii bands caii not, he easily cont,rollrcl. Moreover. i.lie number of' poles that, efficieiit,ly cont.rihut8e t,o the respoiise iii tbc passbaiid is reduced.

An improvement, of the met,liod coiisisbs in assum-

ing as phase of t,Iic t,arget, fuiict,ioii H " ( w ) at t,he

( I I + I , J - ~ / I it.erat,iou. iIie p~iase of H ( ' ~ ! ( ~ ) . 'l'lierefore;

t8he inet.liod t,o design

IIR

eigeiifilters caii be suiiiiiia-

rizrcl as follows:

S t e p 1. l'he phase of t,he t,arget, fuiic.t,ion is ini- tialized t,o be h e a r in the passbaiicls aiid in the t,ransilioii bands: we used 1; of t,lie order S t c p 2. 'l'lie iiiatris P is computed and the cigeii- vector correspoiidiiig t.o tlie iiiiiiiiiirim eigenvalue is found. An eficieiit, iiietliod t80 accomplish t,liis t.ask is sho~vii iii [I].

S t e p 3. If uiist,able poles are found. t,liey are suh- stit,utecl hy t,lieir invrrse conjugate aiid the fre- queiicy response is properly scaled.

S t e p 4. 'l'lie i.arget fuiic-t,ion H " ("+I 1 ( U ) t,o I3e

iiiat8clietl a t t,lie (n+l)-t/i iteratioii is given by:

cl)

H:

("+'j(d) = ~ . ~ L H ( ~ ' ) ( L L ' ~ if ( d k . i J k + i ) is a (,,) ll;! ((1+1) = ~ k j d ) t . i i ~ j ( 7 i ) ( L L ~ ) If . ( W , > J k + l ) d ( l l + l ) c )

H,

of :2.1/%. passband is a t,raiisit,ioii baiitl ( U J ) =

0

if ( ' ~ k . w ' k + l ) i* a stopbaiid

Step 5. 'l'he updating of t,lie weight function \ ~ , ; ~ ~ ' ~ ( w ) as s~iowii iii (15) is perforii-led.

Step 6 . Steps (2)-(5) arc repeat,ed ruit,il a stop cri- terion Imsrd 011 either filt,er coeKiciriit or mag-

nit,ude response variahioii is met,.

In t,he next, sectmion some examples of liuiiicrical design are showii aiicl discnssed

3. E X P E R I M E N T A L R E S U L T S .Ihe effrct,iveiiess of the design iiiet hod previously

presriitrd is shown through some iiunicrical exant-

ples.

Eminiple 1. Loivpass filter with the following: char- acterihcs: passbaiid for

0

51

w'

15

0 . h and st,ol,-

baiid for 0 . 4 ~

<I

w

I<

T . 'I'he orders of the iiumera-

t,or aiid of t8he denoiiiinatmor used to approsimat,c t,liis function are ill

=

9 aud jb' = 5 , while the weight..:

Bo = 1 a i d f i z = 2 were c-hoseu.

Passbailcl filter with t,he followiiig characteristics: passbaiid for 0 . 2 8 ~

51

J

15

0.547; aiicl stopbands for

0

51

w

/<

0 . 2 ~ aiid for 0 . t i b

</

w

15

7i. This fuiict,ion is approxiiiiat,ed by the fre-

queiicy respoiise of an IIK. filter having izil

=

N =

12.

'The weights

do

=

pz

=

rij4 = 1 have been used.

In

these exaiiiples we have considered t,he traiisi- t,ion baiicls as "don't. care" bands. l h e iiit,egrals that, appear iiit,o the clefiiiitioii of t,he iiiat,rices P k have been coiiiputed iiuiiierically by usiiig a grid of

200

poiiit,s in each b a d 'I'lie npclat.iiig of the vveiglit,iiig function aiid the searching of a iiew set, of' c-oeE-

cieiits stops when iiiax(/ A ( ' ~ + I ) - A(")

1)

<

or

iiiaxk iiias,(II ~ i ~ ~ + l ) ( w )

1

-

I

~ i ' " ( w . j

11)

<

10-4.

'l'he results relative to Example 1 and 2 ohtaiiied

by usiiig our design iiiethod are preseiit,ecl in Fig. 1

aiicl

2:

respectively; the frequency response of blie fil- t,ers aiid a zooiii of t,he passhaiid detail are shoivii. As can be seen, the frequency response of t.he desigiiecl filters is aliiiost, equiripple iii each band.

& X C f I n ~ J k 2.

4. C O N C L U S I O N S

I n t,liis work a method for applying t h e eigeiifil-

ter approach. based oii the llayleigh's princ-iple. t,o the clesigii of IIM digital filters is slio\vn. One of t,lir most appealing feat.ures of the eigeiifilter approach is its simplicity, since the problem is reduced t,o t,he search of the minimum eigenvalue ancl of t,lie corre- sponding eigeiivect,or of a real; syiiiiiiet,ric, posiitive- defiiiit,e iiiat,rix. 'I'he method iiicludes also ail it,era- tive procedure t,o update (,lie weighting fuiict,ioii: so

that an almost equiripple solution is obt,aiiied. R E F E R E N C E S

P.P. Vaidyaiiat~lian.

'I'.&.

Nguyeii. "Eigeulilters:

A New Approach t.0 J,east,-Squares P'IK F i l h

Design and Applicc?t,ions Including Nyquist, Fil-

no.

1;

J a n . 1987, pp. 11-2X

S . C . Pci5 J . J . Shyii. "Desigii of FlM Hillxrt 'lraiisformers aiid U reiit,iators by hligeii61-

rcits Syst: Vol.

35.

B O .

11; Nov. 1988, pp. 1457-1461.

S.C.

Pei, J . J . Shyu. "Eigeiifilt,er Uesigii of

Higher-Order Digital Diiferent iators" , l&E&

Ykuns. ,5'zgnnl Proces,singy. Vol. 37> 110. -1: Apr. '1.Q. Nguyeii, "'l'he Design of Arbitrary P'Il1 Digital Filters Using the Higenfilter A~let~liod"

IhXE Y k i n s . ,5'zg1icil Yyocessrng, Vol. 41: no. 3.

Nov. 1993, pp. 1128-1139.

S.C.

Pei, J . J . Shyu. "Design of 1-U aiid 2-L)

11M

k5genfilters" I&&& Y k i n s . SzgnciI P ) P Y C C ~ S -

rts

Syst.. Vol. (I!AS-:34;

1Y89. pp.

505-511.

z n g , Vol.

42.

110. 4, Apr. 1

(4)

S . C .

Pei, 3 . J . Shyu, “Kigenfilt,er Design of 1-

D and

2-U

llfl Digit.al All-Pass Filt,ers”,

[Eh’&

Ili.ciiis. Sigiinl Processing. Vol. 42. 110. 4: Apr.

1994, pp.

966-968.

‘I‘.&.

Nguyeii, ‘1.1. Laakso,

R.D.

Koilpillai,

“Bigenfilter Approach for the Design of All-

pass Filters Approximating a Given Phase He-

sponse” , lhE& 2i.ciiis. S’ayiicil Pi,ocesszng, Vol.

42, 110. 9, Sep. 1994, pp. 2257-2263.

S.C. Pei, J . J . Shyu, “Design of lltl multiband fill,ers using 111% all-pass filters”, S’zgnnl Process-

Zllg, Vol. 37, 1994: pp. 87-94.

L.B. Jackson. “An lmproved b?art8iiiez/Parks Algorit,hiii for

IlR

Design wit,li Unequal Nuin-

hers of Poles ailcl Zeros”;

I&EE

Ili.cins. Siyiicil P~ocesszng! Vol. 42, 110.

5.

May 11394. pp. 1234-

1238.

[lo]

1 Zhaiig H 1wal;ura “Desiiig of 1IR Digital

Filteis Basrcl 011 hi iivalue Proi~lem” Ih’Bh’

I I 1 n i z s Sagiial Proce n g , bo1

44.

no 6 , Julie

lc196, pp 1325-1333 io-- - T - - 7- -7 I O L I -io g-20~

-

-30 s P ; -40 0 1 \

s

501

c ,

=

-60 -701 - 10 W0 0 5 L 0 1 - ’0 1 5 0 2 025 0 3 035 0 4 045 Normahred Frequenoy 5

Fig. 2. Example 2: (a) Frequency response obtained with

M = N = 1 2 ; (b) passband detail.

Fig. 1. Example 1: (a) Fi-equency response obtained with

,U = 9 and N = 5; (12) passband detail.

Riferimenti

Documenti correlati

- a single statement of the design problem of a hydraulic circuit of an intelligent heating system with required transmission capacity and indices of hydraulic stability

Relative to the best solution of the PWA fit, as these resonances are added in the fit, the log likelihood value improves by 7.0, 11.7, 8.1, 1.5, 3.2, 1.7, 2.5, and 0.9 after

quark search is performed in a mass range from 200 to 1000 GeV using a sample of events containing one light lepton, a hadroni- cally decaying tau lepton, and at least two jets, with

Sulla produzione e il commercio dell'olio africano, una delle voci più importanti nel quadro dell'economia romana del medio e tardo impero, le fonti letterarie ed epigrafiche

Nursery disease symptoms associated with these fungi include crown, collar and root rot, leaf spots and cutting rot (Crous 2002, Vitale &amp; Polizzi 2008, Polizzi et al.. have

Si è rilevato altresì che si deve scorgere un rapporto di discendenza diretta fra i visconti attestati agli inizi del secolo XII a Goito con il gruppo parentale che via via

tendency of the rectilinear uniform motions. If we wanted to study the motions under the condition that a friction exists, we will include the friction in the properties Q and so

The S-coefficient in terms of Lorenz curve is the maximum vertical distance between the Lorenz curve or the cumulative portion of the total income held below