summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-03-05 12:01:36 +0200
committermattip <matti.picus@gmail.com>2019-03-06 08:22:02 +0200
commitc8a8f524f693fc7facfc934743073e75a36d0a0e (patch)
treec477819e7322de715d721380ff4f11e9b520bfb9 /numpy/random
parent15b092f5541e80d7c3d0108957406c6f8686aba0 (diff)
downloadnumpy-c8a8f524f693fc7facfc934743073e75a36d0a0e.tar.gz
TEST: allow margin of error, increase discoverability of refcheck option
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/mtrand/mtrand.pyx8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index a19bdeffb..52d68212f 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -1650,11 +1650,11 @@ cdef class RandomState:
Verify the mean and the variance:
- >>> abs(mu - np.mean(s)) < 0.01
- True
+ >>> abs(mu - np.mean(s))
+ 0.0 # may vary
- >>> abs(sigma - np.std(s, ddof=1)) < 0.01
- True
+ >>> abs(sigma - np.std(s, ddof=1))
+ 0.1 # may vary
Display the histogram of the samples, along with
the probability density function: