epi-sim-0.4.2: 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.

-> ([(AbsoluteTime, 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.

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.