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

Function runit_rpois

inst/tinytest/cpp/rmath.cpp:531–537  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

529
530// [[Rcpp::export]]
531NumericVector runit_rpois(double a) {
532 NumericVector o(5);
533 for(int i = 0; i < o.size(); i++) {
534 o[i] = R::rpois(a);
535 }
536 return o;
537}
538
539// [[Rcpp::export]]
540NumericVector runit_rpois_sugar(double a) {

Callers

nothing calls this directly

Calls 2

rpoisFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected