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

Function runit_rbinom

inst/tinytest/cpp/rmath.cpp:333–339  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

331
332// [[Rcpp::export]]
333NumericVector runit_rbinom(double a, double b) {
334 NumericVector o(5);
335 for(int i = 0; i < o.size(); i++) {
336 o[i] = R::rbinom(a, b);
337 }
338 return o;
339}
340
341// [[Rcpp::export]]
342NumericVector runit_rbinom_sugar(double a, double b) {

Callers

nothing calls this directly

Calls 2

rbinomFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected