MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / operator()

Method operator()

inst/include/Rcpp/stats/random/rgeom.h:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 GeomGenerator( double p ) : lambda( (1-p)/p ) {}
32
33 inline double operator()() const {
34 return ::Rf_rpois(exp_rand() * lambda);
35 }
36
37private:
38 double lambda ;

Callers

nothing calls this directly

Calls 1

exp_randFunction · 0.85

Tested by

no test coverage detected