Commit 3f3ef2fc authored by Guido van Rossum's avatar Guido van Rossum

# Typos in the comments giving the names of two recently added distributions.

parent d7e86bf1
...@@ -212,7 +212,7 @@ def betavariate(alpha, beta): ...@@ -212,7 +212,7 @@ def betavariate(alpha, beta):
z = expovariate(1.0/beta) z = expovariate(1.0/beta)
return z/(y+z) return z/(y+z)
# -------------------- pareto -------------------- # -------------------- Pareto --------------------
def paretovariate(alpha): def paretovariate(alpha):
# Jain, pg. 495 # Jain, pg. 495
...@@ -220,7 +220,7 @@ def paretovariate(alpha): ...@@ -220,7 +220,7 @@ def paretovariate(alpha):
u = random() u = random()
return 1.0 / pow(u, 1.0/alpha) return 1.0 / pow(u, 1.0/alpha)
# -------------------- pareto -------------------- # -------------------- Weibull --------------------
def weibullvariate(alpha, beta): def weibullvariate(alpha, beta):
# Jain, pg. 499; bug fix courtesy Bill Arms # Jain, pg. 499; bug fix courtesy Bill Arms
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment