The DenseGillespieAlgorithm Module

Missing docstring.

Missing docstring for DenseGillespieAlgorithm. Check Documenter's build log for details.

Module Index

Detailed API

DenseGillespieAlgorithm.chooseeventMethod
chooseevent(rates::Vector{Float64},total_rate::Float64;<keyword arguments>)

From the vector of total rates choose at random one of the indices of the vector according to their rates. The value 0 is returned if the total rates are positive, but too smale to let the evolution continue. The maximum number of tries is set by max_try=1000.

source
DenseGillespieAlgorithm.mainiteration!Method
mainiteration!

For models where population states are dictionaries (or vectors) with the traits as
keys and the subpopulation size as values. Here the population history is
itselfe a dictionary with the same keys and the individual subpopulation
history as a vector for every trait.
source
DenseGillespieAlgorithm.nexteventandtimeMethod
nexteventandtime(rates::Vector{Float64})

Samples a exponential distributed random variable to determine the time for the next event and calls choose_event. The return value is a tuple consiting of the envent index returned by choose_event and the time to the next event.

source