A CGDistribution encapsulates all information regarding the distribution of a ContinuousChanceNode. More...
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. | |
ContinuousChanceNode * | getNode () 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. |
A CGDistribution encapsulates all information regarding the distribution of a ContinuousChanceNode.
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.
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.
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.
index | the index of the discrete parent configuration |
ContinuousChanceNode* HAPI::CGDistribution::getNode | ( | ) | const |
Return the ContinuousChanceNode on which this CGDistribution is defined.
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
.
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
.
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
.
index | the index of the discrete parent configuration | |
gamma | the new gamma value |