sim_trajectory_base_CSV_decoupled {MGDrivE2}R Documentation

Simulate Trajectory From one SPN Model

Description

This is an internal function to sim_trajectory_CSV. It does the actual sampling once all of the functions have been checked and setup.

Usage

sim_trajectory_base_CSV_decoupled(
  x0,
  h0,
  SPN_P,
  theta,
  times,
  stepFun,
  events0 = NULL,
  batch = NULL,
  Sout = NULL,
  verbose = TRUE,
  human_ode = "Imperial",
  cube = NULL,
  folders = folders
)

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

stepFun

a sampling function

events0

a data.frame of events (uses the same format as required in package deSolve for consistency, see events for more information)

batch

a list of batch migration events, created from batch_migration, may be set to NULL if not used

Sout

an optional matrix to track event firings

verbose

print a progress bar?

human_ode

ode function used for human states

cube

inheritance cube

folders

vector of folders to write output

Value

no return, prints .csv files into provided folders


[Package MGDrivE2 version 2.1.0 Index]