mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue 10787: Document the probability density function for random.gammavariate.
This commit is contained in:
		
						commit
						09cbadd005
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -465,6 +465,12 @@ def gammavariate(self, alpha, beta): | |||
| 
 | ||||
|         Conditions on the parameters are alpha > 0 and beta > 0. | ||||
| 
 | ||||
|         The probability distribution function is: | ||||
| 
 | ||||
|                     x ** (alpha - 1) * math.exp(-x / beta) | ||||
|           pdf(x) =  -------------------------------------- | ||||
|                       math.gamma(alpha) * beta ** alpha | ||||
| 
 | ||||
|         """ | ||||
| 
 | ||||
|         # alpha > 0, beta > 0, mean is alpha*beta, variance is alpha*beta**2 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger