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

Method test_gauss_inv

numpy/random/tests/test_direct.py:273–283  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271 assert uints is None
272
273 def test_gauss_inv(self):
274 n = 25
275 rs = RandomState(self.bit_generator(*self.data1['seed']))
276 gauss = rs.standard_normal(n)
277 assert_allclose(gauss,
278 gauss_from_uint(self.data1['data'], n, self.bits))
279
280 rs = RandomState(self.bit_generator(*self.data2['seed']))
281 gauss = rs.standard_normal(25)
282 assert_allclose(gauss,
283 gauss_from_uint(self.data2['data'], n, self.bits))
284
285 def test_uniform_double(self):
286 rs = Generator(self.bit_generator(*self.data1['seed']))

Callers

nothing calls this directly

Calls 2

assert_allcloseFunction · 0.90
gauss_from_uintFunction · 0.85

Tested by

no test coverage detected