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

Method test_beta

numpy/random/tests/test_randomstate.py:752–759  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

750 assert_array_equal(actual, desired)
751
752 def test_beta(self):
753 random.seed(self.seed)
754 actual = random.beta(.1, .9, size=(3, 2))
755 desired = np.array(
756 [[1.45341850513746058e-02, 5.31297615662868145e-04],
757 [1.85366619058432324e-06, 4.19214516800110563e-03],
758 [1.58405155108498093e-04, 1.26252891949397652e-04]])
759 assert_array_almost_equal(actual, desired, decimal=15)
760
761 def test_binomial(self):
762 random.seed(self.seed)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected