mrgsolve
|
#include <cmath>
#include <vector>
#include "RcppInclude.h"
#include "odeproblem.h"
#include "mrgsolve.h"
Functions | |
void | dosimeta (void *prob_) |
void | dosimeps (void *prob_) |
void | main_derivs (double t, double *y, double *ydot, odeproblem *data) |
double | PolyExp (const double &x, const double &dose, const double &rate, const double &xinf, const double &tau, const bool ss, const dvec &a, const dvec &alpha, const int n) |
Rcpp::List | TOUCH_FUNS (const Rcpp::NumericVector &lparam, const Rcpp::NumericVector &linit, int Neta, int Neps, const Rcpp::CharacterVector &capture, const Rcpp::List &funs, Rcpp::Environment envir) |
void dosimeps | ( | void * | prob_ | ) |
void dosimeta | ( | void * | prob_ | ) |
void main_derivs | ( | double | t, |
double * | y, | ||
double * | ydot, | ||
odeproblem * | data | ||
) |
Derivative function that gets called by the solver.
neq | number of equations |
t | solver time |
y | current state |
ydot | left hand side of differential equations |
prob | an odeproblem object |
double PolyExp | ( | const double & | x, |
const double & | dose, | ||
const double & | rate, | ||
const double & | xinf, | ||
const double & | tau, | ||
const bool | ss, | ||
const dvec & | a, | ||
const dvec & | alpha, | ||
const int | n | ||
) |
Calculate PK model polyexponentials.
Rcpp::List TOUCH_FUNS | ( | const Rcpp::NumericVector & | lparam, |
const Rcpp::NumericVector & | linit, | ||
int | Neta, | ||
int | Neps, | ||
const Rcpp::CharacterVector & | capture, | ||
const Rcpp::List & | funs, | ||
Rcpp::Environment | envir | ||
) |
Call the $MAIN
function from a model object.
lparam | model parameter value |
linit | model initial contition values |
Neta | number of rows in OMEGA |
Neps | number of rows in SIGMA |
capture | vector of capture names |
funs | a list of model function pointers |