GClasses
|
The Gamma distribution. More...
#include <GDistribution.h>
Public Member Functions | |
GGammaDistribution () | |
virtual | ~GGammaDistribution () |
virtual Type | type () const |
Returns the type of distribution. | |
virtual bool | isDiscrete () const |
Returns false. | |
virtual bool | isSupported (double x) const |
Returns true iff x is non-negative. | |
virtual double | mode () const |
Returns the mode. | |
virtual double | logLikelihood (double x) |
See the comment for GUnivariateDistribution::logLikelihood. | |
virtual double | likelihood (double x) |
See the comment for GUnivariateDistribution::likelihood. | |
void | setParams (double shape, double scale) |
Sets the parameters of this distribution. | |
double | mean () const |
Returns the mean. | |
Protected Attributes | |
double | m_shape |
double | m_scale |
The Gamma distribution.
GClasses::GGammaDistribution::GGammaDistribution | ( | ) | [inline] |
virtual GClasses::GGammaDistribution::~GGammaDistribution | ( | ) | [inline, virtual] |
virtual bool GClasses::GGammaDistribution::isDiscrete | ( | ) | const [inline, virtual] |
Returns false.
Implements GClasses::GUnivariateDistribution.
virtual bool GClasses::GGammaDistribution::isSupported | ( | double | x | ) | const [inline, virtual] |
Returns true iff x is non-negative.
Implements GClasses::GUnivariateDistribution.
virtual double GClasses::GGammaDistribution::likelihood | ( | double | x | ) | [virtual] |
See the comment for GUnivariateDistribution::likelihood.
Implements GClasses::GUnivariateDistribution.
virtual double GClasses::GGammaDistribution::logLikelihood | ( | double | x | ) | [virtual] |
See the comment for GUnivariateDistribution::logLikelihood.
Implements GClasses::GUnivariateDistribution.
double GClasses::GGammaDistribution::mean | ( | ) | const [inline] |
Returns the mean.
virtual double GClasses::GGammaDistribution::mode | ( | ) | const [inline, virtual] |
Returns the mode.
Implements GClasses::GUnivariateDistribution.
void GClasses::GGammaDistribution::setParams | ( | double | shape, |
double | scale | ||
) | [inline] |
Sets the parameters of this distribution.
virtual Type GClasses::GGammaDistribution::type | ( | ) | const [inline, virtual] |
Returns the type of distribution.
Implements GClasses::GUnivariateDistribution.
double GClasses::GGammaDistribution::m_scale [protected] |
double GClasses::GGammaDistribution::m_shape [protected] |