Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- configuration :: Time -> ([(Time, Rate)], Rate, Rate) -> Maybe (SimulationConfiguration InhomBDSRates InhomBDSPop)
- allEvents :: InhomBDSRates -> Time -> (Time, [EpidemicEvent], InhomBDSPop, Integer) -> GenIO -> IO (Time, [EpidemicEvent], InhomBDSPop, Integer)
- observedEvents :: [EpidemicEvent] -> [EpidemicEvent]
- inhomBDSRates :: [(Time, Rate)] -> Rate -> Rate -> Maybe InhomBDSRates
Documentation
:: 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.
:: 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.
:: [EpidemicEvent] | All of the simulation events |
-> [EpidemicEvent] |
Just the observable events from a list of all the events in a simulation.