probability-0.2.6: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Example.Dice

Synopsis

Documentation

type Die = Int Source #

twoDice :: Dist (Die, Die) Source #

product of independent distributions

sixes :: (Int -> Bool) -> Int -> Probability Source #

sixes p n computes the probability of getting p sixes (>1, ==2, ...) when rolling n dice