probability-0.2.8: Probabilistic Functional Programming
Safe HaskellSafe-Inferred
LanguageHaskell98

Numeric.Probability.Example.Queuing

Description

Synopsis

Documentation

type Time = Int Source #

type Profile = (Time, Time) Source #

(servingTime, nextArrival)

type Event a = (a, Profile) Source #

type Queue a = [(a, Time)] Source #

customers and their individual serving times

type State a = (Queue a, Time) Source #

(customers waiting,validity period of that queue)

type System a = [([a], Time)] Source #

type Events a = [Event a] Source #

event :: Time -> Events a -> Queue a -> [State a] Source #

system :: Events a -> System a Source #

mEvent :: Int -> Time -> Events a -> Queue a -> [State a] Source #

multiple servers

mServe :: Int -> Int -> Queue a -> Queue a Source #

decrease served customers remaining time by specified amount

mTimeStep :: Int -> Queue a -> Int Source #

time until next completion

mSystem :: Int -> Events a -> System a Source #

random

type RProfile = (Dist Time, Trans Time) Source #

type REvent a = (a, RProfile) Source #

type REvents a = [REvent a] Source #

rSystem :: Int -> REvents a -> T (System a) Source #

rBuildEvents :: REvents a -> T (Events a) Source #

rmSystem :: Ord a => Int -> Int -> REvents a -> RDist (System a) Source #

evalSystem :: (Ord a, Ord b) => Int -> Int -> REvents a -> (System a -> b) -> RDist b Source #

unit :: b -> ((), b) Source #

evaluation

maxQueue :: Ord a => System a -> Int Source #

allWaiting :: Ord a => Int -> System a -> [a] Source #

countWaiting :: Ord a => Int -> System a -> Int Source #

waiting :: Int -> System a -> Time Source #

inSystem :: System a -> Time Source #

total :: System a -> Time Source #

server :: Int -> System a -> Time Source #

idle :: Int -> System a -> Time Source #

idleAvgP :: Int -> System a -> Float Source #

AltStyle によって変換されたページ (->オリジナル) /