8 #include <boost/version.hpp>
9 #if BOOST_VERSION >= 103500
10 #include <boost/math/distributions/normal.hpp>
11 #endif // BOOST_VERSION >= 103500
28 : _generator (iSeed) {
33 : _generator (iRandomGeneration._generator) {
47 std::ostringstream oStr;
63 iMinValue + lVariateUnif01 * (iMaxValue - iMinValue);
71 #if BOOST_VERSION >= 103500
73 const boost::math::normal lNormal (mu, sigma);
75 boost::math::quantile (lNormal, lVariateUnif);
76 #else // BOOST_VERSION >= 103500
78 const RealNumber_T lRealNumberOfRequestsToBeGenerated = 0.0;
79 #endif // BOOST_VERSION >= 103500
81 return lRealNumberOfRequestsToBeGenerated;
95 lExponentialDistribution);
99 lExponentialDistributionGenerator();
101 return lExponentialVariateInDays;
RealNumber_T generateUniform01()
boost::exponential_distribution ExponentialDistribution_T
const std::string describe() const
Handle on the StdAir library context.
boost::variate_generator< BaseGenerator_T &, UniformDistribution_T > UniformGenerator_T
RealNumber_T generateNormal(const RealNumber_T &, const RealNumber_T &)
RealNumber_T generateExponential(const RealNumber_T &)
void init(const RandomSeed_T &)
boost::variate_generator< BaseGenerator_T &, ExponentialDistribution_T > ExponentialGenerator_T
unsigned long int RandomSeed_T
RealNumber_T generateUniform(const RealNumber_T &, const RealNumber_T &)
Class holding a random generator.
BaseGenerator_T _generator