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

Method test_laplace_0

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

Source from the content-addressed store, hash-verified

1355 assert_array_almost_equal(actual, desired, decimal=15)
1356
1357 def test_laplace_0(self):
1358 assert_equal(random.laplace(scale=0), 0)
1359 assert_raises(ValueError, random.laplace, scale=-0.)
1360
1361 def test_logistic(self):
1362 random = Generator(MT19937(self.seed))

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
assert_raisesFunction · 0.90
laplaceMethod · 0.80

Tested by

no test coverage detected