Mercurial Hosting > traffic-intelligence
diff python/utils.py @ 687:de278c5e65f6 dev
minor comments for lognormal parameters (numpy and usual names differ)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 22 Jun 2015 15:27:33 +0200 |
parents | cdee6a3a47b4 |
children | 9990ef119bce |
line wrap: on
line diff
--- a/python/utils.py Tue Jun 09 17:29:03 2015 +0200 +++ b/python/utils.py Mon Jun 22 15:27:33 2015 +0200 @@ -27,6 +27,8 @@ ######################### def logNormalMeanVar(loc, scale): + '''location and scale are respectively the mean and standard deviation of the normal in the log-normal distribution + https://en.wikipedia.org/wiki/Log-normal_distribution''' mean = exp(loc+(scale**2)/2) var = (exp(loc**2)-1)*exp(2*loc+scale**2) return mean, var