Commit efb16628 authored by Georgios Dagkakis's avatar Georgios Dagkakis

comment added

parent 0c795236
......@@ -84,6 +84,7 @@ class RandomNumberGenerator(object):
elif(self.distributionType=="Weibull"): #if the distribution is Weibull
return G.Rnd.weibullvariate(self.scale, self.shape)
elif(self.distributionType=="Cauchy"): #if the distribution is Cauchy
# XXX from http://www.johndcook.com/python_cauchy_rng.html
while 1:
p = 0.0
while p == 0.0:
......
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