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

Method test_laplace_0

numpy/random/tests/test_random.py:724–726  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

722 assert_array_almost_equal(actual, desired, decimal=15)
723
724 def test_laplace_0(self):
725 assert_equal(np.random.laplace(scale=0), 0)
726 assert_raises(ValueError, np.random.laplace, scale=-0.)
727
728 def test_logistic(self):
729 np.random.seed(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