MCPcopy
hub / github.com/numpy/numpy / test_poisson

Method test_poisson

numpy/random/tests/test_smoke.py:394–400  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

392 assert_(len(vals) == 10)
393
394 def test_poisson(self):
395 rg = self._create_rng().rg
396 vals = rg.poisson(10, 10)
397 assert_(len(vals) == 10)
398 vals = rg.poisson(np.array([10] * 10))
399 assert_(len(vals) == 10)
400 params_1(rg.poisson)
401
402 def test_power(self):
403 rg = self._create_rng().rg

Callers

nothing calls this directly

Calls 3

_create_rngMethod · 0.95
assert_Function · 0.90
params_1Function · 0.85

Tested by

no test coverage detected