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

Epidemic.Model.InhomogeneousBDS

Synopsis

Documentation

configuration Source #

Arguments

:: TimeDelta

Duration of the simulation after starting at time 0.

-> Bool

condition upon at least two sequenced samples.

-> Maybe (InhomBDSPop -> Bool, [EpidemicEvent] -> s)

values for termination handling.

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

Birth, Death and Sampling rates

-> Maybe (SimulationConfiguration InhomBDSRates InhomBDSPop s) 

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.

inhomBDSRates Source #

Arguments

:: Timed 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.