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

Method operator()

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

Source from the content-addressed store, hash-verified

49 location(location_) {}
50
51 inline double operator()() const {
52 double u = unif_rand() ;
53 return location + ::log(u / (1. - u));
54 }
55
56private:
57 double location ;

Callers

nothing calls this directly

Calls 2

unif_randFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected