probability-0.2.6: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Example.Boys

Description

Consider a family of two children. Given that there is a boy in the family, what is the probability that there are two boys in the family?

Documentation

data Child Source #

Constructors

Boy 
Girl 
Instances
Eq Child Source # 
Instance details

Defined in Numeric.Probability.Example.Boys

Methods

(==) :: Child -> Child -> Bool #

(/=) :: Child -> Child -> Bool #

Ord Child Source # 
Instance details

Defined in Numeric.Probability.Example.Boys

Methods

compare :: Child -> Child -> Ordering #

(<) :: Child -> Child -> Bool #

(<=) :: Child -> Child -> Bool #

(>) :: Child -> Child -> Bool #

(>=) :: Child -> Child -> Bool #

max :: Child -> Child -> Child #

min :: Child -> Child -> Child #

Show Child Source # 
Instance details

Defined in Numeric.Probability.Example.Boys

Methods

showsPrec :: Int -> Child -> ShowS #

show :: Child -> String #

showList :: [Child] -> ShowS #