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

Method NBinomGenerator

inst/include/Rcpp/stats/random/rnbinom.h:31–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29public:
30
31 NBinomGenerator( double siz_, double prob_ ) :
32 siz(siz_), lambda( (1-prob_)/prob_ ) {}
33
34 inline double operator()() const {
35 return ::Rf_rpois( ::Rf_rgamma( siz, lambda ) ) ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected