[Scipy-svn] r3021 - trunk/Lib/signal

scipy-svn at scipy.org scipy-svn at scipy.org
Mon May 21 05:12:27 EDT 2007


Author: stefan
Date: 2007-05-21 04:12:07 -0500 (Mon, 21 May 2007)
New Revision: 3021

Modified:
   trunk/Lib/signal/filter_design.py
Log:
Default value a=1 for freqz.


Modified: trunk/Lib/signal/filter_design.py
===================================================================
--- trunk/Lib/signal/filter_design.py	2007-05-20 20:41:10 UTC (rev 3020)
+++ trunk/Lib/signal/filter_design.py	2007-05-21 09:12:07 UTC (rev 3021)
@@ -67,7 +67,7 @@
         plot(w, h)
     return w, h
 
-def freqz(b, a, worN=None, whole=0, plot=None):
+def freqz(b, a=1, worN=None, whole=0, plot=None):
     """Compute frequency response of a digital filter.
 
     Description:
@@ -95,6 +95,7 @@
 
        w -- The frequencies at which h was computed.
        h -- The frequency response.
+
     """
     b, a = map(atleast_1d, (b,a))
     if whole:




More information about the Scipy-svn mailing list