[Scipy-tickets] [SciPy] #421: Add default value for 'a' for freqz

SciPy scipy-tickets@scipy....
Thu May 17 11:47:27 CDT 2007


#421: Add default value for 'a' for freqz
--------------------------+-------------------------------------------------
 Reporter:  tash          |       Owner:  somebody
     Type:  enhancement   |      Status:  new     
 Priority:  low           |   Milestone:          
Component:  scipy.signal  |     Version:          
 Severity:  minor         |    Keywords:          
--------------------------+-------------------------------------------------
 It's typical in applications like Matlab to allow signal.freqz to be
 invoked on a FIR filter without specifying the 'a' term, which is implied
 to be 1. i.e.:

 fir = [1., 1.]
 w, h = signal.freqz(fir)

 To do this, the function definition in Lib/signal/filter_design.py needs
 to change from:

 {{{
 def freqz(b, a, worN=None, whole=0, plot=None):
 }}}

 to

 {{{
 def freqz(b, a=1, worN=None, whole=0, plot=None):
 }}}

 I have verified the behavior against an installed 0.5.2 version of SciPy

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


More information about the Scipy-tickets mailing list