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

Function runit_qnbinom

inst/tinytest/cpp/rmath.cpp:492–495  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

490
491// [[Rcpp::export]]
492NumericVector runit_qnbinom( double x, double a, double b ){
493 return NumericVector::create(R::qnbinom(x, a, b, 1, 0), R::qnbinom(log(x), a, b, 1, 1),
494 R::qnbinom(x, a, b, 0, 0), R::qnbinom(log(x), a, b, 0, 1));
495}
496
497// [[Rcpp::export]]
498NumericVector runit_rnbinom(double a, double b) {

Callers

nothing calls this directly

Calls 2

qnbinomFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected