GClasses
|
This is the Normal (a.k.a. Gaussian) distribution.
#include <GDistribution.h>
Public Member Functions | |
GNormalDistribution () | |
virtual | ~GNormalDistribution () |
virtual bool | isDiscrete () const |
Returns false. More... | |
virtual bool | isSupported (double x) const |
Returns true for all values. 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 (which is also the mean) More... | |
double | modeLikelihood () |
Returns the probability density (height) of the mode (mode=mean for a normal distribution) More... | |
void | multiply (GNormalDistribution *pOther) |
Multiplies this by another Normal distribution. More... | |
void | setMeanAndVariance (double newmean, double newvariance) |
Sets the mean and variance of this distribution. More... | |
virtual Type | type () const |
Returns the type of distribution. More... | |
double | variance () const |
Returns the variance. More... | |
Public Member Functions inherited from GClasses::GUnivariateDistribution | |
GUnivariateDistribution () | |
virtual | ~GUnivariateDistribution () |
Protected Member Functions | |
void | precompute () |
Protected Attributes | |
double | m_height |
double | m_mean |
double | m_variance |
Additional Inherited Members | |
Public Types inherited from GClasses::GUnivariateDistribution |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Returns false.
Implements GClasses::GUnivariateDistribution.
|
inlinevirtual |
Returns true for all values.
Implements GClasses::GUnivariateDistribution.
|
inlinevirtual |
See the comment for GUnivariateDistribution::likelihood.
Implements GClasses::GUnivariateDistribution.
|
inlinevirtual |
See the comment for GUnivariateDistribution::logLikelihood.
Implements GClasses::GUnivariateDistribution.
|
inline |
Returns the mean.
|
inlinevirtual |
Returns the mode (which is also the mean)
Implements GClasses::GUnivariateDistribution.
|
inline |
Returns the probability density (height) of the mode (mode=mean for a normal distribution)
|
inline |
Multiplies this by another Normal distribution.
|
protected |
|
inline |
Sets the mean and variance of this distribution.
|
inlinevirtual |
Returns the type of distribution.
Implements GClasses::GUnivariateDistribution.
|
inline |
Returns the variance.
|
protected |
|
protected |
|
protected |