probability-0.2.2.1: Probabilistic Functional ProgrammingSource codeContentsIndex
Numeric.Probability.Example.Barber
Contents
barber shop
category
evaluation
Synopsis
custServ :: Dist Time
nextCust :: Trans Time
barbers :: Int
customers :: Int
runs :: Int
barberEvent :: ((), (Dist Time, Time -> Dist Time))
barberEvents :: [((), (Dist Time, Time -> Dist Time))]
barberSystem :: Ord b => (System () -> b) -> RDist b
data Category
= ThreeOrLess
| FourToTen
| MoreThanTen
cat :: Time -> Category
perc :: Float -> String
barberIdle :: RDist String
customerWait :: RDist Category
barber shop
custServ :: Dist TimeSource
nextCust :: Trans TimeSource
barbers :: IntSource
customers :: IntSource
runs :: IntSource
barberEvent :: ((), (Dist Time, Time -> Dist Time))Source
barberEvents :: [((), (Dist Time, Time -> Dist Time))]Source
barberSystem :: Ord b => (System () -> b) -> RDist bSource
category
data Category Source
Constructors
ThreeOrLess
FourToTen
MoreThanTen
show/hide Instances
cat :: Time -> CategorySource
perc :: Float -> StringSource
evaluation
barberIdle :: RDist StringSource
avg barber idle time
customerWait :: RDist CategorySource
avg customer waiting time (unserved customers)
Produced by Haddock version 2.4.2