MCPcopy Index your code
hub / github.com/numpy/numpy / test_VonMises_range

Method test_VonMises_range

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

Source from the content-addressed store, hash-verified

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