Searched refs:gammavariate (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/ |
D | random.py | 698 def gammavariate(self, alpha, beta): member in Random 785 y = self.gammavariate(alpha, 1.0) 787 return y / (y + self.gammavariate(beta, 1.0)) 872 gammavariate = _inst.gammavariate variable 908 _test_generator(N, gammavariate, (0.01, 1.0)) 909 _test_generator(N, gammavariate, (0.1, 1.0)) 910 _test_generator(N, gammavariate, (0.1, 2.0)) 911 _test_generator(N, gammavariate, (0.5, 1.0)) 912 _test_generator(N, gammavariate, (0.9, 1.0)) 913 _test_generator(N, gammavariate, (1.0, 1.0)) [all …]
|
/third_party/python/Lib/test/ |
D | test_random.py | 1011 g.random = x[:].pop; g.gammavariate(0.01, 1.0) 1012 g.random = x[:].pop; g.gammavariate(1.0, 1.0) 1013 g.random = x[:].pop; g.gammavariate(200.0, 1.0) 1090 self.assertRaises(ValueError, random.gammavariate, -1, 3) 1091 self.assertRaises(ValueError, random.gammavariate, 0, 2) 1092 self.assertRaises(ValueError, random.gammavariate, 2, 0) 1093 self.assertRaises(ValueError, random.gammavariate, 1, -3) 1107 returned_value = random.gammavariate(1.1, 2.3) 1118 returned_value = random.gammavariate(1.0, 3.14) 1128 gammavariate_returned_value = random.gammavariate(1.0, beta) [all …]
|
/third_party/python/Doc/library/ |
D | random.rst | 315 .. function:: gammavariate(alpha, beta)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.8.0a1.rst | 2056 random.gammavariate(1.0, beta) now computes the same result as
|