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

Method WeibullGenerator

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

Source from the content-addressed store, hash-verified

29public:
30
31 WeibullGenerator( double shape_, double scale_ ) :
32 shape_inv( 1/shape_), scale(scale_) {}
33
34 inline double operator()() const {
35 return scale * ::R_pow(-::log(unif_rand()), shape_inv );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected