mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
merge doc fixes from 3.2
This commit is contained in:
commit
902e895578
2 changed files with 8 additions and 1 deletions
|
@ -169,6 +169,7 @@ be found in any statistics text.
|
|||
The end-point value ``b`` may or may not be included in the range
|
||||
depending on floating-point rounding in the equation ``a + (b-a) * random()``.
|
||||
|
||||
|
||||
.. function:: triangular(low, high, mode)
|
||||
|
||||
Return a random floating point number *N* such that ``low <= N <= high`` and
|
||||
|
@ -197,6 +198,12 @@ be found in any statistics text.
|
|||
Gamma distribution. (*Not* the gamma function!) 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
|
||||
|
||||
|
||||
.. function:: gauss(mu, sigma)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue