Log normal distribution. If you take the natural logarithm of this distribution, you'll get a normal distribution with mean mu and standard deviation sigma. mu can have any value, and sigma must be greater than zero.
(self, mu, sigma)
| 593 | return mu + z * sigma |
| 594 | |
| 595 | def lognormvariate(self, mu, sigma): |
| 596 | """Log normal distribution. |
| 597 | |
| 598 | If you take the natural logarithm of this distribution, you'll get a |
| 599 | normal distribution with mean mu and standard deviation sigma. |
| 600 | mu can have any value, and sigma must be greater than zero. |
| 601 | |
| 602 | """ |
| 603 | return _exp(self.normalvariate(mu, sigma)) |
| 604 | |
| 605 | def expovariate(self, lambd=1.0): |
| 606 | """Exponential distribution. |