The Continuous chance node. More...
Public Member Functions | |
bool | caseIsSet (size_t index) const |
Test whether the value of this node in case index currently is set. | |
ContinuousChanceNode * | clone () const |
Clone this ContinuousChanceNode object. | |
ContinuousChanceNode (NetworkModel *nm) | |
Create a new ContinuousChanceNode in the given NetworkModel. | |
void | enterValue (double value) |
Specify that this continuous node has the value value. | |
double | getCaseValue (size_t index) const |
Retrieve the value of this node assoociated with case index. | |
Category | getCategory () const |
Return the node category. | |
CGDistribution * | getCGDistribution () |
Get the CG distribution associated with this node. | |
Table * | getDistribution () const |
Compute the distribution for this continuous node. | |
double | getEnteredValue () const |
Retrieve the entered value for this node. | |
Table * | getExperienceTable () |
Return the experience table. | |
Kind | getKind () const |
Return the node kind. | |
double | getMean () const |
Return the mean of the marginal distribution of this node. | |
double | getPropagatedValue () const |
Retrieve the finding value. | |
double | getSampledValue () const |
Returns the value of this ContinuousChanceNode for the configuration generated by the most recent call to Domain.simulate(). | |
double | getVariance () const |
Return the variance of the marginal distribution of this node. | |
bool | hasExperienceTable () const |
Check if the node has an experience table. | |
bool | isEvidenceEntered () const |
Return whether or not evidence is entered into this node. | |
bool | isEvidencePropagated () const |
Return whether or not evidence has been propagated from this node. | |
void | retractValue () |
Retract the entered value for this node. | |
void | reverseEdge (ContinuousChanceNode *neighbor) |
Reverse the edge between this node and the specified neighbor. | |
void | setCaseValue (size_t index, double value) |
Set the value associate with this node in case index to value. | |
void | unsetCase (size_t index) |
Specify that the value of this node for case index is unknown. |
The Continuous chance node.
This node represents continuous chance nodes with (conditional) Gaussian distributions. Continuous chance nodes are also sometimes called CG nodes (CG for conditional Gaussian).
bool HAPI::ContinuousChanceNode::caseIsSet | ( | size_t | index | ) | const |
Test whether the value of this node in case index currently is set.
index | Case index. |
ContinuousChanceNode* HAPI::ContinuousChanceNode::clone | ( | ) | const [virtual] |
Clone this ContinuousChanceNode object.
Implements HAPI::Node.
void HAPI::ContinuousChanceNode::enterValue | ( | double | value | ) |
Specify that this continuous node has the value value.
value | A real number as the finding value. |
double HAPI::ContinuousChanceNode::getCaseValue | ( | size_t | index | ) | const |
Retrieve the value of this node assoociated with case index.
index | Case index. |
Category HAPI::ContinuousChanceNode::getCategory | ( | ) | const [inline, virtual] |
CGDistribution* HAPI::ContinuousChanceNode::getCGDistribution | ( | ) |
Get the CG distribution associated with this node.
Table* HAPI::ContinuousChanceNode::getDistribution | ( | ) | const |
Compute the distribution for this continuous node.
The distribution for a CG node is in general a mixture of several Gaussian distributions. ContinuousChanceNode::getDistribution () really computes a joint distribution of this node and a set of discrete nodes. These discrete nodes are chosen such that the computed marginal is a strong marginal, but it is not necessarily minimal.
double HAPI::ContinuousChanceNode::getEnteredValue | ( | ) | const |
Retrieve the entered value for this node.
Kind HAPI::ContinuousChanceNode::getKind | ( | ) | const [inline, virtual] |
double HAPI::ContinuousChanceNode::getMean | ( | ) | const |
Return the mean of the marginal distribution of this node.
double HAPI::ContinuousChanceNode::getPropagatedValue | ( | ) | const |
Retrieve the finding value.
That is, retrieve the finding value incorporated within the current junction tree potentials for state of this node.
double HAPI::ContinuousChanceNode::getSampledValue | ( | ) | const |
Returns the value of this ContinuousChanceNode for the configuration generated by the most recent call to Domain.simulate().
double HAPI::ContinuousChanceNode::getVariance | ( | ) | const |
Return the variance of the marginal distribution of this node.
bool HAPI::ContinuousChanceNode::isEvidenceEntered | ( | ) | const |
Return whether or not evidence is entered into this node.
bool HAPI::ContinuousChanceNode::isEvidencePropagated | ( | ) | const |
Return whether or not evidence has been propagated from this node.