|
| 1 | +// Generated by using Rcpp::compileAttributes() -> do not edit by hand |
| 2 | +// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
| 3 | + |
| 4 | +#include <Rcpp.h> |
| 5 | + |
| 6 | +using namespace Rcpp; |
| 7 | + |
| 8 | +#ifdef RCPP_USE_GLOBAL_ROSTREAM |
| 9 | +Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); |
| 10 | +Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
| 11 | +#endif |
| 12 | + |
| 13 | +// process_district_all_vars_n_orders |
| 14 | +List process_district_all_vars_n_orders(List variable_values, List neighbors, List weights, IntegerVector hex_indices, CharacterVector var_names); |
| 15 | +RcppExport SEXP _hexsmoothR_process_district_all_vars_n_orders(SEXP variable_valuesSEXP, SEXP neighborsSEXP, SEXP weightsSEXP, SEXP hex_indicesSEXP, SEXP var_namesSEXP) { |
| 16 | +BEGIN_RCPP |
| 17 | + Rcpp::RObject rcpp_result_gen; |
| 18 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 19 | + Rcpp::traits::input_parameter< List >::type variable_values(variable_valuesSEXP); |
| 20 | + Rcpp::traits::input_parameter< List >::type neighbors(neighborsSEXP); |
| 21 | + Rcpp::traits::input_parameter< List >::type weights(weightsSEXP); |
| 22 | + Rcpp::traits::input_parameter< IntegerVector >::type hex_indices(hex_indicesSEXP); |
| 23 | + Rcpp::traits::input_parameter< CharacterVector >::type var_names(var_namesSEXP); |
| 24 | + rcpp_result_gen = Rcpp::wrap(process_district_all_vars_n_orders(variable_values, neighbors, weights, hex_indices, var_names)); |
| 25 | + return rcpp_result_gen; |
| 26 | +END_RCPP |
| 27 | +} |
| 28 | +// process_district_all_vars |
| 29 | +List process_district_all_vars(List variable_values, List first_neighbors, List second_neighbors, NumericVector weights, IntegerVector hex_indices, CharacterVector var_names); |
| 30 | +RcppExport SEXP _hexsmoothR_process_district_all_vars(SEXP variable_valuesSEXP, SEXP first_neighborsSEXP, SEXP second_neighborsSEXP, SEXP weightsSEXP, SEXP hex_indicesSEXP, SEXP var_namesSEXP) { |
| 31 | +BEGIN_RCPP |
| 32 | + Rcpp::RObject rcpp_result_gen; |
| 33 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 34 | + Rcpp::traits::input_parameter< List >::type variable_values(variable_valuesSEXP); |
| 35 | + Rcpp::traits::input_parameter< List >::type first_neighbors(first_neighborsSEXP); |
| 36 | + Rcpp::traits::input_parameter< List >::type second_neighbors(second_neighborsSEXP); |
| 37 | + Rcpp::traits::input_parameter< NumericVector >::type weights(weightsSEXP); |
| 38 | + Rcpp::traits::input_parameter< IntegerVector >::type hex_indices(hex_indicesSEXP); |
| 39 | + Rcpp::traits::input_parameter< CharacterVector >::type var_names(var_namesSEXP); |
| 40 | + rcpp_result_gen = Rcpp::wrap(process_district_all_vars(variable_values, first_neighbors, second_neighbors, weights, hex_indices, var_names)); |
| 41 | + return rcpp_result_gen; |
| 42 | +END_RCPP |
| 43 | +} |
| 44 | +// simple_smoothing_single_var |
| 45 | +List simple_smoothing_single_var(NumericVector values, List first_neighbors, List second_neighbors, IntegerVector hex_indices); |
| 46 | +RcppExport SEXP _hexsmoothR_simple_smoothing_single_var(SEXP valuesSEXP, SEXP first_neighborsSEXP, SEXP second_neighborsSEXP, SEXP hex_indicesSEXP) { |
| 47 | +BEGIN_RCPP |
| 48 | + Rcpp::RObject rcpp_result_gen; |
| 49 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 50 | + Rcpp::traits::input_parameter< NumericVector >::type values(valuesSEXP); |
| 51 | + Rcpp::traits::input_parameter< List >::type first_neighbors(first_neighborsSEXP); |
| 52 | + Rcpp::traits::input_parameter< List >::type second_neighbors(second_neighborsSEXP); |
| 53 | + Rcpp::traits::input_parameter< IntegerVector >::type hex_indices(hex_indicesSEXP); |
| 54 | + rcpp_result_gen = Rcpp::wrap(simple_smoothing_single_var(values, first_neighbors, second_neighbors, hex_indices)); |
| 55 | + return rcpp_result_gen; |
| 56 | +END_RCPP |
| 57 | +} |
| 58 | +// gaussian_smoothing_single_var |
| 59 | +List gaussian_smoothing_single_var(NumericVector values, List first_neighbors, List second_neighbors, double center_weight, double first_order_weight, double second_order_weight, IntegerVector hex_indices); |
| 60 | +RcppExport SEXP _hexsmoothR_gaussian_smoothing_single_var(SEXP valuesSEXP, SEXP first_neighborsSEXP, SEXP second_neighborsSEXP, SEXP center_weightSEXP, SEXP first_order_weightSEXP, SEXP second_order_weightSEXP, SEXP hex_indicesSEXP) { |
| 61 | +BEGIN_RCPP |
| 62 | + Rcpp::RObject rcpp_result_gen; |
| 63 | + Rcpp::RNGScope rcpp_rngScope_gen; |
| 64 | + Rcpp::traits::input_parameter< NumericVector >::type values(valuesSEXP); |
| 65 | + Rcpp::traits::input_parameter< List >::type first_neighbors(first_neighborsSEXP); |
| 66 | + Rcpp::traits::input_parameter< List >::type second_neighbors(second_neighborsSEXP); |
| 67 | + Rcpp::traits::input_parameter< double >::type center_weight(center_weightSEXP); |
| 68 | + Rcpp::traits::input_parameter< double >::type first_order_weight(first_order_weightSEXP); |
| 69 | + Rcpp::traits::input_parameter< double >::type second_order_weight(second_order_weightSEXP); |
| 70 | + Rcpp::traits::input_parameter< IntegerVector >::type hex_indices(hex_indicesSEXP); |
| 71 | + rcpp_result_gen = Rcpp::wrap(gaussian_smoothing_single_var(values, first_neighbors, second_neighbors, center_weight, first_order_weight, second_order_weight, hex_indices)); |
| 72 | + return rcpp_result_gen; |
| 73 | +END_RCPP |
| 74 | +} |
| 75 | + |
| 76 | +static const R_CallMethodDef CallEntries[] = { |
| 77 | + {"_hexsmoothR_process_district_all_vars_n_orders", (DL_FUNC) &_hexsmoothR_process_district_all_vars_n_orders, 5}, |
| 78 | + {"_hexsmoothR_process_district_all_vars", (DL_FUNC) &_hexsmoothR_process_district_all_vars, 6}, |
| 79 | + {"_hexsmoothR_simple_smoothing_single_var", (DL_FUNC) &_hexsmoothR_simple_smoothing_single_var, 4}, |
| 80 | + {"_hexsmoothR_gaussian_smoothing_single_var", (DL_FUNC) &_hexsmoothR_gaussian_smoothing_single_var, 7}, |
| 81 | + {NULL, NULL, 0} |
| 82 | +}; |
| 83 | + |
| 84 | +RcppExport void R_init_hexsmoothR(DllInfo *dll) { |
| 85 | + R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); |
| 86 | + R_useDynamicSymbols(dll, FALSE); |
| 87 | +} |
0 commit comments