Copyright | (c) 2009 Bryan O'Sullivan |
---|---|
License | BSD3 |
Maintainer | bos@serpentine.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
The Geometric distribution. There are two variants of distribution. First is the probability distribution of the number of Bernoulli trials needed to get one success, supported on the set 1,2... Sometimes it's referred to as the shifted geometric distribution to distinguish from another one.
Second variant is probability distribution of the number of failures before first success, defined over the set 0,1...
- data GeometricDistribution
- data GeometricDistribution0
- geometric :: Double -> GeometricDistribution
- geometricE :: Double -> Maybe GeometricDistribution
- geometric0 :: Double -> GeometricDistribution0
- geometric0E :: Double -> Maybe GeometricDistribution0
- gdSuccess :: GeometricDistribution -> Double
- gdSuccess0 :: GeometricDistribution0 -> Double
Documentation
data GeometricDistribution Source #
Distribution over [1..]
data GeometricDistribution0 Source #
Distribution over [0..]
Constructors
:: Double | Success rate |
-> Maybe GeometricDistribution |
Create geometric distribution.
:: Double | Success rate |
-> Maybe GeometricDistribution0 |
Create geometric distribution.