15 #include <RcppArmadillo.h> 24 using cx_dbl = std::complex<double>;
25 using cx_func = std::function<arma::cx_mat(arma::cx_vec theta)>;
27 arma::mat deriv(cx_func f,
30 arma::umat clusterid(
const arma::uvec &
id);
31 arma::mat groupsum(
const arma::mat &x,
32 const arma::uvec &cluster,
34 void fastpattern(
const arma::umat &y,
37 unsigned categories = 2);
38 arma::umat fastapprox(arma::vec &time,
39 const arma::vec &newtime,
44 double SupTest(
const arma::vec &D);
45 double L2Test(
const arma::vec &D,
47 double CramerVonMises(
const arma::vec &x,
50 extern arma::mat
const EmptyMat;
51 extern arma::vec
const EmptyVec;
53 extern const char* COL_RESET;
54 extern const char* COL_DEF;
55 extern const char* BLACK;
56 extern const char* RED;
57 extern const char* MAGENTA;
58 extern const char* YELLOW;
59 extern const char* GREEN;
60 extern const char* BLUE;
61 extern const char* CYAN;
62 extern const char* WHITE;
63 extern const char* GRAY;
64 extern const char* LRED;
65 extern const char* LGREEN;
66 extern const char* LYELLOW;
67 extern const char* LBLUE;
68 extern const char* LMAGENTA;
69 extern const char* LCYAN;
70 extern const char* LWHITE;