MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / runit_rnbinom

Function runit_rnbinom

inst/tinytest/cpp/rmath.cpp:498–504  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

496
497// [[Rcpp::export]]
498NumericVector runit_rnbinom(double a, double b) {
499 NumericVector o(5);
500 for(int i = 0; i < o.size(); i++) {
501 o[i] = R::rnbinom(a, b);
502 }
503 return o;
504}
505
506// [[Rcpp::export]]
507NumericVector runit_rnbinom_sugar(double a, double b) {

Callers

nothing calls this directly

Calls 2

rnbinomFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected