Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- configuration :: TimeDelta -> Bool -> ([(AbsoluteTime, Rate)], Rate, Rate) -> Maybe (SimulationConfiguration InhomBDSRates InhomBDSPop)
- randomEvent :: SimulationRandEvent InhomBDSRates InhomBDSPop
- inhomBDSRates :: Timed Rate -> Rate -> Rate -> Maybe InhomBDSRates
- data InhomBDSRates = InhomBDSRates (Timed Rate) Rate Rate
- data InhomBDSPop = InhomBDSPop People
Documentation
:: 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.
Return a BDS-process parameters object
Note that this requires that the rates are all positive, if they are not it
will return Nothing
.
data InhomBDSRates Source #
Instances
ModelParameters InhomBDSRates InhomBDSPop Source # | |
Defined in Epidemic.Model.InhomogeneousBDS rNaught :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Double Source # eventRate :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Rate Source # birthProb :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Probability Source # |
data InhomBDSPop Source #
Instances
Show InhomBDSPop Source # | |
Defined in Epidemic.Model.InhomogeneousBDS showsPrec :: Int -> InhomBDSPop -> ShowS # show :: InhomBDSPop -> String # showList :: [InhomBDSPop] -> ShowS # | |
Population InhomBDSPop Source # | |
Defined in Epidemic.Model.InhomogeneousBDS susceptiblePeople :: InhomBDSPop -> Maybe People Source # infectiousPeople :: InhomBDSPop -> Maybe People Source # removedPeople :: InhomBDSPop -> Maybe People Source # isInfected :: InhomBDSPop -> Bool Source # | |
ModelParameters InhomBDSRates InhomBDSPop Source # | |
Defined in Epidemic.Model.InhomogeneousBDS rNaught :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Double Source # eventRate :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Rate Source # birthProb :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Probability Source # |