ALMaSS Rabbit ODdox  1.1
The rabbit model description following ODdox protocol
BoostRandomGenerators.h
Go to the documentation of this file.
1 
7 #ifndef BOOSTRANDOMGENERATORSH
8 
9 #define BOOSTRANDOMGENERATORSH
10 
11 #undef min
12 #undef max
13 
14 #ifndef __UNIX
15 #pragma warning( push, 3 ) // temp switch to level 3 warnings due to boost creating a pile or warnings at level 4.
16 #endif
17 
18 //** FOR BOOST RANDOM **//
19 #include <ctime> // std::time
20 #include <boost/random/uniform_int_distribution.hpp>
21 #include <boost/random/linear_congruential.hpp>
22 #include <boost/random/uniform_int.hpp>
23 #include <boost/random/uniform_real.hpp>
24 #include <boost/random/variate_generator.hpp>
25 #include <boost/random/lagged_fibonacci.hpp>
26 #include <boost/generator_iterator.hpp>
27 #include <boost/random/mersenne_twister.hpp>
28 #include <boost/random/normal_distribution.hpp>
29 
30 typedef boost::lagged_fibonacci19937 base_generator_type;
31 typedef boost::uniform_int<> distribution_type;
32 typedef boost::random::uniform_int_distribution<> distribution_type2;
33 typedef boost::random::uniform_real_distribution<double> distribution_type3;
34 
35 // Added to be able to draw from distributions.
36 typedef boost::random::mt19937 Mersenne_Twister;
37 typedef boost::random::normal_distribution<double> NormalDistDouble; // Normal Distribution
38 typedef boost::variate_generator<Mersenne_Twister, NormalDistDouble> Variate_gen; // Variate generator
39 
40 // Added to be able to draw from distributions.
41 //typedef boost::random::mt19937 g_twist; // Mersenne Twister
42 //typedef boost::random::normal_distribution<double> g_normal; // Normal Distribution
43 //typedef boost::variate_generator<g_twist, g_normal> g_variate_gen; // Variate generator
44 
45 // END BOOST
46 #ifndef __UNIX
47 #pragma warning( pop )
48 #endif
49 
50 #endif
51 
Mersenne_Twister
boost::random::mt19937 Mersenne_Twister
Definition: BoostRandomGenerators.h:36
distribution_type
boost::uniform_int distribution_type
Definition: BoostRandomGenerators.h:31
Variate_gen
boost::variate_generator< Mersenne_Twister, NormalDistDouble > Variate_gen
Definition: BoostRandomGenerators.h:38
NormalDistDouble
boost::random::normal_distribution< double > NormalDistDouble
Definition: BoostRandomGenerators.h:37
base_generator_type
boost::lagged_fibonacci19937 base_generator_type
Definition: BoostRandomGenerators.h:30
distribution_type2
boost::random::uniform_int_distribution distribution_type2
Definition: BoostRandomGenerators.h:32
distribution_type3
boost::random::uniform_real_distribution< double > distribution_type3
Definition: BoostRandomGenerators.h:33