[Scipy-svn] r5390 - branches/0.7.x/scipy/stats

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Jan 8 07:27:32 EST 2009


Author: cdavid
Date: 2009-01-08 06:27:18 -0600 (Thu, 08 Jan 2009)
New Revision: 5390

Modified:
   branches/0.7.x/scipy/stats/stats.py
Log:
Fix deprecation warning message: I got bias/ddof relationship backward.

Modified: branches/0.7.x/scipy/stats/stats.py
===================================================================
--- branches/0.7.x/scipy/stats/stats.py	2009-01-08 09:23:44 UTC (rev 5389)
+++ branches/0.7.x/scipy/stats/stats.py	2009-01-08 12:27:18 UTC (rev 5390)
@@ -1300,7 +1300,8 @@
     - numpy.var axis argument defaults to None, not 0
     - numpy.var has a ddof argument to replace bias in a more general manner.
       scipy.stats.var(a, bias=True) can be replaced by numpy.var(x,
-axis=0, ddof=1).""", DeprecationWarning)
+      axis=0, ddof=0), scipy.stats.var(a, bias=False) by var(x, axis=0,
+      ddof=1).""", DeprecationWarning)
     a, axis = _chk_asarray(a, axis)
     mn = np.expand_dims(mean(a,axis),axis)
     deviations = a - mn
@@ -1323,7 +1324,8 @@
     - numpy.std axis argument defaults to None, not 0
     - numpy.std has a ddof argument to replace bias in a more general manner.
       scipy.stats.std(a, bias=True) can be replaced by numpy.std(x,
-axis=0, ddof=1).""", DeprecationWarning)
+      axis=0, ddof=0), scipy.stats.std(a, bias=False) by numpy.std(x, axis=0,
+      ddof=1).""", DeprecationWarning)
     return np.sqrt(var(a,axis,bias))
 
 




More information about the Scipy-svn mailing list