Copyright | (c) 2020 Ximin Luo |
---|---|
License | BSD3 |
Maintainer | infinity0@pwned.gg |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The log normal distribution. This is a continuous probability distribution that describes data whose log is clustered around a mean. For example, the multiplicative product of many independent positive random variables.
Documentation
data LognormalDistribution Source #
The lognormal distribution.
Instances
Constructors
:: Double | Mu |
-> Double | Sigma |
-> LognormalDistribution |
Create log normal distribution from parameters.
:: Double | Mu |
-> Double | Sigma |
-> Either String LognormalDistribution |
Create log normal distribution from parameters.
lognormalDistrMeanStddevErr Source #
:: Double | Mu |
-> Double | Sigma |
-> Either String LognormalDistribution |
Create log normal distribution from mean and standard deviation.
lognormalStandard :: LognormalDistribution Source #
Standard log normal distribution with mu 0 and sigma 1.
Mean is sqrt e
and variance is (e - 1) * e
.