GClasses
GClasses::GUnivariateDistribution Class Referenceabstract

Detailed Description

This is the base class for univariate distributions.

#include <GDistribution.h>

Inheritance diagram for GClasses::GUnivariateDistribution:
GClasses::GDistribution GClasses::GBetaDistribution GClasses::GCategoricalDistribution GClasses::GGammaDistribution GClasses::GInverseGammaDistribution GClasses::GNormalDistribution GClasses::GPoissonDistribution GClasses::GSoftImpulseDistribution GClasses::GUniformDistribution

Public Types

Public Member Functions

 GUnivariateDistribution ()
 
virtual ~GUnivariateDistribution ()
 
virtual bool isDiscrete () const =0
 Returns true iff the space of supported values for this distribution is finite. More...
 
virtual bool isSupported (double x) const =0
 Returns true iff the specified value is supported in this distribution. More...
 
virtual double likelihood (double x)=0
 Returns the likelihood of the specified value. More...
 
virtual double logLikelihood (double x)=0
 Returns the log-likelihood of the specified value. More...
 
virtual double mode () const =0
 Returns the most likely value. More...
 
virtual Type type () const =0
 Returns the type of distribution. More...
 

Member Enumeration Documentation

Enumerator
categorical 
normal 
uniform 
poisson 
gamma 
inverseGamma 
beta 
softImpulse 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool GClasses::GUnivariateDistribution::isDiscrete ( ) const
pure virtual
virtual bool GClasses::GUnivariateDistribution::isSupported ( double  x) const
pure virtual
virtual double GClasses::GUnivariateDistribution::likelihood ( double  x)
pure virtual
virtual double GClasses::GUnivariateDistribution::logLikelihood ( double  x)
pure virtual