GClasses
|
This is the base class for univariate distributions.
#include <GDistribution.h>
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... | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Returns true iff the space of supported values for this distribution is finite.
Implemented in GClasses::GSoftImpulseDistribution, GClasses::GBetaDistribution, GClasses::GInverseGammaDistribution, GClasses::GGammaDistribution, GClasses::GPoissonDistribution, GClasses::GUniformDistribution, GClasses::GNormalDistribution, and GClasses::GCategoricalDistribution.
|
pure virtual |
Returns true iff the specified value is supported in this distribution.
Implemented in GClasses::GSoftImpulseDistribution, GClasses::GBetaDistribution, GClasses::GInverseGammaDistribution, GClasses::GGammaDistribution, GClasses::GPoissonDistribution, GClasses::GUniformDistribution, GClasses::GNormalDistribution, and GClasses::GCategoricalDistribution.
|
pure virtual |
Returns the likelihood of the specified value.
Implemented in GClasses::GSoftImpulseDistribution, GClasses::GBetaDistribution, GClasses::GInverseGammaDistribution, GClasses::GGammaDistribution, GClasses::GPoissonDistribution, GClasses::GUniformDistribution, GClasses::GNormalDistribution, and GClasses::GCategoricalDistribution.
|
pure virtual |
Returns the log-likelihood of the specified value.
Implemented in GClasses::GSoftImpulseDistribution, GClasses::GBetaDistribution, GClasses::GInverseGammaDistribution, GClasses::GGammaDistribution, GClasses::GPoissonDistribution, GClasses::GUniformDistribution, GClasses::GNormalDistribution, and GClasses::GCategoricalDistribution.
|
pure virtual |
Returns the most likely value.
Implemented in GClasses::GSoftImpulseDistribution, GClasses::GBetaDistribution, GClasses::GInverseGammaDistribution, GClasses::GGammaDistribution, GClasses::GPoissonDistribution, GClasses::GUniformDistribution, GClasses::GNormalDistribution, and GClasses::GCategoricalDistribution.
|
pure virtual |
Returns the type of distribution.
Implemented in GClasses::GSoftImpulseDistribution, GClasses::GBetaDistribution, GClasses::GInverseGammaDistribution, GClasses::GGammaDistribution, GClasses::GPoissonDistribution, GClasses::GUniformDistribution, GClasses::GNormalDistribution, and GClasses::GCategoricalDistribution.