Simulate Trajectory From one SPN Model using Human SIS model
Source:R/sampling-trajectory-R-decoupled.R
sim_trajectory_base_R_decoupled_SIS.Rd
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_decoupled_SIS(
x0,
h0,
SPN_P,
theta,
times,
num_reps,
stepFun,
events = NULL,
batch = NULL,
Sout = NULL,
verbose = TRUE,
cube = NULL
)
Arguments
- x0
the initial marking of the SPN (initial state)
- h0
initial human state distribution
- SPN_P
stochastic petri net, places
- theta
parameters
- times
sequence of sampling times
- num_reps
number of repetitions to run
- stepFun
a sampling function
- events
a
data.frame
of events (uses the same format as required in packagedeSolve
for consistency, seeevents
for more information)- batch
a
list
of batch migration events, created frombatch_migration
, may be set toNULL
if not used- Sout
an optional matrix to track event firings
- verbose
print a progress bar?
- cube
inheritance cube