1 #ifndef STAT_InverseNormalDistribution_H
2 #define STAT_InverseNormalDistribution_H
5 #include <boost/math/distributions/inverse_gaussian.hpp>
26 boost::math::inverse_gaussian_distribution<tReal> *mDistribution;
27 SP::STAT_NormalDistribution mNormal;
28 SP::STAT_UniformDistribution mUniform;
56 inline static SP::STAT_InverseNormalDistribution
New(
const tReal&
mean,
60 p->setProperties(mean,sd);
66 inline static SP::STAT_InverseNormalDistribution
New() {
void setProperties(const tReal &mean, const tReal &scale)
Definition: STAT_InverseNormalDistribution.cpp:25
virtual void copy(const STAT_Distribution &d)
copy the distribution
Definition: STAT_InverseNormalDistribution.h:78
virtual tReal standardDeviation() const
compute the standard deviation
Definition: STAT_InverseNormalDistribution.cpp:72
virtual tReal cdfc(const tReal &x) const
compute the cumulative distribution complement function at x point
Definition: STAT_InverseNormalDistribution.cpp:57
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 pdf(const tReal &x) const
compute the probability density function at x point
Definition: STAT_InverseNormalDistribution.cpp:46
This class is the class to describes Normal distribution.
Definition: STAT_NormalDistribution.h:17
virtual tReal mean() const =0
compute the mean
#define tBoolean
Definition: types.h:48
virtual tReal random() const
random return a random numbers in range
Definition: STAT_InverseNormalDistribution.cpp:77
virtual void computeSample(const int &n, CORE_RealArray &sample) const
compute a sample of size n
Definition: STAT_InverseNormalDistribution.cpp:85
virtual ~STAT_InverseNormalDistribution(void)
destroy an object.
Definition: STAT_InverseNormalDistribution.cpp:17
DEFINE_SPTR(STAT_NormalDistribution)
virtual tReal mean() const
compute the mean
Definition: STAT_InverseNormalDistribution.cpp:62
static SP::STAT_InverseNormalDistribution New(const tReal &mean, const tReal &sd)
create a InverseNormal distibution
Definition: STAT_InverseNormalDistribution.h:56
virtual SP::STAT_Distribution NewInstance() const
create a new instance of the distribution
Definition: STAT_InverseNormalDistribution.h:71
this class describes an array
Definition: CORE_Array.h:18
STAT_InverseNormalDistribution()
create an object
Definition: STAT_InverseNormalDistribution.cpp:6
This class is the class to describes general distribution.
Definition: STAT_Distribution.h:25
static SP::STAT_InverseNormalDistribution New()
create a InverseNormal distibution
Definition: STAT_InverseNormalDistribution.h:66
This class is the class to describes InverseNormal distribution.
Definition: STAT_InverseNormalDistribution.h:17
virtual tReal variance() const =0
compute the variance
virtual void range(tReal &xmin, tReal &xmax) const
compute the range of the distribution
Definition: STAT_InverseNormalDistribution.cpp:38
#define tReal
Definition: types.h:18
virtual tReal cdf(const tReal &x) const
compute the cumulative distribution function at x point
Definition: STAT_InverseNormalDistribution.cpp:51
virtual tReal variance() const
compute the variance
Definition: STAT_InverseNormalDistribution.cpp:67
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106