1 #ifndef STAT_Distribution_H
2 #define STAT_Distribution_H
8 #include <boost/random/mersenne_twister.hpp>
67 virtual SP::STAT_Distribution
NewInstance()
const=0;
93 static void initSeed(
const long double& v);
155 const tReal& rho) =0;
virtual tReal random() const =0
compute the random
This class is the base class of all statistics package.
Definition: STAT_Object.h:13
virtual tReal computeGrowthRate()
return the growth rate of the distribution such that Esperance(E(exp(-z*X)))=0.5
Definition: STAT_Distribution.h:133
DEFINE_SPTR(STAT_Distribution)
virtual tReal pdf(const tReal &x) const =0
compute the probability density function at x point
virtual tReal mean() const =0
compute the mean
#define tBoolean
Definition: types.h:48
RNGType & getRNGenerator()
get the generator
Definition: STAT_Distribution.h:83
SP::STAT_Distribution NewCopyInstance() const
create a copy of the distribution
Definition: STAT_Distribution.h:71
static void initSeed()
init the seed
Definition: STAT_Distribution.cpp:22
virtual ~STAT_Distribution(void)
destroy an object.
Definition: STAT_Distribution.cpp:13
virtual tReal cdfc(const tReal &x) const =0
compute the cumulative distribution complement function at x point
this class describes an array
Definition: CORE_Array.h:18
virtual void copy(const STAT_Distribution &d)=0
copy the distribution
virtual tReal computeGrowthRate(const tReal &rho, const tReal &death)
return the growth rate of the distribution such that Esperance(E(exp(-z*X)))=0.5
Definition: STAT_Distribution.h:139
This class is the class to describes general distribution.
Definition: STAT_Distribution.h:25
virtual void computeSample(const int &n, CORE_RealArray &sample) const =0
compute a sample of size n
virtual tReal variance() const =0
compute the variance
boost::mt19937 RNGType
Definition: STAT_Distribution.h:23
virtual tReal standardDeviation() const =0
compute the standard deviation
virtual tReal adjustGrowthRate(const tReal &rho, const tReal &death)
adjuste the parameters of the distribution such that growth rate is rho
Definition: STAT_Distribution.h:145
STAT_Distribution(void)
create an object
Definition: STAT_Distribution.cpp:7
#define tReal
Definition: types.h:18
virtual tReal cdf(const tReal &x) const =0
compute the cumulative distribution function at x point
virtual SP::STAT_Distribution NewInstance() const =0
create a new instance of the distribution