|
mrgsolve
|
#include "RcppInclude.h"#include "mrgsolve.h"#include "dataobject.h"#include <vector>#include <string>#include "boost/tokenizer.hpp"Macros | |
| #define | EXPAND_OBSERVATIONS_FUNC |
Functions | |
| double | digits (const double &a, const double &b) |
| int | find_position (const Rcpp::CharacterVector &what, const Rcpp::CharacterVector &table) |
| void | negative_istate (int istate, int maxsteps, double rtol, double atol) |
| arma::mat | MVGAUSS (Rcpp::NumericMatrix &OMEGA_, int n) |
| arma::mat | MVGAUSS (arma::mat &OMEGA, int n) |
| void | dcorr (Rcpp::NumericMatrix &x) |
| Rcpp::NumericMatrix | SUPERMATRIX (const Rcpp::List &a, bool keep_names) |
| Rcpp::List | get_tokens (const Rcpp::CharacterVector &code) |
| void | from_to (const Rcpp::CharacterVector &a, const Rcpp::CharacterVector &b, std::vector< int > &ai, std::vector< int > &bi) |
| Rcpp::NumericMatrix | EXPAND_EVENTS (const Rcpp::IntegerVector &idcol_, const Rcpp::NumericMatrix &events, const Rcpp::NumericVector &id) |
| Rcpp::List | EXPAND_OBSERVATIONS (const Rcpp::NumericMatrix &data, const Rcpp::NumericVector ×, const Rcpp::IntegerVector &to_copy, const Rcpp::IntegerVector &next_pos) |
| #define EXPAND_OBSERVATIONS_FUNC |
| void dcorr | ( | Rcpp::NumericMatrix & | x | ) |
| double digits | ( | const double & | a, |
| const double & | b | ||
| ) |
Limit a number to a specific number of significant digits.
| a | the number to limit |
| b | the number of digits |
| Rcpp::NumericMatrix EXPAND_EVENTS | ( | const Rcpp::IntegerVector & | idcol_, |
| const Rcpp::NumericMatrix & | events, | ||
| const Rcpp::NumericVector & | id | ||
| ) |
| Rcpp::List EXPAND_OBSERVATIONS | ( | const Rcpp::NumericMatrix & | data, |
| const Rcpp::NumericVector & | times, | ||
| const Rcpp::IntegerVector & | to_copy, | ||
| const Rcpp::IntegerVector & | next_pos | ||
| ) |
| int find_position | ( | const Rcpp::CharacterVector & | what, |
| const Rcpp::CharacterVector & | table | ||
| ) |
Find the position of a string in a character vector.
| what | the string to look for |
| table | where to look for the string |
| void from_to | ( | const Rcpp::CharacterVector & | a, |
| const Rcpp::CharacterVector & | b, | ||
| std::vector< int > & | ai, | ||
| std::vector< int > & | bi | ||
| ) |
| Rcpp::List get_tokens | ( | const Rcpp::CharacterVector & | code | ) |
| arma::mat MVGAUSS | ( | arma::mat & | OMEGA, |
| int | n | ||
| ) |
| arma::mat MVGAUSS | ( | Rcpp::NumericMatrix & | OMEGA_, |
| int | n | ||
| ) |
Simulate from a multivariate normal distribution with mean 0.
| OMEGA_ | the covariance matrix |
| n | the number of variates to simulate |
| void negative_istate | ( | int | istate, |
| int | maxsteps, | ||
| double | rtol, | ||
| double | atol | ||
| ) |
| Rcpp::NumericMatrix SUPERMATRIX | ( | const Rcpp::List & | a, |
| bool | keep_names | ||
| ) |
1.8.16