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

Method LNormGenerator

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

Source from the content-addressed store, hash-verified

29public:
30
31 LNormGenerator( double meanlog_ = 0.0 , double sdlog_ = 1.0 ) :
32 meanlog(meanlog_), sdlog(sdlog_) {}
33
34 inline double operator()() const {
35 return ::exp( meanlog + sdlog * ::norm_rand() ) ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected