help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does fir2 do such strange thing for odd filter order (even numbe


From: Lev Serebryakov
Subject: Re: Why does fir2 do such strange thing for odd filter order (even number of taps)?
Date: Thu, 13 Nov 2014 17:03:18 +0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 13.11.2014 05:32, Mike Miller wrote:

>> And I don't understand "Add zeros to interpolate by 2, then pick
>> the odd values below." part. Why does it do this 
>> interpolate-and-take-odd-values? Why it is required only for
>> even number of taps? Why does it takes odd values? Is it
>> critical, or even ones will work too?
>> 
>> I've read several textbooks, articles and tutorials about
>> FFT-based FIR designing, and no one mention special processing
>> for even number of taps (odd order). Every source I read is in
>> agreement with method, which is used for even order — mirror
>> specter, take ifft(), rotate. It is clear. And second branch is
>> complete mistery for me.
> 
> Have you read about the differences between type I and type II FIR 
> filters?
 Of course. It is hard to miss this topic :)

> A type II filter is a symmetric filter with an odd order. This is
> what this second case in fir2.m that you are asking about is
> dealing with.
 I don't understand, why it is done in such strange way :)

> The interpolate-ifft-decimate is done to get the half-sample group
> delay necessary for a type II filter.
 I've been thought other way around: Type II is symmetrical/even taps
(by definition) and half-sample delay is only property. But now I
start to understand this oversampling thing, yes.

 Thank you.

- -- 
// Black Lion AKA Lev Serebryakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQJ8BAEBCgBmBQJUZLolXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF
QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePi0IP/2MkH3Vvi2zB+nc8M7ss6F3w
NkGN2OBUiyb+Bjl0LdzOVapWIP2oFTJF8vR5IjcrypQGpvwCuo0h2dr1r+hcYm86
XVFXCGavctSB1Igg5e9gbQWMQXzjBiBsmwz7Wq2CKyh72ZJz9IotsPUJSmnM54WC
XVRJ+wOlIzLB9IAfUbMNvwM35l7WyPoD6DK6AMHQjl8W2rVzW69AMue7ryyu+KI1
96vxhJrla5U5hrbC5G1KvmJkGhaKnezBb/xbCLB1Pize6Rr41p69EPhWyVCOrId3
i9KNgbqAx1mQggrfTqQw+cnqFfyBzE+css6EKwhUs8ZQOx2Tlf+/z7Nus3nMNGr6
1BFYHkG/f/gda938CfHt1kJ2qZyW87IHdjg63tRyaNoX8yGrSOnU0JLRyLaz8EeZ
cR2D+V6RyAD2zEnkylcz/bwBd8cou05YfWqZsdflfurhs3k7XISVw2EbTaQGpKzb
J3/SfWXhTfOYQzpghH6L2Ho4qpvRK3PNsPe1tNmEA3e15BVKYv0E6jhaGHOgoVk6
SEOGCMd65jRRBNGRBWcOvH0n5ae9t2cywknn5SBSDK6rGlpmQbVNgMd2AdHWm0fh
aRJpiqdCCyj9K8Th/Lfa79PNeDyhHtZqXr5ZHmY52xCiw4v0W/yDDXl9HZeCGDqf
ycFOjUD0a8x67tGL4kDP
=qEs6
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]