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

Method GammaGenerator

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

Source from the content-addressed store, hash-verified

28class GammaGenerator : public Generator<double>{
29public:
30 GammaGenerator(double a_, double scale_) :
31 a(a_), scale(scale_) {}
32 inline double operator()() const { return ::Rf_rgamma(a, scale ) ;}
33private:
34 double a, scale ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected