This is an internal function to sim_trajectory_R. It does the
actual sampling once all of the functions have been checked and setup.
Usage
sim_trajectory_base_R(
x0,
times,
num_reps,
stepFun,
events = NULL,
batch = NULL,
Sout = NULL,
verbose = TRUE
)Arguments
- x0
the initial marking of the SPN (initial state)
- times
sequence of sampling times
- num_reps
number of repetitions to run
- stepFun
a sampling function
- events
a
data.frameof events (uses the same format as required in packagedeSolvefor consistency, seeeventsfor more information)- batch
a
listof batch migration events, created frombatch_migration, may be set toNULLif not used- Sout
an optional matrix to track event firings
- verbose
print a progress bar?