HAPI::CGDistribution Class Reference

A CGDistribution encapsulates all information regarding the distribution of a ContinuousChanceNode. More...

List of all members.

Public Member Functions

double getAlpha (size_t index) const
 Return the alpha component of the CG distribution.
double getBeta (ContinuousChanceNode *parent, size_t index) const
 Return the beta component of the CG distribution.
double getGamma (size_t index) const
 Return the gamma component of the CG distribution.
ContinuousChanceNodegetNode () const
 Return the ContinuousChanceNode on which this CGDistribution is defined.
void setAlpha (size_t index, double alpha)
 Set the alpha component of the CG distribution.
void setBeta (ContinuousChanceNode *parent, size_t index, double beta)
 Set the beta component of the CG distribution.
void setGamma (size_t index, double gamma)
 Set the gamma component of the CG distribution.

Detailed Description

A CGDistribution encapsulates all information regarding the distribution of a ContinuousChanceNode.

See also:
ContinuousChanceNode

Member Function Documentation

double HAPI::CGDistribution::getAlpha ( size_t  index  )  const

Return the alpha component of the CG distribution.

The alpha component of the CG distribution given the discrete parent configuration index is returned.

Parameters:
index the index of the discrete parent configuration
double HAPI::CGDistribution::getBeta ( ContinuousChanceNode parent,
size_t  index 
) const

Return the beta component of the CG distribution.

The beta component associated with the continuous parent parent in the CG distribution given the discrete parent configuration index is returned.

Parameters:
parent a continuous parent of the node associated with this CGDistribution
index the index of the discrete parent configuration
double HAPI::CGDistribution::getGamma ( size_t  index  )  const

Return the gamma component of the CG distribution.

The gamma component of the CG distribution given the discrete parent configuration index is returned.

Parameters:
index the index of the discrete parent configuration
ContinuousChanceNode* HAPI::CGDistribution::getNode (  )  const

Return the ContinuousChanceNode on which this CGDistribution is defined.

Returns:
ContinuousChanceNode*
void HAPI::CGDistribution::setAlpha ( size_t  index,
double  alpha 
)

Set the alpha component of the CG distribution.

The alpha component of the CG distribution given the discrete parent configuration index is set to alpha.

Parameters:
index the index of the discrete parent configuration
alpha the new alpha value
void HAPI::CGDistribution::setBeta ( ContinuousChanceNode parent,
size_t  index,
double  beta 
)

Set the beta component of the CG distribution.

The beta component associated with the continuous parent parent in the CG distribution given the discrete parent configuration index is set to beta.

Parameters:
parent a continuous parent of the node associated with this CGDistribution
index the index of the discrete parent configuration
beta the new beta value
void HAPI::CGDistribution::setGamma ( size_t  index,
double  gamma 
)

Set the gamma component of the CG distribution.

The gamma component of the CG distribution given the discrete parent configuration index is set to gamma.

Parameters:
index the index of the discrete parent configuration
gamma the new gamma value

Copyright Hugin Expert A/S 1993-2010