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

Method operator()

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

Source from the content-addressed store, hash-verified

32 min(min_), diff(max_ - min_) {}
33
34 inline double operator()() const {
35 double u;
36 do {u = unif_rand();} while (u <= 0 || u >= 1);
37 return min + diff * u;
38 }
39
40private:
41 double min;

Callers

nothing calls this directly

Calls 1

unif_randFunction · 0.85

Tested by

no test coverage detected