MCPcopy Create free account
hub / github.com/numpy/numpy / test_VonMises_range

Method test_VonMises_range

numpy/random/tests/test_regression.py:11–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9class TestRegression:
10
11 def test_VonMises_range(self):
12 # Make sure generated random variables are in [-pi, pi].
13 # Regression test for ticket #986.
14 for mu in np.linspace(-7., 7., 5):
15 r = random.mtrand.vonmises(mu, 1, 50)
16 assert_(np.all(r > -np.pi) and np.all(r <= np.pi))
17
18 def test_hypergeometric_range(self):
19 # Test for ticket #921

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
linspaceMethod · 0.80
allMethod · 0.45

Tested by

no test coverage detected