MCPcopy
hub / github.com/numpy/numpy / test_vonmises_small

Method test_vonmises_small

numpy/random/tests/test_randomstate.py:1269–1273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1267 assert_array_almost_equal(actual, desired, decimal=15)
1268
1269 def test_vonmises_small(self):
1270 # check infinite loop, gh-4720
1271 random.seed(self.seed)
1272 r = random.vonmises(mu=0., kappa=1.1e-8, size=10**6)
1273 assert_(np.isfinite(r).all())
1274
1275 def test_vonmises_large(self):
1276 # guard against changes in RandomState when Generator is fixed

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected