Skip to content

Commit

Permalink
rcpp new
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-da committed Jan 18, 2024
1 parent fa855ce commit d0b800a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions R/microaggregation.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
#' @export
#' @examples
#' data(testdata)
#' # dontrun since Examples with CPU time larger 2.5 times elapsed time, because
#' # of using data.table and multicore computation.
#' \dontrun{
#' m <- microaggregation(
#' obj = testdata[1:100, c("expend", "income", "savings")],
#' method = "mdav",
Expand Down Expand Up @@ -146,6 +149,7 @@
#' obj = sdc,
#' variables = "savings"
#' )
#' }
microaggregation <- function(obj, variables=NULL, aggr=3, strata_variables=NULL,
method="mdav", weights=NULL, nc=8, clustermethod="clara",
measure="mean", trim=0, varsort=1, transf="log") {
Expand Down
4 changes: 4 additions & 0 deletions man/microaggregation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ END_RCPP

RcppExport SEXP LocalRecProg_cpp(void *, void *, void *, void *, void *, void *, void *, void *, void *);
RcppExport SEXP Mdav(void *, void *, void *, void *, void *);
RcppExport SEXP RankSwap(void *, void *, void *, void *, void *, void *, void *, void *, void *);
RcppExport SEXP Suda2(void *, void *, void *, void *, void *);
RcppExport SEXP measure_hierachical(void *);
RcppExport SEXP measure_risk_cpp(void *, void *, void *, void *, void *, void *);
RcppExport SEXP measure_threshold(void *, void *);
RcppExport SEXP RankSwap(void *, void *, void *, void *, void *, void *, void *, void *, void *);
RcppExport SEXP Suda2(void *, void *, void *, void *, void *);

static const R_CallMethodDef CallEntries[] = {
{"_sdcMicro_cpp_calcSuppInds", (DL_FUNC) &_sdcMicro_cpp_calcSuppInds, 3},
Expand All @@ -253,11 +253,11 @@ static const R_CallMethodDef CallEntries[] = {
{"_sdcMicro_test_comparator", (DL_FUNC) &_sdcMicro_test_comparator, 5},
{"LocalRecProg_cpp", (DL_FUNC) &LocalRecProg_cpp, 9},
{"Mdav", (DL_FUNC) &Mdav, 5},
{"RankSwap", (DL_FUNC) &RankSwap, 9},
{"Suda2", (DL_FUNC) &Suda2, 5},
{"measure_hierachical", (DL_FUNC) &measure_hierachical, 1},
{"measure_risk_cpp", (DL_FUNC) &measure_risk_cpp, 6},
{"measure_threshold", (DL_FUNC) &measure_threshold, 2},
{"RankSwap", (DL_FUNC) &RankSwap, 9},
{"Suda2", (DL_FUNC) &Suda2, 5},
{NULL, NULL, 0}
};

Expand Down

0 comments on commit d0b800a

Please sign in to comment.