MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / operator()

Method operator()

inst/include/Rcpp/stats/random/rlogis.h:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 location(location_), scale(scale_) {}
33
34 inline double operator()() const {
35 double u = unif_rand() ;
36 return location + scale * ::log(u / (1. - u));
37 }
38
39private:
40 double location ;

Callers

nothing calls this directly

Calls 2

unif_randFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected