Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::CGDistribution Class Reference

List of all members.

Detailed Description

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

See also:
ContinuousChanceNode


Public Member Functions

double getAlpha (size_t config) const
 Return the alpha component of the CG distribution.

double getBeta (ContinuousChanceNode *parent, size_t config) const
 Return the beta component of the CG distribution.

double getGamma (size_t config) const
 Return the gamma component of the CG distribution.

ContinuousChanceNodegetNode () const
 Return the ContinuousChanceNode on which the CGDistribution is define.

void setAlpha (size_t config, double alpha)
 Set the alpha component of the CG distribution given a discrete configuration.

void setBeta (ContinuousChanceNode *parent, size_t config, double beta)
 Set the beta component of the CG distribution.

void setGamma (size_t config, double gamma)
 Set the gamma component of the CG distribution given a discrete configuration.


Member Function Documentation

double HAPI::CGDistribution::getAlpha size_t  config  )  const
 

Return the alpha component of the CG distribution.

Parameters:
config size_t - the index of the discrete configuration
Returns:
double

double HAPI::CGDistribution::getBeta ContinuousChanceNode parent,
size_t  config
const
 

Return the beta component of the CG distribution.

The distribution is given the discrete configuration and the continuous parent.

Parameters:
parent ContinuousChanceNode*
config size_t - the index of the discrete configuration
Returns:
double

double HAPI::CGDistribution::getGamma size_t  config  )  const
 

Return the gamma component of the CG distribution.

Parameters:
config size_t - the index of the discrete configuration
Returns:
double

ContinuousChanceNode* HAPI::CGDistribution::getNode  )  const
 

Return the ContinuousChanceNode on which the CGDistribution is define.

Returns:
ContinuousChanceNode*

void HAPI::CGDistribution::setAlpha size_t  config,
double  alpha
 

Set the alpha component of the CG distribution given a discrete configuration.

Parameters:
config size_t - the index of the discrete configuration
alpha double - the alpha value which is to be set
Returns:
double

void HAPI::CGDistribution::setBeta ContinuousChanceNode parent,
size_t  config,
double  beta
 

Set the beta component of the CG distribution.

The distribution is given a discrete configuration and the continuous parent.

Parameters:
parent The parent for which the beta value is set
config size_t - the index of the discrete configuration
beta The beta value
Returns:
double

void HAPI::CGDistribution::setGamma size_t  config,
double  gamma
 

Set the gamma component of the CG distribution given a discrete configuration.

Parameters:
config size_t - the index of the discrete configuration
gamma The gamma value
Returns:
double


Copyright Hugin Expert A/S 1993-2004