Searched refs:gammavariate (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Lib/ |
D | random.py | 504 def gammavariate(self, alpha, beta): member in Random 639 y = self.gammavariate(alpha, 1.0) 643 return y / (y + self.gammavariate(beta, 1.0)) 729 _test_generator(N, gammavariate, (0.01, 1.0)) 730 _test_generator(N, gammavariate, (0.1, 1.0)) 731 _test_generator(N, gammavariate, (0.1, 2.0)) 732 _test_generator(N, gammavariate, (0.5, 1.0)) 733 _test_generator(N, gammavariate, (0.9, 1.0)) 734 _test_generator(N, gammavariate, (1.0, 1.0)) 735 _test_generator(N, gammavariate, (2.0, 1.0)) [all …]
|
/external/python/cpython2/Lib/ |
D | random.py | 492 def gammavariate(self, alpha, beta): member in Random 627 y = self.gammavariate(alpha, 1.) 631 return y / (y + self.gammavariate(beta, 1.)) 868 _test_generator(N, gammavariate, (0.01, 1.0)) 869 _test_generator(N, gammavariate, (0.1, 1.0)) 870 _test_generator(N, gammavariate, (0.1, 2.0)) 871 _test_generator(N, gammavariate, (0.5, 1.0)) 872 _test_generator(N, gammavariate, (0.9, 1.0)) 873 _test_generator(N, gammavariate, (1.0, 1.0)) 874 _test_generator(N, gammavariate, (2.0, 1.0)) [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_random.py | 759 g.random = x[:].pop; g.gammavariate(0.01, 1.0) 760 g.random = x[:].pop; g.gammavariate(1.0, 1.0) 761 g.random = x[:].pop; g.gammavariate(200.0, 1.0) 838 self.assertRaises(ValueError, random.gammavariate, -1, 3) 839 self.assertRaises(ValueError, random.gammavariate, 0, 2) 840 self.assertRaises(ValueError, random.gammavariate, 2, 0) 841 self.assertRaises(ValueError, random.gammavariate, 1, -3) 854 returned_value = random.gammavariate(1.1, 2.3) 861 returned_value = random.gammavariate(1.0, 3.14) 910 returned_value = random.gammavariate(alpha, beta) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_random.py | 528 g.random = x[:].pop; g.gammavariate(0.01, 1.0) 529 g.random = x[:].pop; g.gammavariate(1.0, 1.0) 530 g.random = x[:].pop; g.gammavariate(200.0, 1.0)
|
/external/scapy/scapy/ |
D | volatile.py | 135 return int(round(random.gammavariate(self.alpha, self.beta)))
|
/external/python/cpython2/Doc/library/ |
D | random.rst | 237 .. function:: gammavariate(alpha, beta)
|
/external/python/cpython3/Doc/library/ |
D | random.rst | 259 .. function:: gammavariate(alpha, beta)
|