(self)
| 1692 | assert_equal(out.shape, self.tgtShape) |
| 1693 | |
| 1694 | def test_two_arg_funcs(self): |
| 1695 | funcs = (np.random.uniform, np.random.normal, |
| 1696 | np.random.beta, np.random.gamma, |
| 1697 | np.random.f, np.random.noncentral_chisquare, |
| 1698 | np.random.vonmises, np.random.laplace, |
| 1699 | np.random.gumbel, np.random.logistic, |
| 1700 | np.random.lognormal, np.random.wald, |
| 1701 | np.random.binomial, np.random.negative_binomial) |
| 1702 | |
| 1703 | probfuncs = (np.random.binomial, np.random.negative_binomial) |
| 1704 | |
| 1705 | for func in funcs: |
| 1706 | if func in probfuncs: # p <= 1 |
| 1707 | argTwo = np.array([0.5]) |
| 1708 | |
| 1709 | else: |
| 1710 | argTwo = self.argTwo |
| 1711 | |
| 1712 | out = func(self.argOne, argTwo) |
| 1713 | assert_equal(out.shape, self.tgtShape) |
| 1714 | |
| 1715 | out = func(self.argOne[0], argTwo) |
| 1716 | assert_equal(out.shape, self.tgtShape) |
| 1717 | |
| 1718 | out = func(self.argOne, argTwo[0]) |
| 1719 | assert_equal(out.shape, self.tgtShape) |
| 1720 | |
| 1721 | def test_randint(self): |
| 1722 | itype = [bool, np.int8, np.uint8, np.int16, np.uint16, |
nothing calls this directly
no test coverage detected