Description Usage Arguments Value
View source: R/compile_reactions.R
By precompiling the reactions, you can run multiple SSA simulations repeatedly without having to recompile the reactions every time.
1 2 3 4 5 6 7 8 | compile_reactions(
reactions,
state_ids,
params,
buffer_ids = NULL,
hardcode_params = FALSE,
fun_by = 10000L
)
|
reactions |
'reaction' A list of multiple |
state_ids |
|
params |
|
buffer_ids |
|
hardcode_params |
|
fun_by |
|
A list of objects solely to be used by ssa()
.
x[["state_change"]]
: A sparse matrix of reaction effects.
x[["reaction_ids"]]
: The names of the reactions.
x[["buffer_ids"]]
: A set of buffer variables found in the propensity functions.
x[["buffer_size"]]
: The minimum size of the buffer required.
x[["function_pointers"]]
: A list of compiled propensity functions.
x[["hardcode_params"]]
: Whether the parameters were hard coded into the source code.'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.