Safe Haskell | Safe-Infered |
---|
Numeric.Probability.Example.Dice
Documentation
type Probability = Rational
type Dist = T Probability
sixes :: (Int -> Bool) -> Int -> Probability
sixes p n
computes the probability of getting
p sixes (>1
, ==2
, ...) when rolling n dice
g3 :: Probability