MCPcopy Create free account
hub / github.com/Fields2Cover/Fields2Cover / getRandomExpDist

Method getRandomExpDist

src/fields2cover/utils/random.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34double Random::getRandomExpDist(double lambda) {
35 std::exponential_distribution<double> distribution(lambda);
36 return distribution(mt_);
37}
38
39double Random::getAngleRandom() {
40 return getRandomLinear(0.0, boost::math::constants::two_pi<double>());

Callers 2

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64