Thread View: comp.dsp
4 messages
4 total messages
Started by Dave Mc Mahan
Thu, 06 Dec 1990 07:02
Why do FIR filters always have odd tap counts?
Author: Dave Mc Mahan
Date: Thu, 06 Dec 1990 07:02
Date: Thu, 06 Dec 1990 07:02
13 lines
987 bytes
987 bytes
I have done some playing around with FIR filters for various purposes, and
always find something peculiar. FIR filters always have odd tap counts.
Why is that? I have looked in various DSP books, but can find no hint as
to why that fact is true. The books I have looked in, however, always use
odd tap counts. Can somebody give me a good, clear explaination? I'm more
interested in a real explaination rather than pointers to books or
articles, but will try to find the articles if sited.
-dave
--
Dave McMahan mcmahan@netcom.uucp
{apple,amdahl,claris}!netcom!mcmahan
Re: Why do FIR filters always have odd tap counts?
Author: Brad Hedstrom
Date: Thu, 06 Dec 1990 09:56
Date: Thu, 06 Dec 1990 09:56
22 lines
1755 bytes
1755 bytes
In article <18193@netcom.UUCP> mcmahan@netcom.UUCP (Dave Mc Mahan) writes:
> I have done some playing around with FIR filters for various purposes, and
> always find something peculiar. FIR filters always have odd tap counts.
> Why is that? I have looked in various DSP books, but can find no hint as
> to why that fact is true. The books I have looked in, however, always use
> odd tap counts. Can somebody give me a good, clear explaination? I'm more
> interested in a real explaination rather than pointers to books or
> articles, but will try to find the articles if sited.
A.V. Oppenheim and R.W. Schafer, Digital Signal Processing, 1975, pg.
238.
"We note that for the case of N [the filter length] odd, the
phase shift corresponds to an integer number of samples delay, while
for N even, the delay is an integer plus one-half sample."
This also assumes linear phase filter (the coefficients are
symmetric).
_____________________________________________________________________________
Brad Hedstrom, University of Victoria, ECE Dept.
Internet: hedstrom@sirius.uvic.ca
UUCP: ...!{uw-beaver,ubc-vision}!uvicctr!hedstrom
Re: Why do FIR filters always have odd tap counts?
Author: Wilf Leblanc
Date: Thu, 06 Dec 1990 16:00
Date: Thu, 06 Dec 1990 16:00
55 lines
2362 bytes
2362 bytes
mcmahan@netcom.UUCP (Dave Mc Mahan) writes:
>I have done some playing around with FIR filters for various purposes, and
>always find something peculiar. FIR filters always have odd tap counts.
>Why is that? I have looked in various DSP books, but can find no hint as
>to why that fact is true. The books I have looked in, however, always use
>odd tap counts. Can somebody give me a good, clear explaination? I'm more
>interested in a real explaination rather than pointers to books or
>articles, but will try to find the articles if sited.
First of all, FIR filters don't always have odd tap counts.
Linear phase FIR filters _usually_ have an odd tap count
because the group delay is then fixed at (M-1)/2 for an
Mth order FIR filter. If M is odd, (M-1)/2 is not an integer,
so the delay through the filter is a non integer.
i.e.
Case I, M = 3, Linear phase FIR filter
H(z) = h(0) + h(1)z^-1 + h(0)z^-2
= z^(-1) [ h(0)z + h(0)z^-1 + h(1) ]
The group delay is -d arg(H(e^jw))/dw
The part inside [ ] is real so the group delay is
= 1
a delay of one sample.
Case II, M = 2, Linear Phase FIR filter
H(z) = h(0) + h(0) z^-1
= z^(-1/2) [ h(0) z^(1/2) + h(0) z^(-1/2)]
In this case the group delay is 1/2, a delay of 1/2 sample ?
In many cases this delay of 1/2, or (M-1)/2 samples is undesired,
thus it is best to use M odd.
Compensating for an integer delay is easy, but to compensate for
a non-integer delay is more DSP (i.e. another even order FIR).
I don't know if this is the only reason to use an odd tap count
Linear Phase FIR, but this is why I usually use odd tap counts.
> -dave
>--
>Dave McMahan mcmahan@netcom.uucp
> {apple,amdahl,claris}!netcom!mcmahan
--
Wilf LeBlanc Carleton University
Internet: wilf@sce.carleton.ca Systems & Computer Eng.
UUCP: ...!uunet!mitel!cunews!sce!wilf Ottawa, Ont, Canada, K1S 5B6
Re: Why do FIR filters always have odd tap counts?
Author: Mark D. Grosen
Date: Fri, 07 Dec 1990 16:59
Date: Fri, 07 Dec 1990 16:59
10 lines
981 bytes
981 bytes
Another reason to use odd-length FIR filters is that even-length (symmetric) FIR filters always have a zero at omega = pi (ie, 1/2 the sampling rate). This makes them unsuitable for use as highpass filters, but possibly better for low or bandpass filters. Mark D. Grosen ARPA: grosen@amadeus.ucsb.edu Signal Processing Lab / Communications Research Lab ECE Dept. University of California Santa Barbara, CA 93106
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads