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

scipy-svn@scip... scipy-svn@scip...
Fri Feb 27 11:19:11 CST 2009


Author: josef
Date: 2009-02-27 11:18:47 -0600 (Fri, 27 Feb 2009)
New Revision: 5602

Modified:
   trunk/scipy/stats/distributions.py
Log:
increase tail precision for 2 distributions, thanks Per Brodtkorb

Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py	2009-02-26 20:49:04 UTC (rev 5601)
+++ trunk/scipy/stats/distributions.py	2009-02-27 17:18:47 UTC (rev 5602)
@@ -1041,6 +1041,8 @@
 class kstwobign_gen(rv_continuous):
     def _cdf(self,x):
         return 1.0-special.kolmogorov(x)
+    def _sf(self,x):
+        return special.kolmogorov(x)
     def _ppf(self,q):
         return special.kolmogi(1.0-q)
 kstwobign = kstwobign_gen(a=0.0,name='kstwobign', longname='Kolmogorov-Smirnov two-sided (for large N)', extradoc="""
@@ -1070,6 +1072,8 @@
         return _norm_cdf(x)
     def _ppf(self,q):
         return _norm_ppf(q)
+    def _isf(self,q):
+        return -_norm_ppf(q)
     def _stats(self):
         return 0.0, 1.0, 0.0, 0.0
     def _entropy(self):



More information about the Scipy-svn mailing list