(self)
| 1642 | return np.array([2]), np.array([3]), np.array([4]), (1,) |
| 1643 | |
| 1644 | def test_one_arg_funcs(self): |
| 1645 | argOne, _, _, tgtShape = self._create_arrays() |
| 1646 | funcs = (np.random.exponential, np.random.standard_gamma, |
| 1647 | np.random.chisquare, np.random.standard_t, |
| 1648 | np.random.pareto, np.random.weibull, |
| 1649 | np.random.power, np.random.rayleigh, |
| 1650 | np.random.poisson, np.random.zipf, |
| 1651 | np.random.geometric, np.random.logseries) |
| 1652 | |
| 1653 | probfuncs = (np.random.geometric, np.random.logseries) |
| 1654 | |
| 1655 | for func in funcs: |
| 1656 | if func in probfuncs: # p < 1.0 |
| 1657 | out = func(np.array([0.5])) |
| 1658 | |
| 1659 | else: |
| 1660 | out = func(argOne) |
| 1661 | |
| 1662 | assert_equal(out.shape, tgtShape) |
| 1663 | |
| 1664 | def test_two_arg_funcs(self): |
| 1665 | argOne, argTwo, _, tgtShape = self._create_arrays() |
nothing calls this directly
no test coverage detected