Generates a realization of the solution to the Chemical Master Equation.

ssa(
  sys,
  length.out = 100,
  all.out = FALSE,
  trajectories = 1,
  parallel = FALSE,
  cores = detectCores(),
  average = FALSE,
  k = NULL,
  force_compile = FALSE
)

Arguments

sys

rsys instance

length.out

length of solution output (table rows) (default 100)

all.out

if TRUE (default FALSE), ignore length.out and return entire solution

trajectories

number of trajectories to generate

parallel

if TRUE (default FALSE) generate trajectories using multiple CPU cores

cores

number of cores to use if parallel is TRUE (default is all system cores)

average

if TRUE (default FALSE) and generating multiple trajectories, averages trajectories at sample times; incompatible with all.out = TRUE

k

numeric vector of reaction rates corresponding to the reactions in sys, overrides those contained if sys if provided

force_compile

if set to TRUE, forces the overwriting and recompilation of the network source file

Value

rsol instance