76template <
class type>
void report(type a) {
77 std::cout <<
"from report " << a << std::endl;
79template <
class type1,
class type2>
void report(type1 a, type2 b) {
80 std::cout << a <<
" " << b << std::endl;
98 std::vector<double>
ETA;
99 std::vector<double>
EPS;
120 void mevent(
double time_,
int evid_);
122 double mtime(
double time_);
127typedef std::vector<double>
dvec;
130#define MRGSOLVE_INIT_SIGNATURE \
133 const dvec& _THETA_, \
140 mrgsolve::resim& simeta
141#define MRGSOLVE_INIT_SIGNATURE_N 10
144#define MRGSOLVE_TABLE_SIGNATURE \
149 const dvec& _ALAG_, \
153 const dvec& _pred_, \
155 mrgsolve::resim& simeta, \
156 mrgsolve::resim& simeps
157#define MRGSOLVE_TABLE_SIGNATURE_N 11
160#define MRGSOLVE_EVENT_SIGNATURE MRGSOLVE_TABLE_SIGNATURE
161#define MRGSOLVE_EVENT_SIGNATURE_N MRGSOLVE_TABLE_SIGNATURE_N
164#define MRGSOLVE_ODE_SIGNATURE \
165 const double* _ODETIME_, \
169 const dvec& _THETA_, \
171#define MRGSOLVE_ODE_SIGNATURE_N 6
174#define MRGSOLVE_CONFIG_SIGNATURE \
176 const dvec& _THETA_, \
179 bool& _check_modeled_infusions
180#define MRGSOLVE_CONFIG_SIGNATURE_N 5
member functions mevent and tad come in via housemodel; see inst/base/databox.cpp
Definition mrgsolv.h:96
double time
current simulation time
Definition mrgsolv.h:102
void * envir
model environment
Definition mrgsolv.h:115
bool CFONSTOP
carry forward on stop indicator
Definition mrgsolv.h:114
int idn
current ID number
Definition mrgsolv.h:109
int irown
current output row number for current id
Definition mrgsolv.h:112
int evid
event ID flag
Definition mrgsolv.h:103
void stop()
stops the problem when the next record is started
Definition mrgsolv.h:116
double tad()
calculates time after dose
Definition databox_cpp.h:44
double mtime(double time_)
creates evdata object for simple model event time
Definition databox_cpp.h:29
double amt
current dosing amount value
Definition mrgsolv.h:106
void stop_id()
stops solving for the current id, filling with NA
Definition mrgsolv.h:117
unsigned short int SYSTEMOFF
flag to stop advancing system for current ID
Definition mrgsolv.h:104
std::vector< double > SIGMA
vector of on-diagonal sigma elements
Definition mrgsolv.h:100
int nid
number of IDs in the data set
Definition mrgsolv.h:108
int inrow
number of output rows for current id
Definition mrgsolv.h:113
void stop_id_cf()
stops solving for the current id, filling last value
Definition mrgsolv.h:118
int nrow
number of rows in output data set
Definition mrgsolv.h:110
unsigned int newind
new individual flag
Definition mrgsolv.h:101
int rown
current output row number
Definition mrgsolv.h:111
double id
current ID
Definition mrgsolv.h:105
void mevent(double time_, int evid_)
constructor for evdata objects
Definition databox_cpp.h:22
void push(mrgsolve::evdata x)
Definition databox_cpp.h:51
std::vector< mrgsolve::evdata > mevector
a collection of model events to pass back
Definition mrgsolv.h:119
std::vector< double > ETA
vector of ETA values
Definition mrgsolv.h:98
std::vector< double > EPS
vector of EPS values
Definition mrgsolv.h:99
short int cmt
current compartment value
Definition mrgsolv.h:107
std::vector< double > dvec
vector of doubles
Definition mrgsolv.h:127
void(* refun)(void *)
Definition mrgsolv.h:28
void report(type a)
Definition mrgsolv.h:76
double rate
Definition mrgsolv.h:66
double amt
Definition mrgsolv.h:65
bool now
Definition mrgsolv.h:70
double time
Definition mrgsolv.h:62
int evid
Definition mrgsolv.h:63
int addl
Definition mrgsolv.h:69
double ii
Definition mrgsolv.h:67
bool check_unique
Definition mrgsolv.h:71
int ss
Definition mrgsolv.h:68
evdata(double a_, int b_)
Definition mrgsolv.h:52
int cmt
Definition mrgsolv.h:64
resim()
Definition mrgsolv.h:41
void operator()()
Definition mrgsolv.h:42
resim(refun x, void *y)
resim constructor
Definition mrgsolv.h:40
void * prob
object to pass to re-simulated function
Definition mrgsolv.h:48
refun fun
function to call to re-simulate
Definition mrgsolv.h:47