Copyright | (c) 2009 2011 Bryan O'Sullivan |
---|---|
License | BSD3 |
Maintainer | bos@serpentine.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
The gamma distribution. This is a continuous probability distribution with two parameters, k and ϑ. If k is integral, the distribution represents the sum of k independent exponentially distributed random variables, each of which has a mean of ϑ.
- data GammaDistribution
- gammaDistr :: Double -> Double -> GammaDistribution
- gammaDistrE :: Double -> Double -> Maybe GammaDistribution
- improperGammaDistr :: Double -> Double -> GammaDistribution
- improperGammaDistrE :: Double -> Double -> Maybe GammaDistribution
- gdShape :: GammaDistribution -> Double
- gdScale :: GammaDistribution -> Double
Documentation
data GammaDistribution Source #
The gamma distribution.
Constructors
:: Double | Shape parameter. k |
-> Double | Scale parameter, ϑ. |
-> GammaDistribution |
Create gamma distribution. Both shape and scale parameters must be positive.
:: Double | Shape parameter. k |
-> Double | Scale parameter, ϑ. |
-> Maybe GammaDistribution |
Create gamma distribution. Both shape and scale parameters must be positive.
:: Double | Shape parameter. k |
-> Double | Scale parameter, ϑ. |
-> GammaDistribution |
Create gamma distribution. Both shape and scale parameters must be non-negative.
:: Double | Shape parameter. k |
-> Double | Scale parameter, ϑ. |
-> Maybe GammaDistribution |
Create gamma distribution. Both shape and scale parameters must be non-negative.
Accessors
gdShape :: GammaDistribution -> Double Source #
Shape parameter, k.
gdScale :: GammaDistribution -> Double Source #
Scale parameter, ϑ.