@@ -124,29 +124,31 @@ BEGIN_RCPP
124124END_RCPP
125125}
126126// movmean2
127- NumericVector movmean2 (const arma::rowvec& y, int win_left, int win_right, Nullable<NumericVector> w);
128- RcppExport SEXP _rtrend_movmean2 (SEXP ySEXP, SEXP win_leftSEXP, SEXP win_rightSEXP, SEXP wSEXP) {
127+ NumericVector movmean2 (const arma::rowvec& y, int win_left, int win_right, Nullable<NumericVector> w, bool include_self );
128+ RcppExport SEXP _rtrend_movmean2 (SEXP ySEXP, SEXP win_leftSEXP, SEXP win_rightSEXP, SEXP wSEXP, SEXP include_selfSEXP ) {
129129BEGIN_RCPP
130130 Rcpp::RObject rcpp_result_gen;
131131 Rcpp::RNGScope rcpp_rngScope_gen;
132132 Rcpp::traits::input_parameter< const arma::rowvec& >::type y (ySEXP);
133133 Rcpp::traits::input_parameter< int >::type win_left (win_leftSEXP);
134134 Rcpp::traits::input_parameter< int >::type win_right (win_rightSEXP);
135135 Rcpp::traits::input_parameter< Nullable<NumericVector> >::type w (wSEXP);
136- rcpp_result_gen = Rcpp::wrap (movmean2 (y, win_left, win_right, w));
136+ Rcpp::traits::input_parameter< bool >::type include_self (include_selfSEXP);
137+ rcpp_result_gen = Rcpp::wrap (movmean2 (y, win_left, win_right, w, include_self));
137138 return rcpp_result_gen;
138139END_RCPP
139140}
140141// movmean_2d
141- arma::mat movmean_2d (arma::mat& mat, int win_left, int win_right);
142- RcppExport SEXP _rtrend_movmean_2d (SEXP matSEXP, SEXP win_leftSEXP, SEXP win_rightSEXP) {
142+ arma::mat movmean_2d (arma::mat& mat, int win_left, int win_right, bool include_self );
143+ RcppExport SEXP _rtrend_movmean_2d (SEXP matSEXP, SEXP win_leftSEXP, SEXP win_rightSEXP, SEXP include_selfSEXP ) {
143144BEGIN_RCPP
144145 Rcpp::RObject rcpp_result_gen;
145146 Rcpp::RNGScope rcpp_rngScope_gen;
146147 Rcpp::traits::input_parameter< arma::mat& >::type mat (matSEXP);
147148 Rcpp::traits::input_parameter< int >::type win_left (win_leftSEXP);
148149 Rcpp::traits::input_parameter< int >::type win_right (win_rightSEXP);
149- rcpp_result_gen = Rcpp::wrap (movmean_2d (mat, win_left, win_right));
150+ Rcpp::traits::input_parameter< bool >::type include_self (include_selfSEXP);
151+ rcpp_result_gen = Rcpp::wrap (movmean_2d (mat, win_left, win_right, include_self));
150152 return rcpp_result_gen;
151153END_RCPP
152154}
@@ -161,8 +163,8 @@ static const R_CallMethodDef CallEntries[] = {
161163 {" _rtrend_smooth_wSG" , (DL_FUNC) &_rtrend_smooth_wSG, 4 },
162164 {" _rtrend_smooth_SG" , (DL_FUNC) &_rtrend_smooth_SG, 3 },
163165 {" _rtrend_movmean" , (DL_FUNC) &_rtrend_movmean, 4 },
164- {" _rtrend_movmean2" , (DL_FUNC) &_rtrend_movmean2, 4 },
165- {" _rtrend_movmean_2d" , (DL_FUNC) &_rtrend_movmean_2d, 3 },
166+ {" _rtrend_movmean2" , (DL_FUNC) &_rtrend_movmean2, 5 },
167+ {" _rtrend_movmean_2d" , (DL_FUNC) &_rtrend_movmean_2d, 4 },
166168 {NULL , NULL , 0 }
167169};
168170
0 commit comments