"Rick Lyons" <R.Lyons@_BOGUS_ieee.org> wrote in message
news:
[email protected]...
> On Sat, 28 Jun 2008 04:48:09 -0500, "vasindagi" <
[email protected]>
> wrote:
>
>>>>Hi All,
>>>>I have been trying to figure out the relation between length of a fir
>>>>filter and its number of taps. I found a discussion in this forum
>>itself
>>>>which was in 2005 which is similar to this question but the discussion
>>>did
>>>>not give the answer.
>>>>Thanks
>>>
> (snipped by Lyons]
>>>
>>Hi Bharath,
>>Thanks a lot. I wanted to know the relation cos lot of sites said that the
>>FIR filter delay is (N-1)/2 where N is the number of taps. So I wanted to
>>know how N is related to the length of the filter.
>>
>>Thanks
>
> Hi,
> To keep myself out of trouble, I always think of
> tapped-delay line FIR filters, whose coefficients
> are real-valued and symmetrical, as having:
>
> (1) an "Order" equal to the number of delay elements, and
> (2) the group delay of the filter is Order/2,
> measured in "samples."
>
> The above two items are true regardless of the number
> of coefficients (which may be very different from the
> number of delay elements, a comb filter for example),
> or the coefficients' values (many of which may be
> zero-valued).
>
> When you talk about "length of a fir filter and its
> number of taps" the word "length" is a bit vague.
> Better to use the word "order". Also, when ya'
> talk about "number of taps" it's probably better
> to say "number of non-zero coefficients."
>
> The language is a bit inconsistent. For example, what
> is called a "31-tap half-band FIR filter" has only
> 17 taps coming of the delay line. So how many
> "taps" does this filter have? You make the call.
> Better to call this a "30th-order half-band FIR
> filter" (because its z-domain transfer function
> is a 30th-order polynomial).
>
> Ya' want another complication? Some FIR filters
> are implemented with feedback, which makes them
> recursive. (Tapped-delay line FIR filters are
> strictly nonrecursive.)
>
> Sheece. I wonder if the above helped, or not.
>
> [-Rick-]
Rick's description is right on.
You have to be careful about using the term "length". Do you mean length in
time? or do you mean length measured in some hardware/software
implementation sense?
If it's length is time and if you assume that the first coefficient has zero
delay then the length in time would be N-1 wouldn't it? This would be the
same as the "order".
If it's length in hardware/software based on counting coefficients (er ...
delays plus 1) then N=length. That's the length that Parks-McClellan used.
Fred