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

Method test_f

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

Source from the content-addressed store, hash-verified

838 assert_raises(ValueError, random.exponential, scale=-0.)
839
840 def test_f(self):
841 random.seed(self.seed)
842 actual = random.f(12, 77, size=(3, 2))
843 desired = np.array([[1.21975394418575878, 1.75135759791559775],
844 [1.44803115017146489, 1.22108959480396262],
845 [1.02176975757740629, 1.34431827623300415]])
846 assert_array_almost_equal(actual, desired, decimal=15)
847
848 def test_gamma(self):
849 random.seed(self.seed)

Callers

nothing calls this directly

Calls 2

fMethod · 0.45

Tested by

no test coverage detected