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 02-17-2004, 10:33 AM
I. R. Khan
Guest
 
Posts: n/a
Default Frequency response of an FIR filter

Hi all,

If h is the impulse response of an FIR filter then Sum[h(n) Exp(j w n)]
describes its frequency response. What is the range of n for an odd length
filter? Is it n = -N : N, or n = 0 : 2N? How about even-length filter; will
it be n = 0 : 2N-1 or n = -N/2 : N/2?

Regards,
Ishtiaq.

Reply With Quote
  #2 (permalink)  
Old 02-17-2004, 02:29 PM
Randy Yates
Guest
 
Posts: n/a
Default Re: Frequency response of an FIR filter

"I. R. Khan" <[email protected]> writes:

> Hi all,
>
> If h is the impulse response of an FIR filter then Sum[h(n) Exp(j w n)]
> describes its frequency response. What is the range of n for an odd length
> filter? Is it n = -N : N, or n = 0 : 2N? How about even-length filter; will
> it be n = 0 : 2N-1 or n = -N/2 : N/2?


It could be any of the above or something else yet.

In general, the n in the sum you listed runs from negative infinity to
positive infinity. The limiting factor is the non-zero extent of the
impulse response h[n], and that simply depends on the system being
represented.

For example, let's say you are given a filter with response from n =
-N to +N (an odd filter of length 2*N+1). If a delay of 2*N samples is
added to that system, the new system still has length 2*N+1 but runs
instead from N to 3*N, which is neither of your odd-length forms.
--
% Randy Yates % "Remember the good old 1980's, when
%% Fuquay-Varina, NC % things were so uncomplicated?"
%%% 919-577-9882 % 'Ticket To The Moon'
%%%% <[email protected]> % *Time*, Electric Light Orchestra
http://home.earthlink.net/~yatescr
Reply With Quote
  #3 (permalink)  
Old 02-17-2004, 04:02 PM
Fred Marshall
Guest
 
Posts: n/a
Default Re: Frequency response of an FIR filter


> "I. R. Khan" <[email protected]> writes:
>
> > Hi all,
> >
> > If h is the impulse response of an FIR filter then Sum[h(n) Exp(j w n)]
> > describes its frequency response. What is the range of n for an odd

length
> > filter? Is it n = -N : N, or n = 0 : 2N? How about even-length filter;

will
> > it be n = 0 : 2N-1 or n = -N/2 : N/2?


Ishtiaq,

It would help if you'd very carefully write the equation out completely.
Then you'd have the answer:
N
H(w)=sum [h(n)*e^-jwn] where N is the number of individual coefficients in
the filter polynomial expression.
n=1

N is the number of coefficients in the filter. So, you see?, this answers
the question.

If you choose to change how this is implemented for efficiency, then you
could change the number of multiplies and adds. Maybe that's what you were
wondering. And then, it's not "odd length" or "even length" so much as it's
"symmetrical" or "anti-symmetric" or not either one that makes the
difference.

Fred



Reply With Quote
  #4 (permalink)  
Old 02-18-2004, 01:45 AM
I. R. Khan
Guest
 
Posts: n/a
Default Re: Frequency response of an FIR filter

Thanks Fred,

In fact the thing which confused me was representation of H in sin/cos forms
for (anti) symmetric filters.

Let h = {h1, h0, h1} be the impulse response, then

H1 = h1 e^jw + h0 + h1 e^(-jw )= h0 + 2h1 cos (w)

Or

H2 = h1 + h0 e^(-jw) + h1 e^(-2jw) = e^(-jw)[h0 + 2h1 cos (w)] = e^(-jw) H1

What is the importance of this e^(-jw)? How does it affect the magnitude and
phase responses? Is this some kind of measure of delay?

Regards,
Ishtiaq.

Reply With Quote
  #5 (permalink)  
Old 02-18-2004, 03:31 AM
Fred Marshall
Guest
 
Posts: n/a
Default Re: Frequency response of an FIR filter


"I. R. Khan" <[email protected]> wrote in message news:c0ucjd$1asiv4$[email protected]..
> Thanks Fred,
>
> In fact the thing which confused me was representation of H in sin/cos forms
> for (anti) symmetric filters.
>
> Let h = {h1, h0, h1} be the impulse response, then
>
> H1 = h1 e^jw + h0 + h1 e^(-jw )= h0 + 2h1 cos (w)
>
> Or
>
> H2 = h1 + h0 e^(-jw) + h1 e^(-2jw) = e^(-jw)[h0 + 2h1 cos (w)] = e^(-jw) H1
>
> What is the importance of this e^(-jw)? How does it affect the magnitude and
> phase responses? Is this some kind of measure of delay?


The shifting property of the Fourier Transform where <-> refers to a time<->frequency dual
for:
f(t) <-> F[w]
then:
f(t-t0) <-> F[w]e^-jwt0

So, yes, to multiply by e^-jwt0 in frequency represents a shift in time > is a delay (or advance) ... exactly.

Similarly:
f(t)e^jw0t <-> F(w-w0) for a shift in frequency (which is less often useful)

Fred




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
Question on Frequency Response- VHDL AMS Omar VHDL 0 10-11-2004 03:58 PM
FIR roots and frequency response Bob Cain DSP 73 02-26-2004 08:02 PM
Fast response filter? Luiz Carlos DSP 57 01-27-2004 01:19 AM
Frequency response of DFT single bin Jon Harris DSP 6 09-11-2003 01:46 AM
Filter banks Response. Craig DSP 4 07-17-2003 03:05 PM


All times are GMT +1. The time now is 02:28 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