StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
stdair_maths_types.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_STDAIR_MATHS_TYPES_HPP
2 #define __STDAIR_STDAIR_MATHS_TYPES_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 #include <vector>
10 #include <map>
11 // Boost Random
12 #include <boost/random/linear_congruential.hpp>
13 #include <boost/random/uniform_real.hpp>
14 #include <boost/random/normal_distribution.hpp>
15 #include <boost/random/exponential_distribution.hpp>
16 #include <boost/random/variate_generator.hpp>
17 
18 namespace stdair {
19 
20  // //////// Type definitions /////////
24  typedef unsigned int ReplicationNumber_T;
25 
29  typedef unsigned long int ExponentialSeed_T;
30 
34  typedef unsigned long int UniformSeed_T;
35 
39  typedef unsigned long int RandomSeed_T;
40 
44  typedef boost::minstd_rand BaseGenerator_T;
45 
49  typedef boost::uniform_real<> UniformDistribution_T;
50 
54  typedef boost::variate_generator<BaseGenerator_T&,
55  UniformDistribution_T> UniformGenerator_T;
56 
60  typedef boost::normal_distribution<> NormalDistribution_T;
61 
65  typedef boost::variate_generator<BaseGenerator_T&,
66  NormalDistribution_T> NormalGenerator_T;
67 
69  typedef boost::exponential_distribution<> ExponentialDistribution_T;
70 
71 
73  typedef boost::variate_generator<BaseGenerator_T&,
74  ExponentialDistribution_T> ExponentialGenerator_T;
75 
79  typedef double MeanValue_T;
80 
84  typedef double StdDevValue_T;
85 
89  typedef std::pair<MeanValue_T, StdDevValue_T> MeanStdDevPair_T;
90 
94  typedef std::vector<MeanStdDevPair_T> MeanStdDevPairVector_T;
95 
99  typedef float Probability_T;
100 
101 }
102 #endif // __STDAIR_STDAIR_MATHS_TYPES_HPP
boost::uniform_real UniformDistribution_T
std::vector< MeanStdDevPair_T > MeanStdDevPairVector_T
boost::normal_distribution NormalDistribution_T
boost::exponential_distribution ExponentialDistribution_T
Handle on the StdAir library context.
boost::variate_generator< BaseGenerator_T &, NormalDistribution_T > NormalGenerator_T
boost::variate_generator< BaseGenerator_T &, UniformDistribution_T > UniformGenerator_T
unsigned int ReplicationNumber_T
unsigned long int UniformSeed_T
double StdDevValue_T
double MeanValue_T
boost::minstd_rand BaseGenerator_T
boost::variate_generator< BaseGenerator_T &, ExponentialDistribution_T > ExponentialGenerator_T
std::pair< MeanValue_T, StdDevValue_T > MeanStdDevPair_T
unsigned long int RandomSeed_T
unsigned long int ExponentialSeed_T
float Probability_T