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

Method test_chisquare

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

Source from the content-addressed store, hash-verified

772 assert_array_equal(actual, desired)
773
774 def test_chisquare(self):
775 random.seed(self.seed)
776 actual = random.chisquare(50, size=(3, 2))
777 desired = np.array([[63.87858175501090585, 68.68407748911370447],
778 [65.77116116901505904, 47.09686762438974483],
779 [72.3828403199695174, 74.18408615260374006]])
780 assert_array_almost_equal(actual, desired, decimal=13)
781
782 def test_dirichlet(self):
783 random.seed(self.seed)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected