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

Method NormGenerator

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

Source from the content-addressed store, hash-verified

29public:
30
31 NormGenerator( double mean_ = 0.0 , double sd_ = 1.0 ) :
32 mean(mean_), sd(sd_) {}
33
34 inline double operator()() const {
35 return mean + sd * ::norm_rand() ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected