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

scipy-svn@scip... scipy-svn@scip...
Fri Nov 2 10:51:00 CDT 2007


Author: oliphant
Date: 2007-11-02 10:50:57 -0500 (Fri, 02 Nov 2007)
New Revision: 3489

Modified:
   trunk/scipy/stats/morestats.py
Log:
Fix ticket #526: return values for bayes_mvs.

Modified: trunk/scipy/stats/morestats.py
===================================================================
--- trunk/scipy/stats/morestats.py	2007-11-02 06:39:32 UTC (rev 3488)
+++ trunk/scipy/stats/morestats.py	2007-11-02 15:50:57 UTC (rev 3489)
@@ -69,7 +69,7 @@
     term = fac2*val
     sta = st - term
     stb = st + term
-    return mp, (ma, mb), vp, (va, vb), st, (sta, stb)
+    return (mp, (ma, mb)), (vp, (va, vb)), (st, (sta, stb))
 
 
 ##  Assumes all is known is that mean, and std (variance,axis=0) exist
@@ -98,7 +98,7 @@
     assert(n > 1)
     assert(alpha < 1 and alpha > 0)
     n = float(n)
-    if (n > 1000): # just a guess.  The curves look similar at this point.
+    if (n > 1000): # just a guess.  The curves look very similar at this point.
         return _gauss_mvs(x, n, alpha)
     xbar = x.mean()
     C = x.var()



More information about the Scipy-svn mailing list