Package BIP :: Package SDE :: Module gillespie :: Class Model
[hide private]
[frames] | no frames]

Class Model

source code

Instance Methods [hide private]
 
__init__(self, vnames, rates, inits, tmat, propensity)
vnames: list of strings
source code
 
getStats(self) source code
 
run(self, method='SSA', tmax=10, reps=1) source code
 
GSSA(self, tmax=50, round=0)
Gillespie Direct algorithm
source code
 
CR(self, pv)
Composition reaction algorithm
source code
Method Details [hide private]

__init__(self, vnames, rates, inits, tmat, propensity)
(Constructor)

source code 
  • vnames: list of strings

  • rates: list of fixed rate parameters

  • inits: list of initial values of variables

  • propensity: list of lambda functions of the form:

    lambda r,ini: some function of rates ans inits.