1 #ifndef STAT_DiracDistribution_H
2 #define STAT_DiracDistribution_H
52 inline static SP::STAT_DiracDistribution
New(
const tReal& location) {
55 p->setProperties(location);
61 inline static SP::STAT_DiracDistribution
New() {
virtual void copy(const STAT_Distribution &d)
copy the distribution
Definition: STAT_DiracDistribution.h:73
static SP::STAT_DiracDistribution New()
create a Dirac distibution
Definition: STAT_DiracDistribution.h:61
STAT_DiracDistribution()
create an object
Definition: STAT_DiracDistribution.cpp:6
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_DiracDistribution)
virtual void range(tReal &xmin, tReal &xmax) const
compute the range of the distribution
Definition: STAT_DiracDistribution.cpp:19
virtual tReal variance() const
compute the variance
Definition: STAT_DiracDistribution.cpp:44
This class is the class to describes Dirac distribution.
Definition: STAT_DiracDistribution.h:14
virtual tReal cdf(const tReal &x) const
compute the cumulative distribution function at x point
Definition: STAT_DiracDistribution.cpp:29
virtual tReal mean() const =0
compute the mean
#define tBoolean
Definition: types.h:48
virtual tReal cdfc(const tReal &x) const
compute the cumulative distribution complement function at x point
Definition: STAT_DiracDistribution.cpp:36
virtual tReal quantile(const tReal &q) const
quantile
Definition: STAT_DiracDistribution.cpp:52
virtual ~STAT_DiracDistribution(void)
destroy an object.
Definition: STAT_DiracDistribution.cpp:12
virtual tReal standardDeviation() const
compute the standard deviation
Definition: STAT_DiracDistribution.cpp:48
virtual void computeSample(const int &n, CORE_RealArray &sample) const
compute a sample of size n
Definition: STAT_DiracDistribution.cpp:60
this class describes an array
Definition: CORE_Array.h:18
virtual tReal random() const
random return a random numbers in range
Definition: STAT_DiracDistribution.cpp:55
virtual SP::STAT_Distribution NewInstance() const
create a new instance of the distribution
Definition: STAT_DiracDistribution.h:66
This class is the class to describes general distribution.
Definition: STAT_Distribution.h:25
virtual tReal mean() const
compute the mean
Definition: STAT_DiracDistribution.cpp:40
static SP::STAT_DiracDistribution New(const tReal &location)
create a Dirac distibution
Definition: STAT_DiracDistribution.h:52
virtual tReal pdf(const tReal &x) const
compute the probability density function at x point
Definition: STAT_DiracDistribution.cpp:24
void setProperties(const tReal &location)
Definition: STAT_DiracDistribution.cpp:16
#define tReal
Definition: types.h:18
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106