Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- eventPopDelta :: EpidemicEvent -> Integer
- firstScheduled :: AbsoluteTime -> Timed Probability -> Maybe (AbsoluteTime, Probability)
- noScheduledEvent :: AbsoluteTime -> AbsoluteTime -> Timed Probability -> Bool
- personsInEvent :: EpidemicEvent -> [Person]
- peopleInEvents :: [EpidemicEvent] -> People
- infected :: Person -> Person -> EpidemicEvent -> Bool
- infectedBy :: Person -> [EpidemicEvent] -> People
- allEvents :: (ModelParameters a b, Population b) => SimulationRandEvent a b -> a -> AbsoluteTime -> Maybe (b -> Bool) -> SimulationState b -> GenIO -> IO (SimulationState b)
Documentation
eventPopDelta :: EpidemicEvent -> Integer Source #
The number of people added or removed in an event.
:: AbsoluteTime | The given time |
-> Timed Probability | The information about all scheduled events |
-> Maybe (AbsoluteTime, Probability) |
The first scheduled event after a given time.
:: 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
.
peopleInEvents :: [EpidemicEvent] -> People Source #
:: Person | Potential infector |
-> Person | Potential infectee |
-> EpidemicEvent | Given event |
-> Bool |
Predicate for whether the first person infected the second in the given event
:: Person | Potential infector |
-> [EpidemicEvent] | Events |
-> People |
The people infected by a particular person in a list of events.
:: (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.