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

Method test_multinomial

numpy/random/tests/test_generator_mt19937.py:2518–2522  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2516 self.check_function(gen_random, sz=(100, 1000))
2517
2518 def test_multinomial(self):
2519 def gen_random(state, out):
2520 out[...] = state.multinomial(10, [1 / 6.] * 6, size=10000)
2521
2522 self.check_function(gen_random, sz=(10000, 6))
2523
2524
2525# See Issue #4263

Callers

nothing calls this directly

Calls 1

check_functionMethod · 0.95

Tested by

no test coverage detected