(self)
| 1133 | assert_raises(ValueError, exponential, bad_scale * 3) |
| 1134 | |
| 1135 | def test_standard_gamma(self): |
| 1136 | shape = [1] |
| 1137 | bad_shape = [-1] |
| 1138 | std_gamma = np.random.standard_gamma |
| 1139 | desired = np.array([0.76106853658845242, |
| 1140 | 0.76386282278691653, |
| 1141 | 0.71243813125891797]) |
| 1142 | |
| 1143 | self.setSeed() |
| 1144 | actual = std_gamma(shape * 3) |
| 1145 | assert_array_almost_equal(actual, desired, decimal=14) |
| 1146 | assert_raises(ValueError, std_gamma, bad_shape * 3) |
| 1147 | |
| 1148 | def test_gamma(self): |
| 1149 | shape = [1] |
nothing calls this directly
no test coverage detected