FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-28-2007, 06:53 PM
[email protected]
Guest
 
Posts: n/a
Default FIR filter length dependencies

Hi all,
I have a questions regarding FIR filter length. Usually, as per
formulae from Kaiser or Hermann, it is only a function of passband/
stopband attenuations and transition band-width. However, in practical
world would the transition bandwidth itself not a function of the
filter cutoff frequency?

For example, with 48K sampling frequency, if the filter cutoff is at
5000Hz, a transition BW of 500Hz probably can be considered
acceptable. However, if the filter cutoff is at 100Hz, I would rather
limit the transition BW till the next octave -- 200Hz, not till
100+500Hz. So given the same filter length (and hence passband/
stopband attenuations and transition BW) a filter at 100Hz would
perform worse compared to a filter at 5000Hz. If I want similar
results at both frequencies, then lesser the cutoff frequency, greater
should be the filter length.

Does this appear right?

Thanks,

Reply With Quote
  #2 (permalink)  
Old 08-28-2007, 08:18 PM
Jerry Avins
Guest
 
Posts: n/a
Default Re: FIR filter length dependencies

[email protected] wrote:
> Hi all,
> I have a questions regarding FIR filter length. Usually, as per
> formulae from Kaiser or Hermann, it is only a function of passband/
> stopband attenuations and transition band-width. However, in practical
> world would the transition bandwidth itself not a function of the
> filter cutoff frequency?
>
> For example, with 48K sampling frequency, if the filter cutoff is at
> 5000Hz, a transition BW of 500Hz probably can be considered
> acceptable. However, if the filter cutoff is at 100Hz, I would rather
> limit the transition BW till the next octave -- 200Hz, not till
> 100+500Hz. So given the same filter length (and hence passband/
> stopband attenuations and transition BW) a filter at 100Hz would
> perform worse compared to a filter at 5000Hz. If I want similar
> results at both frequencies, then lesser the cutoff frequency, greater
> should be the filter length.
>
> Does this appear right?


The filter length in samples -- the delay through the filter -- must be
comparable the lowest period it is to influence and to the reciprocal of
the smallest transition time. The degree to which a given length can be
used for both purposes or whether the lengths so estimated must be added
varies with details in a way that I don't understand.

Jerry
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply With Quote
  #3 (permalink)  
Old 08-28-2007, 09:27 PM
robert bristow-johnson
Guest
 
Posts: n/a
Default Re: FIR filter length dependencies

On Aug 28, 12:53 pm, matcho_pla...@yahoo.com wrote:
> Hi all,
> I have a questions regarding FIR filter length. Usually, as per
> formulae from Kaiser or Hermann, it is only a function of passband/
> stopband attenuations and transition band-width. However, in practical
> world would the transition bandwidth itself not a function of the
> filter cutoff frequency?


it would get longer with a lower cutoff frequency *if* the transition
bandwidth was reduced along with the lower cutoff, which it would if
the ostensible "Q" was about constant. i.e. if the appearace of the
filter frequency response, on a log-frequency graph, appeared the same
except for being scooted a little to the left, then the FIR would be
longer. but scooting a frequency response to the left on a log-
frequency scale, not only reduces the cutoff frequency but also
reduces the transition bandwidth and because of that, the FIR must be
longer. it is still a function of passband/stopband attenuations and
transition bandwidth. lowering the cutoff (whether Hz or radians/
sample) while retaining a constant transition bandwidth (however it's
defined but measured in the same Hz or radians/sample) will likely not
increase the FIR length much.

r b-j

Reply With Quote
  #4 (permalink)  
Old 08-28-2007, 09:35 PM
Vladimir Vassilevsky
Guest
 
Posts: n/a
Default Re: FIR filter length dependencies



[email protected] wrote:


> I have a questions regarding FIR filter length. Usually, as per
> formulae from Kaiser or Hermann, it is only a function of passband/
> stopband attenuations and transition band-width. However, in practical
> world would the transition bandwidth itself not a function of the
> filter cutoff frequency?


Rabiner derived a formula for the estimated length of FIR filter:

http://www.appsig.com/products/tn070.htm#sizing

It is a function of all above mentioned parameters.

Vladimir Vassilevsky

DSP and Mixed Signal Design Consultant

http://www.abvolt.com

Reply With Quote
  #5 (permalink)  
Old 08-29-2007, 11:13 AM
Robert Lacoste
Guest
 
Posts: n/a
Default Re: FIR filter length dependencies


<[email protected]> a écrit dans le message de news:
[email protected] m...
> Hi all,
> I have a questions regarding FIR filter length. Usually, as per
> formulae from Kaiser or Hermann, it is only a function of passband/
> stopband attenuations and transition band-width. However, in practical
> world would the transition bandwidth itself not a function of the
> filter cutoff frequency?
>
> For example, with 48K sampling frequency, if the filter cutoff is at
> 5000Hz, a transition BW of 500Hz probably can be considered
> acceptable. However, if the filter cutoff is at 100Hz, I would rather
> limit the transition BW till the next octave -- 200Hz, not till
> 100+500Hz. So given the same filter length (and hence passband/
> stopband attenuations and transition BW) a filter at 100Hz would
> perform worse compared to a filter at 5000Hz. If I want similar
> results at both frequencies, then lesser the cutoff frequency, greater
> should be the filter length.
>
> Does this appear right?


An easy way to look at this issue is I think to remember that the FIR
coefficients (which form the impulse response of the filter) are nothing
more than the Fourier transform of its frequency response. So the number of
taps is directly linked to the "resolution" of your filter in the frequency
domain. In your example you want to design a filter with a 5KHz cutoff and
500Hz transition. Let's assume that you select a sampling frequency around
40KHz (to have a reasonnable antialiasing filter). The filter processing
window is then from DC to 40/2=20KHz. As 20000/500=40 you need a filter with
significantly more than 40 taps, say around 100. I've not tried Rabiner's
formula but that should be close.

Friendly,
Robert Lacoste
www.alciom.com


Reply With Quote
  #6 (permalink)  
Old 08-29-2007, 11:32 AM
Rune Allnor
Guest
 
Posts: n/a
Default Re: FIR filter length dependencies

On 28 Aug, 18:53, matcho_pla...@yahoo.com wrote:
> Hi all,
> I have a questions regarding FIR filter length. Usually, as per
> formulae from Kaiser or Hermann, it is only a function of passband/
> stopband attenuations and transition band-width. However, in practical
> world would the transition bandwidth itself not a function of the
> filter cutoff frequency?


No, provided we agree that "cutoff frequency" means "cutoff
frequency normalized with trespect to sampling frequency."

> For example, with 48K sampling frequency, if the filter cutoff is at
> 5000Hz, a transition BW of 500Hz probably can be considered
> acceptable. However, if the filter cutoff is at 100Hz, I would rather
> limit the transition BW till the next octave -- 200Hz, not till
> 100+500Hz. So given the same filter length (and hence passband/
> stopband attenuations and transition BW) a filter at 100Hz would
> perform worse compared to a filter at 5000Hz. If I want similar
> results at both frequencies, then lesser the cutoff frequency, greater
> should be the filter length.
>
> Does this appear right?


These are not differences in filter characteristics, they are
differences in specifications. Given a specific transition bandwidth,
the windowed FIR filters would be the same lengths regardless
of in what frequency range the cut-off is.

Whether any given transition bandwidth is actually useful,
is a completely different question alltogether.

Rune

Reply With Quote
  #7 (permalink)  
Old 08-29-2007, 01:12 PM
[email protected]
Guest
 
Posts: n/a
Default Re: FIR filter length dependencies

On Aug 29, 2:32 pm, Rune Allnor <all...@tele.ntnu.no> wrote:
> On 28 Aug, 18:53, matcho_pla...@yahoo.com wrote:
>
> > Hi all,
> > I have a questions regarding FIR filter length. Usually, as per
> > formulae from Kaiser or Hermann, it is only a function of passband/
> > stopband attenuations and transition band-width. However, in practical
> > world would the transition bandwidth itself not a function of the
> > filter cutoff frequency?

>
> No, provided we agree that "cutoff frequency" means "cutoff
> frequency normalized with trespect to sampling frequency."
>
> > For example, with 48K sampling frequency, if the filter cutoff is at
> > 5000Hz, a transition BW of 500Hz probably can be considered
> > acceptable. However, if the filter cutoff is at 100Hz, I would rather
> > limit the transition BW till the next octave -- 200Hz, not till
> > 100+500Hz. So given the same filter length (and hence passband/
> > stopband attenuations and transition BW) a filter at 100Hz would
> > perform worse compared to a filter at 5000Hz. If I want similar
> > results at both frequencies, then lesser the cutoff frequency, greater
> > should be the filter length.

>
> > Does this appear right?

>
> These are not differences in filter characteristics, they are
> differences in specifications. Given a specific transition bandwidth,
> the windowed FIR filters would be the same lengths regardless
> of in what frequency range the cut-off is.
>
> Whether any given transition bandwidth is actually useful,
> is a completely different question alltogether.
>
> Rune


I agree. For a given transition BW, filter length is same irrespective
of the location of cutoff frequency. However, the lower the cutoff
frequency, the lower the transition bandwidth should also be for the
filter to be equally "useful" or able to reject frequencies outside
the passband.

Thanks a lot for all the responses.

Best regards,

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I optimize filter coefficient bit length and signal bit length? From Sweden FPGA 1 05-20-2008 09:55 PM
PSL stmts in VHDL: how to describe asynchronous dependencies? Eric DELAGE VHDL 2 04-06-2005 07:15 AM
ISE build dependencies newman FPGA 4 03-14-2005 03:16 PM
How to decide the filter length in ADNC using LMS Algo ? Sandeep Chikkerur DSP 4 03-02-2005 04:21 PM
Half-Band Filter Length Randy Yates DSP 20 11-20-2004 08:03 PM


All times are GMT +1. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved