epi-sim-0.4.2: A library for simulating epidemics as birth-death processes.
Safe HaskellNone
LanguageHaskell2010

Epidemic

Synopsis

Documentation

eventPopDelta :: EpidemicEvent -> Integer Source #

The number of people added or removed in an event.

firstScheduled Source #

Arguments

:: AbsoluteTime

The given time

-> Timed Probability

The information about all scheduled events

-> Maybe (AbsoluteTime, Probability) 

The first scheduled event after a given time.

noScheduledEvent Source #

Arguments

:: AbsoluteTime

Start time for interval

-> AbsoluteTime

End time for interval

-> Timed Probability

Information about all scheduled events

-> Bool 

Predicate for whether there is a scheduled event during an interval.

personsInEvent :: EpidemicEvent -> [Person] Source #

A list of the people involved in an EpidemicEvent.

infected Source #

Arguments

:: Person

Potential infector

-> Person

Potential infectee

-> EpidemicEvent

Given event

-> Bool 

Predicate for whether the first person infected the second in the given event

infectedBy Source #

Arguments

:: Person

Potential infector

-> [EpidemicEvent]

Events

-> People 

The people infected by a particular person in a list of events.

allEvents Source #

Arguments

:: (ModelParameters a b, Population b) 
=> SimulationRandEvent a b 
-> a 
-> AbsoluteTime 
-> Maybe (b -> Bool)

predicate for a valid population

-> SimulationState b 
-> GenIO 
-> IO (SimulationState b) 

Run the simulation and return a SimulationState which holds the history of the simulation.