[Scipy-tickets] [SciPy] #902: need high, stop, pass options to signal.firwin

SciPy Trac scipy-tickets@scipy....
Wed Oct 20 14:58:03 CDT 2010


#902: need high, stop, pass options to signal.firwin
----------------------------------+-----------------------------------------
 Reporter:  tpk@…                 |       Owner:  somebody    
     Type:  enhancement           |      Status:  needs_review
 Priority:  normal                |   Milestone:  0.9.0       
Component:  scipy.signal          |     Version:  0.7.0       
 Keywords:                        |  
----------------------------------+-----------------------------------------

Comment(by tpk@…):

 Replying to [comment:15 warren.weckesser]:

 > In the scaling calculation, because m is now properly symmetric, every
 term in exp(-1.j*pi*m*scale_frequency) contains its complex conjugate, so
 the sum will be real (other than normal machine precision issues).  In
 fact, we can change the calculation of the sum to
 >     s = numpy.sum(h*cos(pi*m*scale_frequency))
 > and avoid complex numbers entirely.

 OK, I see it now... makes sense.  I like the "cos" implementation too.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/902#comment:18>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list