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

Method NChisqGenerator

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

Source from the content-addressed store, hash-verified

29public:
30
31 NChisqGenerator( double df_, double lambda_ ) :
32 df(df_), df_2(df_ / 2.0), lambda_2(lambda_ / 2.0 ) {}
33
34 inline double operator()() const {
35 double r = ::Rf_rpois( lambda_2 ) ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected