Portability | portable |
---|---|
Stability | experimental |
Maintainer | bos@serpentine.com |
The binomial distribution. This is the discrete probability distribution of the number of successes in a sequence of n independent yes/no experiments, each of which yields success with probability p.
- data BinomialDistribution
- binomial :: Int -> Double -> BinomialDistribution
- bdTrials :: BinomialDistribution -> Int
- bdProbability :: BinomialDistribution -> Double
Documentation
data BinomialDistribution Source
The binomial distribution.
Constructors
:: Int | Number of trials. |
-> Double | Probability. |
-> BinomialDistribution |
Accessors
bdTrials :: BinomialDistribution -> IntSource
Number of trials.
bdProbability :: BinomialDistribution -> DoubleSource
Probability.