]> granicus.if.org Git - python/commitdiff
SF# 1635892: Fix docs for betavariate's input parameters .
authorRaymond Hettinger <python@rcn.com>
Fri, 19 Jan 2007 18:07:18 +0000 (18:07 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 19 Jan 2007 18:07:18 +0000 (18:07 +0000)
Doc/lib/librandom.tex
Lib/random.py

index c6b88469a376c711ce78e76d69bd193b594c92b4..78c536b32169b2de2ae8012427fcfe132a1cb327 100644 (file)
@@ -185,7 +185,7 @@ these equations can be found in any statistics text.
 
 \begin{funcdesc}{betavariate}{alpha, beta}
   Beta distribution.  Conditions on the parameters are
-  \code{\var{alpha} > -1} and \code{\var{beta} > -1}.
+  \code{\var{alpha} > 0} and \code{\var{beta} > 0}.
   Returned values range between 0 and 1.
 \end{funcdesc}
 
index b80f1a1c3f08433cef60a06ed08d91bd23921843..ed87ddd64ee1df636eaba950c49ba24e3d78d537 100644 (file)
@@ -569,7 +569,7 @@ class Random(_random.Random):
     def betavariate(self, alpha, beta):
         """Beta distribution.
 
-        Conditions on the parameters are alpha > -1 and beta} > -1.
+        Conditions on the parameters are alpha > 0 and beta > 0.
         Returned values range between 0 and 1.
 
         """