[Scipy-svn] r5391 - trunk/scipy/stats

scipy-svn@scip... scipy-svn@scip...
Thu Jan 8 06:31:27 CST 2009


Author: cdavid
Date: 2009-01-08 06:31:22 -0600 (Thu, 08 Jan 2009)
New Revision: 5391

Modified:
   trunk/scipy/stats/stats.py
Log:
Backport fixed deprecation warnings for stats.std and stats.var.

Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2009-01-08 12:27:18 UTC (rev 5390)
+++ trunk/scipy/stats/stats.py	2009-01-08 12:31:22 UTC (rev 5391)
@@ -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