epi-sim-0.2.2.0: A library for simulating epidemics as birth-death processes.

Safe HaskellNone
LanguageHaskell2010

Epidemic.InhomogeneousBDS

Synopsis

Documentation

configuration Source #

Arguments

:: Time

Duration of the simulation

-> ([(Time, Rate)], Rate, Rate)

Birth, Death and Sampling rates

-> Maybe (SimulationConfiguration InhomBDSRates InhomBDSPop) 

Configuration of a inhomogeneous birth-death-sampling simulation.

Note that this requires that the timed rates are all positive, if they are not it will return Nothing which can lead to cryptic bugs.

allEvents Source #

Arguments

:: InhomBDSRates

model parameters

-> Time

stopping time

-> (Time, [EpidemicEvent], InhomBDSPop, Integer)

simulation state

-> GenIO

PRNG

-> IO (Time, [EpidemicEvent], InhomBDSPop, Integer) 

The state of the simulation at the time of the last event prior to the stopping time.

observedEvents Source #

Arguments

:: [EpidemicEvent]

All of the simulation events

-> [EpidemicEvent] 

Just the observable events from a list of all the events in a simulation.

inhomBDSRates Source #

Arguments

:: [(Time, Rate)]

birth rate

-> Rate

death rate

-> Rate

sample rate

-> Maybe InhomBDSRates 

Return a BDS-process parameters object

Note that this requires that the rates are all positive, if they are not it will return Nothing.