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

Method test_gauss_inv

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

Source from the content-addressed store, hash-verified

233 assert uints is None
234
235 def test_gauss_inv(self):
236 n = 25
237 rs = RandomState(self.bit_generator(*self.data1['seed']))
238 gauss = rs.standard_normal(n)
239 assert_allclose(gauss,
240 gauss_from_uint(self.data1['data'], n, self.bits))
241
242 rs = RandomState(self.bit_generator(*self.data2['seed']))
243 gauss = rs.standard_normal(25)
244 assert_allclose(gauss,
245 gauss_from_uint(self.data2['data'], n, self.bits))
246
247 def test_uniform_double(self):
248 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