-
Notifications
You must be signed in to change notification settings - Fork 22
Description
When using the pakcage CIDR, I don't know why the functions cpp_dist and cpp_dist_weighted defined in RcppExports.cpp can work. There is only the statement of cpp_dist and cpp_dist_weighted, how the parameters in cpp_dist and cpp_dist_weighted, like dist, truth, counts, ncol et al dalculated.
The definitions of dist_cpp and dist_cpp_weighted function as following,
// cpp_dist
| NumericMatrix cpp_dist(NumericMatrix dist, IntegerMatrix truth, NumericMatrix counts, int ncol, double threshold);
| RcppExport SEXP _cidr_cpp_dist(SEXP distSEXP, SEXP truthSEXP, SEXP countsSEXP, SEXP ncolSEXP, SEXP thresholdSEXP) {
| BEGIN_RCPP
| Rcpp::RObject rcpp_result_gen;
| Rcpp::RNGScope rcpp_rngScope_gen;
| Rcpp::traits::input_parameter< NumericMatrix >::type dist(distSEXP);
| Rcpp::traits::input_parameter< IntegerMatrix >::type truth(truthSEXP);
| Rcpp::traits::input_parameter< NumericMatrix >::type counts(countsSEXP);
| Rcpp::traits::input_parameter< int >::type ncol(ncolSEXP);
| Rcpp::traits::input_parameter< double >::type threshold(thresholdSEXP);
| rcpp_result_gen = Rcpp::wrap(cpp_dist(dist, truth, counts, ncol, threshold));
| return rcpp_result_gen;
| END_RCPP
| }
| // cpp_dist_weighted
| NumericMatrix cpp_dist_weighted(NumericMatrix dist, IntegerMatrix truth, NumericMatrix counts, int ncol, double a, double b);
| RcppExport SEXP _cidr_cpp_dist_weighted(SEXP distSEXP, SEXP truthSEXP, SEXP countsSEXP, SEXP ncolSEXP, SEXP aSEXP, SEXP bSEXP) {
| BEGIN_RCPP
| Rcpp::RObject rcpp_result_gen;
| Rcpp::RNGScope rcpp_rngScope_gen;
| Rcpp::traits::input_parameter< NumericMatrix >::type dist(distSEXP);
| Rcpp::traits::input_parameter< IntegerMatrix >::type truth(truthSEXP);
| Rcpp::traits::input_parameter< NumericMatrix >::type counts(countsSEXP);
| Rcpp::traits::input_parameter< int >::type ncol(ncolSEXP);
| Rcpp::traits::input_parameter< double >::type a(aSEXP);
| Rcpp::traits::input_parameter< double >::type b(bSEXP);
| rcpp_result_gen = Rcpp::wrap(cpp_dist_weighted(dist, truth, counts, ncol, a, b));
| return rcpp_result_gen;
| END_RCPP
| }