Home
last modified time | relevance | path

Searched refs:gammavariate (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Lib/
Drandom.py698 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/
Dtest_random.py1011 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/
Drandom.rst315 .. function:: gammavariate(alpha, beta)
/third_party/python/Misc/NEWS.d/
D3.8.0a1.rst2056 random.gammavariate(1.0, beta) now computes the same result as