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

Function runit_pnbinom

inst/tinytest/cpp/rmath.cpp:486–489  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

484
485// [[Rcpp::export]]
486NumericVector runit_pnbinom( double x, double a, double b ){
487 return NumericVector::create(R::pnbinom(x, a, b, 1, 0), R::pnbinom(log(x), a, b, 1, 1),
488 R::pnbinom(x, a, b, 0, 0), R::pnbinom(log(x), a, b, 0, 1));
489}
490
491// [[Rcpp::export]]
492NumericVector runit_qnbinom( double x, double a, double b ){

Callers

nothing calls this directly

Calls 2

pnbinomFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected