Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1b0ce852
Commit
1b0ce852
authored
Jan 19, 2007
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF# 1635892: Fix docs for betavariate's input parameters .
parent
0682a52e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Doc/lib/librandom.tex
Doc/lib/librandom.tex
+1
-1
Lib/random.py
Lib/random.py
+1
-1
No files found.
Doc/lib/librandom.tex
View file @
1b0ce852
...
@@ -185,7 +185,7 @@ these equations can be found in any statistics text.
...
@@ -185,7 +185,7 @@ these equations can be found in any statistics text.
\begin{funcdesc}
{
betavariate
}{
alpha, beta
}
\begin{funcdesc}
{
betavariate
}{
alpha, beta
}
Beta distribution. Conditions on the parameters are
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.
Returned values range between 0 and 1.
\end{funcdesc}
\end{funcdesc}
...
...
Lib/random.py
View file @
1b0ce852
...
@@ -569,7 +569,7 @@ class Random(_random.Random):
...
@@ -569,7 +569,7 @@ class Random(_random.Random):
def
betavariate
(
self
,
alpha
,
beta
):
def
betavariate
(
self
,
alpha
,
beta
):
"""Beta distribution.
"""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.
Returned values range between 0 and 1.
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment