HAPI::ContinuousChanceNode Class Reference

The Continuous chance node. More...

Inheritance diagram for HAPI::ContinuousChanceNode:
HAPI::Node

List of all members.

Public Member Functions

bool caseIsSet (size_t index) const
 Test whether the value of this node in case index currently is set.
ContinuousChanceNodeclone () 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.
CGDistributiongetCGDistribution ()
 Get the CG distribution associated with this node.
TablegetDistribution () const
 Compute the distribution for this continuous node.
double getEnteredValue () const
 Retrieve the entered value for this node.
TablegetExperienceTable ()
 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.

Detailed Description

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).


Member Function Documentation

bool HAPI::ContinuousChanceNode::caseIsSet ( size_t  index  )  const

Test whether the value of this node in case index currently is set.

Parameters:
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.

Parameters:
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.

Parameters:
index Case index.
Category HAPI::ContinuousChanceNode::getCategory (  )  const [inline, virtual]

Return the node category.

Returns:
H_CATEGORY_CHANCE

Implements HAPI::Node.

CGDistribution* HAPI::ContinuousChanceNode::getCGDistribution (  ) 

Get the CG distribution associated with this node.

Returns:
CGDistribution*
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.

Returns:
Table* pointer to a Table holding a strong marginal of this node and a set of discrete nodes.
double HAPI::ContinuousChanceNode::getEnteredValue (  )  const

Retrieve the entered value for this node.

Returns:
A double-precision real number expressing the entered value.
Kind HAPI::ContinuousChanceNode::getKind (  )  const [inline, virtual]

Return the node kind.

Returns:
H_KIND_CONTINUOUS

Implements HAPI::Node.

double HAPI::ContinuousChanceNode::getMean (  )  const

Return the mean of the marginal distribution of this node.

Returns:
A double-precision real number expressing the mean.
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.

Returns:
A double-precision real number expressing the propagated value.
double HAPI::ContinuousChanceNode::getSampledValue (  )  const

Returns the value of this ContinuousChanceNode for the configuration generated by the most recent call to Domain.simulate().

Returns:
The value sampled for this node during the last invocation of simulate () on the Domain of this node.
See also:
Domain::simulate
double HAPI::ContinuousChanceNode::getVariance (  )  const

Return the variance of the marginal distribution of this node.

Returns:
A double-precision real number expressing the variance.
bool HAPI::ContinuousChanceNode::isEvidenceEntered (  )  const

Return whether or not evidence is entered into this node.

Returns:
Boolean.
bool HAPI::ContinuousChanceNode::isEvidencePropagated (  )  const

Return whether or not evidence has been propagated from this node.

Returns:
Boolean.

Copyright Hugin Expert A/S 1993-2010