forked from EllaKaye/BradleyTerryScalable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRcppExports.cpp
59 lines (56 loc) · 2.16 KB
/
RcppExports.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppArmadillo.h>
#include <Rcpp.h>
using namespace Rcpp;
// BT_EM
List BT_EM(S4 W, double a, double b, int maxit, double epsilon);
RcppExport SEXP BradleyTerryScalable_BT_EM(SEXP WSEXP, SEXP aSEXP, SEXP bSEXP, SEXP maxitSEXP, SEXP epsilonSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< S4 >::type W(WSEXP);
Rcpp::traits::input_parameter< double >::type a(aSEXP);
Rcpp::traits::input_parameter< double >::type b(bSEXP);
Rcpp::traits::input_parameter< int >::type maxit(maxitSEXP);
Rcpp::traits::input_parameter< double >::type epsilon(epsilonSEXP);
rcpp_result_gen = Rcpp::wrap(BT_EM(W, a, b, maxit, epsilon));
return rcpp_result_gen;
END_RCPP
}
// btprob_vec
arma::mat btprob_vec(arma::vec pi);
RcppExport SEXP BradleyTerryScalable_btprob_vec(SEXP piSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< arma::vec >::type pi(piSEXP);
rcpp_result_gen = Rcpp::wrap(btprob_vec(pi));
return rcpp_result_gen;
END_RCPP
}
// btfitted_vec
arma::sp_mat btfitted_vec(arma::vec pi, arma::sp_mat N);
RcppExport SEXP BradleyTerryScalable_btfitted_vec(SEXP piSEXP, SEXP NSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< arma::vec >::type pi(piSEXP);
Rcpp::traits::input_parameter< arma::sp_mat >::type N(NSEXP);
rcpp_result_gen = Rcpp::wrap(btfitted_vec(pi, N));
return rcpp_result_gen;
END_RCPP
}
// ILSR
List ILSR(S4 W, int maxit, double epsilon);
RcppExport SEXP BradleyTerryScalable_ILSR(SEXP WSEXP, SEXP maxitSEXP, SEXP epsilonSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< S4 >::type W(WSEXP);
Rcpp::traits::input_parameter< int >::type maxit(maxitSEXP);
Rcpp::traits::input_parameter< double >::type epsilon(epsilonSEXP);
rcpp_result_gen = Rcpp::wrap(ILSR(W, maxit, epsilon));
return rcpp_result_gen;
END_RCPP
}