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

Epidemic.Types.Simulation

Synopsis

Documentation

data SimulationConfiguration r p s Source #

Constructors

SimulationConfiguration 

Fields

data SimulationState b c Source #

Either there is a valid simulation state which contains a sequence of epidemic events along with the time and population or, if the simulation has terminated early there is another value to indicate that along with a value which can be used to indicate why the simulation was terminated early.

Instances

Instances details
(Eq b, Eq c) => Eq (SimulationState b c) Source # 
Instance details

Defined in Epidemic.Types.Simulation

(Show b, Show c) => Show (SimulationState b c) Source # 
Instance details

Defined in Epidemic.Types.Simulation

data TerminationHandler b c where Source #

Check if a simulation should be terminated and if it should be terminated, then compute a summary explaining why. The first function is used to determine whether the population has entered a state which requires the simulation to terminate early and the second can be use to write a summary of the events that led to the termination.

Constructors

TerminationHandler :: Population b => (b -> Bool) -> ([EpidemicEvent] -> c) -> TerminationHandler b c 

genIOFromFixed :: IO GenIO Source #

A PRNG seed which is hard coded into mwc-random.

genIOFromWord32 :: Word32 -> IO GenIO Source #

A PRNG seed based on the given number. This is the best choice for reproducible simulations.

genIOFromSystem :: IO GenIO Source #

A PRNG seed generated by the system's random number generator.