MCPcopy
hub / github.com/numpy/numpy / test_chisquare

Method test_chisquare

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

Source from the content-addressed store, hash-verified

779 assert_array_equal(actual, desired)
780
781 def test_chisquare(self):
782 rng = random.RandomState(self.seed)
783 actual = rng.chisquare(50, size=(3, 2))
784 desired = np.array([[63.87858175501090585, 68.68407748911370447],
785 [65.77116116901505904, 47.09686762438974483],
786 [72.3828403199695174, 74.18408615260374006]])
787 assert_array_almost_equal(actual, desired, decimal=13)
788
789 def test_dirichlet(self):
790 rng = random.RandomState(self.seed)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected