-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
weighted k-means has now a Rcpp interface and we added an empty routi…
…ne registration file to silence R CMD check.
- Loading branch information
Showing
6 changed files
with
104 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Generated by using Rcpp::compileAttributes() -> do not edit by hand | ||
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 | ||
|
||
kmnsw <- function(a_R, c_R, wh_R, k, iter) { | ||
.Call('stream_kmnsw', PACKAGE = 'stream', a_R, c_R, wh_R, k, iter) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Generated by using Rcpp::compileAttributes() -> do not edit by hand | ||
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 | ||
|
||
#include <Rcpp.h> | ||
|
||
using namespace Rcpp; | ||
|
||
// kmnsw | ||
Rcpp::List kmnsw(Rcpp::NumericMatrix a_R, Rcpp::NumericMatrix c_R, Rcpp::NumericVector wh_R, int k, int iter); | ||
RcppExport SEXP stream_kmnsw(SEXP a_RSEXP, SEXP c_RSEXP, SEXP wh_RSEXP, SEXP kSEXP, SEXP iterSEXP) { | ||
BEGIN_RCPP | ||
Rcpp::RObject rcpp_result_gen; | ||
Rcpp::RNGScope rcpp_rngScope_gen; | ||
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type a_R(a_RSEXP); | ||
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type c_R(c_RSEXP); | ||
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type wh_R(wh_RSEXP); | ||
Rcpp::traits::input_parameter< int >::type k(kSEXP); | ||
Rcpp::traits::input_parameter< int >::type iter(iterSEXP); | ||
rcpp_result_gen = Rcpp::wrap(kmnsw(a_R, c_R, wh_R, k, iter)); | ||
return rcpp_result_gen; | ||
END_RCPP | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// RegisteringDynamic Symbols | ||
|
||
#include <R.h> | ||
#include <Rinternals.h> | ||
#include <R_ext/Rdynload.h> | ||
|
||
void R_init_markovchain(DllInfo* info) { | ||
R_registerRoutines(info, NULL, NULL, NULL, NULL); | ||
R_useDynamicSymbols(info, TRUE); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters