GClasses
GClasses::GGammaDistribution Class Reference

Detailed Description

The Gamma distribution.

#include <GDistribution.h>

Inheritance diagram for GClasses::GGammaDistribution:
GClasses::GUnivariateDistribution GClasses::GDistribution

Public Member Functions

 GGammaDistribution ()
 
virtual ~GGammaDistribution ()
 
virtual bool isDiscrete () const
 Returns false. More...
 
virtual bool isSupported (double x) const
 Returns true iff x is non-negative. More...
 
virtual double likelihood (double x)
 See the comment for GUnivariateDistribution::likelihood. More...
 
virtual double logLikelihood (double x)
 See the comment for GUnivariateDistribution::logLikelihood. More...
 
double mean () const
 Returns the mean. More...
 
virtual double mode () const
 Returns the mode. More...
 
void setParams (double shape, double scale)
 Sets the parameters of this distribution. More...
 
virtual Type type () const
 Returns the type of distribution. More...
 
- Public Member Functions inherited from GClasses::GUnivariateDistribution
 GUnivariateDistribution ()
 
virtual ~GUnivariateDistribution ()
 

Protected Attributes

double m_scale
 
double m_shape
 

Additional Inherited Members

- Public Types inherited from GClasses::GUnivariateDistribution

Constructor & Destructor Documentation

GClasses::GGammaDistribution::GGammaDistribution ( )
inline
virtual GClasses::GGammaDistribution::~GGammaDistribution ( )
inlinevirtual

Member Function Documentation

virtual bool GClasses::GGammaDistribution::isDiscrete ( ) const
inlinevirtual

Returns false.

Implements GClasses::GUnivariateDistribution.

virtual bool GClasses::GGammaDistribution::isSupported ( double  x) const
inlinevirtual

Returns true iff x is non-negative.

Implements GClasses::GUnivariateDistribution.

virtual double GClasses::GGammaDistribution::likelihood ( double  x)
virtual
virtual double GClasses::GGammaDistribution::logLikelihood ( double  x)
virtual
double GClasses::GGammaDistribution::mean ( ) const
inline

Returns the mean.

virtual double GClasses::GGammaDistribution::mode ( ) const
inlinevirtual

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
inlinevirtual

Returns the type of distribution.

Implements GClasses::GUnivariateDistribution.

Member Data Documentation

double GClasses::GGammaDistribution::m_scale
protected
double GClasses::GGammaDistribution::m_shape
protected