[SciPy-user] FIR Filters

Bob.Cowdery at CGI-Europe.com Bob.Cowdery at CGI-Europe.com
Wed Feb 25 08:19:25 EST 2004


I am trying to get a windowed FIR filter to use in fast convolution
filtering.
 
I have tried using :
signal.remez(2048,[300,3000],[1],Hz=44100)
to generate a 2048 tap filter, which is what I have used previously in Intel
IPP. Firstly, this gives me an array full of QNAN errors. Infact the only
time I don't get errors is by using a very small number of taps, say 10.
Various other values of taps fails to converge or gives QNAN errors. With
the 2048 taps it is also very, very slow (about 75 seconds on a 1.2GHz). The
IPP implementation is sub-second. I don't know if it's throwing an exception
on every QNAN or quite what is hapenning. 
 
I am also confused by not being able to specify a window type and I really
need lowpass not bandpass. I can see there is a function get_window() but I
don't know how this relates to an FIR filter when the only other parameter
is fftbins. Do I do something like tell it the number of fftbins I want the
filter to cover (I have 2048 bins of around 10Hz each) then shift it to the
correct part of the spectrum?
 
Any help appreciated.
 
Bob
 
 
Bob Cowdery
CGI Senior Technical Architect
+44(0)1438 791517
Mobile: +44(0)7771 532138
bob.cowdery at cgi-europe.com <mailto:bob.cowdery at cgi-europe.com> 
 
 
 

*** Confidentiality Notice *** Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else.  In such case, you should destroy this
message and are asked to notify the sender by reply email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20040225/ed30e5aa/attachment.html>


More information about the SciPy-User mailing list