1 #ifndef STAT_UniformDistribution_H
2 #define STAT_UniformDistribution_H
5 #include <boost/math/distributions/uniform.hpp>
6 #include <boost/random/uniform_01.hpp>
7 #include <boost/random/uniform_real.hpp>
8 #include <boost/random/uniform_int.hpp>
9 #include <boost/random/variate_generator.hpp>
27 boost::math::uniform_distribution<tReal> *mDistributionReal;
28 boost::math::uniform_distribution<int> *mDistributionInt;
30 boost::uniform_01<tReal> *mRandomDistribution01;
31 boost::uniform_real<tReal> *mRandomDistributionReal;
32 boost::uniform_int<int> *mRandomDistributionInt;
34 boost::random::variate_generator<
RNGType&,
35 boost::uniform_01<tReal> > *mGenerator01;
36 boost::random::variate_generator<RNGType&,
37 boost::uniform_real<tReal> > *mGeneratorReal;
38 boost::random::variate_generator<RNGType&,
39 boost::uniform_int<int> > *mGeneratorInt;
59 void freeAttributes();
70 inline static SP::STAT_UniformDistribution
New(
const tReal& lower,
const tReal& upper) {
71 SP::STAT_UniformDistribution p=
New();
72 p->setProperties(lower,upper);
77 inline static SP::STAT_UniformDistribution
New(
const int& lower,
const int& upper) {
78 SP::STAT_UniformDistribution p=
New();
79 p->setProperties(lower,upper);
84 inline static SP::STAT_UniformDistribution
New() {
virtual tReal computeGrowthRate()
return the growth rate of the distribution such that Esperance(E(exp(-z*X)))=0.5
Definition: STAT_Distribution.h:133
virtual tReal mean() const =0
compute the mean
#define tBoolean
Definition: types.h:48
this class describes an array
Definition: CORE_Array.h:18
This class is the class to describes general distribution.
Definition: STAT_Distribution.h:25
virtual tReal variance() const =0
compute the variance
boost::mt19937 RNGType
Definition: STAT_Distribution.h:23
#define tReal
Definition: types.h:18
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106