[Scipy-svn] r5222 - trunk/scipy/stats
scipy-svn at scipy.org
scipy-svn at scipy.org
Thu Dec 4 17:49:41 EST 2008
Author: josef
Date: 2008-12-04 16:49:32 -0600 (Thu, 04 Dec 2008)
New Revision: 5222
Modified:
trunk/scipy/stats/stats.py
Log:
some import cleanup
Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py 2008-12-04 03:01:21 UTC (rev 5221)
+++ trunk/scipy/stats/stats.py 2008-12-04 22:49:32 UTC (rev 5222)
@@ -199,6 +199,10 @@
import scipy.linalg as linalg
import numpy as np
+#import scipy.stats #is this a circular import ?
+from morestats import find_repeats #is only reference to scipy.stats
+import distributions
+
# Local imports.
import _support
@@ -1993,6 +1997,8 @@
Examples
--------
+ >>> from scipy import stats
+ >>> import numpy as np
>>> x = np.linspace(-15,15,9)
>>> kstest(x,'norm')
(0.44435602715924361, 0.038850142705171065)
@@ -2262,7 +2268,7 @@
# Handle ties
ties = 0
for i in range(len(data)):
- replist, repnum = scipy.stats.find_repeats(array(data[i]))
+ replist, repnum = find_repeats(array(data[i]))
for t in repnum:
ties += t*(t*t-1)
c = 1 - ties / float(k*(k*k-1)*n)
More information about the Scipy-svn
mailing list