ssa.check.method {GillespieSSA} | R Documentation |
Validates consistency of the system definition.
ssa.check.method(x0,a,nu,method,tau,f)
x0 |
numerical vector of initial states where the component elements must be named using the same notation as the corresponding state variable in the propensity vector, a . |
a |
character vector of propensity functions where state variables correspond to the names of the elements in x0 . |
nu |
numerical matrix of change if the number of individuals in each state (rows) caused by a single reaction of any given type (columns). |
method |
text string indicating the SSA method to use, the valid options are: D — Direct method (default method), ETL - Explicit tau-leap, BTL — Binomial tau-leap, or OTL — Optimized tau-leap. |
tau |
step size for the ETL method (>0). |
f |
coarse-graining factor for the BTL method (>1) where a higher value results in larger step-size. |
Performs a few basic consistency checks the defined system, e.g. that the number of rows and columns in the state-change matrix and the number of elements in the initial state vector and the vector of propensity functions are consistent. This function is called from within ssa
and is not intended to be invoked stand alone.
## Not intended to be invoked stand alone