-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from statnet/ext
changed way extension package exposed stat registration
- Loading branch information
Showing
6 changed files
with
41 additions
and
39 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
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 |
---|---|---|
@@ -1,18 +1,10 @@ | ||
// [[Rcpp::depends(lolog)]] | ||
#include "MinDegree.h" | ||
#include "lolog.h" | ||
#include <lolog.h> | ||
|
||
|
||
/** | ||
* This function registers the new MinDegree statistic so that | ||
* it can be used in lolog formula. | ||
* | ||
* RcppExport means this function can be called from R using | ||
* .C("registerMinDegree") | ||
* see: .onLoad in zzz.R | ||
*/ | ||
RcppExport void registerMinDegree(){ | ||
using namespace lolog; | ||
Rcpp::XPtr< AbstractStat<Undirected> > ps1(new UndirectedMinDegree()); | ||
REGISTER_UNDIRECTED_STATISTIC(ps1); | ||
//[[Rcpp::export()]] | ||
void registerMinDegree(){ | ||
Rcpp::XPtr< lolog::AbstractStat<lolog::Undirected> > ps1(new lologext::UndirectedMinDegree()); | ||
REGISTER_UNDIRECTED_STATISTIC(ps1); | ||
} |
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
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