Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RcppCore/Rcpp
/ operator()
Method
operator()
inst/include/Rcpp/stats/random/runif.h:50–54 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
UnifGenerator__0__1() {}
49
50
inline double operator()() const {
51
double u;
52
do {u = unif_rand();} while (u <= 0 || u >= 1);
53
return u;
54
}
55
};
56
57
} // stats
Callers
nothing calls this directly
Calls
1
unif_rand
Function · 0.85
Tested by
no test coverage detected