Go to the documentation of this file.
37 Rcpp::CharacterVector _parnames);
41 Rcpp::CharacterVector _parnames,
42 Rcpp::CharacterVector _initnames);
48 unsigned int nrow()
const {
return Data.nrow();}
49 unsigned int ncol()
const {
return Data.ncol();}
50 unsigned int nid()
const {
return Uid.size();}
66 unsigned int& obscount,
unsigned int& evcount,
bool obsonly,
69 unsigned int& evcount,
bool obsonly,
bool debug);
76 Rcpp::IntegerVector
get_col_n(
const Rcpp::CharacterVector& what);
78 Rcpp::NumericMatrix& ans,
80 const Rcpp::IntegerVector& data_carry,
81 const unsigned int data_carry_start,
82 const Rcpp::IntegerVector& idata_carry,
83 const unsigned int idata_carry_start);
84 std::vector<unsigned int>
col;
87 std::deque<double>
Uid;
Rcpp::CharacterVector parnames
names of model parameters
Definition: dataobject.h:95
void get_records(recstack &a, int NID, int neq, unsigned int &obscount, unsigned int &evcount, bool obsonly, bool debug)
Definition: dataobject.cpp:297
Definition: dataobject.h:32
std::vector< reclist > recstack
vector of reclist vectors comprising a data set
Definition: odeproblem.h:44
int next_copy_row
tracking current actual data row
Definition: dataobject.h:103
unsigned int nid() const
Definition: dataobject.h:50
~dataobject()
Definition: dataobject.cpp:97
uidtype return_uid()
Definition: dataobject.h:56
int start(int i) const
Definition: dataobject.h:52
unsigned int ncol() const
Definition: dataobject.h:49
double get_uid(int i) const
Definition: dataobject.h:55
std::deque< int > Endrow
data set end row for each ID
Definition: dataobject.h:89
std::vector< int > cmt_to
index for compartments in init list
Definition: dataobject.h:98
int last_copy_row
tracking previous actual data row
Definition: dataobject.h:104
std::deque< int > Startrow
start row for each ID
Definition: dataobject.h:88
int Idcol
which column holds ID
Definition: dataobject.h:90
std::deque< double > Uid
unique IDs in the data set
Definition: dataobject.h:87
std::vector< int > par_to
index for parameters in param list
Definition: dataobject.h:94
void next_id(int id_n)
Definition: dataobject.cpp:194
int end(int i) const
Definition: dataobject.h:53
void copy_parameters(int this_row, odeproblem *prob)
Definition: dataobject.cpp:187
void get_records_pred(recstack &a, int NID, int neq, unsigned int &obscount, unsigned int &evcount, bool obsonly, bool debug)
Definition: dataobject.cpp:234
void copy_next_parameters(int id_n, bool from_data, int this_row, odeproblem *prob)
Definition: dataobject.cpp:200
void reload_parameters(const Rcpp::NumericVector ¶m, odeproblem *prob)
Definition: dataobject.cpp:226
std::vector< int > cmt_from
index for compartments in data set
Definition: dataobject.h:97
Rcpp::NumericMatrix Data
Definition: dataobject.h:44
void carry_out(const recstack &a, Rcpp::NumericMatrix &ans, dataobject &idat, const Rcpp::IntegerVector &data_carry, const unsigned int data_carry_start, const Rcpp::IntegerVector &idata_carry, const unsigned int idata_carry_start)
Definition: dataobject.cpp:497
unsigned int idcol() const
Definition: dataobject.h:51
bool any_copy
are there any parameter columns for copy / update?
Definition: dataobject.h:101
Rcpp::CharacterVector Data_names
Definition: dataobject.h:85
void check_idcol(dataobject &data)
Definition: dataobject.cpp:480
std::map< double, int > idmap
map to get
Definition: dataobject.h:91
void map_uid()
Definition: dataobject.cpp:99
void idata_row()
Definition: dataobject.cpp:179
void copy_inits(int this_row, odeproblem *prob)
Definition: dataobject.cpp:218
unsigned int nrow() const
Definition: dataobject.h:48
Rcpp::CharacterVector cmtnames
names of model compartments
Definition: dataobject.h:99
std::vector< int > par_from
index for parameters in data set
Definition: dataobject.h:93
double get_id_value(const int row) const
Definition: dataobject.h:75
void locate_tran()
Definition: dataobject.cpp:119
dataobject(Rcpp::NumericMatrix _data, Rcpp::CharacterVector _parnames)
constructor
Definition: dataobject.cpp:39
Rcpp::IntegerVector get_col_n(const Rcpp::CharacterVector &what)
Definition: dataobject.cpp:113
std::vector< unsigned int > col
Definition: dataobject.h:84
unsigned int get_idata_row(const double ID)
Definition: dataobject.cpp:475
bool done_copying
have we reached the last data record for this ID?
Definition: dataobject.h:102
Definition: odeproblem.h:94
std::deque< double > uidtype
Definition: dataobject.h:30
double get_value(const int row, const int col) const
Definition: dataobject.h:74