| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Epidemic.Model.InhomogeneousBDS
Synopsis
- configuration :: TimeDelta -> Bool -> Maybe (InhomBDSPop -> Bool, [EpidemicEvent] -> s) -> ([(AbsoluteTime, Rate)], Rate, Rate) -> Maybe (SimulationConfiguration InhomBDSRates InhomBDSPop s)
- randomEvent :: SimulationRandEvent InhomBDSRates InhomBDSPop
- inhomBDSRates :: Timed Rate -> Rate -> Rate -> Maybe InhomBDSRates
- data InhomBDSRates = InhomBDSRates (Timed Rate) Rate Rate
- data InhomBDSPop = InhomBDSPop People
Documentation
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.
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 #
Constructors
| InhomBDSRates (Timed Rate) Rate Rate |
Instances
| ModelParameters InhomBDSRates InhomBDSPop Source # | |
Defined in Epidemic.Model.InhomogeneousBDS Methods rNaught :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Double Source # eventRate :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Rate Source # birthProb :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Probability Source # eventWeights :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe (Vector Double) Source # | |
data InhomBDSPop Source #
Constructors
| InhomBDSPop People |
Instances
| Show InhomBDSPop Source # | |
Defined in Epidemic.Model.InhomogeneousBDS Methods showsPrec :: Int -> InhomBDSPop -> ShowS # show :: InhomBDSPop -> String # showList :: [InhomBDSPop] -> ShowS # | |
| Population InhomBDSPop Source # | |
Defined in Epidemic.Model.InhomogeneousBDS Methods 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 Methods rNaught :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Double Source # eventRate :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Rate Source # birthProb :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe Probability Source # eventWeights :: InhomBDSPop -> InhomBDSRates -> AbsoluteTime -> Maybe (Vector Double) Source # | |