Inheritance diagram for HAPI::DiscreteChanceNode:
Public Member Functions | |
void | addParent (DiscreteChanceNode *parent) |
Add parent as a new parent of this node. | |
void | removeParent (DiscreteChanceNode *parent) |
Remove the directed link between parent and this node. | |
void | switchParent (DiscreteChanceNode *oldParent, DiscreteChanceNode *newParent) |
Substitute a new parent for an old parent. | |
void | addParent (DiscreteDecisionNode *parent) |
Add parent as a new parent of this node. | |
void | removeParent (DiscreteDecisionNode *parent) |
Remove the directed link between parent and this node. | |
void | switchParent (DiscreteDecisionNode *oldParent, DiscreteDecisionNode *newParent) |
Substitute a new parent for an old parent. | |
NodeList | getParents () const |
Return a NodeList with references to the parents of this node. | |
NodeList | getChildren () const |
Return a NodeList containing pointers to the children of this node. | |
void | reverseEdge (DiscreteChanceNode *neighbor) |
Reverse the edge between this node and the specified neighbor. | |
bool | caseIsSet (size_t index) const |
Test whether the value of this node in case index currently is set. | |
void | enterFinding (size_t state, Number value) |
This method specifies a finding value for the specified state and all other states are not effected. | |
Number | getBelief (size_t state) const |
The belief for the specified state in this node is returned. | |
size_t | getCaseState (size_t index) const |
Retrieve the state value of this node associated with the case index. | |
Category | getCategory () const |
Return the node category. | |
Kind | getKind () const |
Return the node kind. | |
Number | getEnteredFinding (size_t state) const |
Retrieve the finding currently registrered at this node for state. | |
Table * | getExperienceTable () |
Return the experience table. | |
Table * | getFadingTable () |
Return the fading table. | |
size_t | getNumberOfStates () const |
Return the number of states in this node. | |
Number | getPropagatedFinding (size_t state) const |
Retrieve the propagated finding. | |
size_t | getSelection () const |
Return the state index generated by the most recent call to Domain::simulate (). | |
std::string | getStateLabel (size_t state) const |
Return the label of state. | |
virtual Table * | getTable () |
Return the table associated with this node. | |
bool | hasExperienceTable () const |
Check whether node has experience table. | |
bool | hasFadingTable () const |
Check whether node has fading 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 | retractFindings () |
Retract all findings for this node. | |
void | selectState (size_t state) |
Select the specified state of this node. | |
void | setCaseState (size_t index, size_t state) |
Specify the case state of this node associated with case index to be state. | |
void | setStateLabel (size_t state, const char *statelabel) |
Set the state label of the node. | |
void | setStateLabel (size_t state, const std::string &statelabel) |
Set the state label of the node. | |
void | touchTable () |
Touch the table of this node. | |
void | unsetCase (size_t index) |
Specify that the value of this node for case index is unknown. | |
size_t | getSampledState () const |
Returns the state sampled for this. |
|
Add parent as a new parent of this node. That is, add a directed link from parent to this node.
|
|
Add parent as a new parent of this node. That is, add a directed link from parent to this node.
|
|
Test whether the value of this node in case index currently is set.
|
|
This method specifies a finding value for the specified state and all other states are not effected.
|
|
The belief for the specified state in this node is returned. Note that if findings have been entered since the most recent propagation, the beliefs returned may not be up-to-date.
|
|
Return the node category.
Implements HAPI::Node. |
|
Return a NodeList containing pointers to the children of this node. If no children exist, an empty NodeList is returned.
|
|
Retrieve the finding currently registrered at this node for state.
|
|
Return the node kind.
Implements HAPI::Node. |
|
Return the number of states in this node. The states are numbered from 0 to N-1.
|
|
Return a NodeList with references to the parents of this node. If no parents exist, an empty NodeList is returned.
|
|
Retrieve the propagated finding. That is, retrieve the finding value incorporated within the current junction tree potentials for the specified state of this node.
|
|
Return the state index generated by the most recent call to Domain::simulate (). This function is obsolete. Use getSampledState instead.
|
|
Return the label of state. 0 < state < N, where N is the number of states in the node.
|
|
Return the table associated with this node. The table is the conditional probability table for this node given its parents. The set of nodes associated with the table will be the (discrete) parents of this in unspecified order followed by this node.
|
|
Return whether or not evidence is entered into this node.
|
|
Return whether or not evidence has been propagated from this node.
|
|
Remove the directed link between parent and this node. The table (if any) will be updated such that the updated table will be the portion of the old table that corresponds to parent being in its first state.
|
|
Remove the directed link between parent and this node. The table (if any) will be updated such that the updated table will be the portion of the old table that corresponds to parent being in its first state.
|
|
Retract all findings for this node. This is equivalent to setting the finding value to 1 for all states of this node. |
|
Reverse the edge between this node and the specified neighbor.
|
|
Select the specified state of this node. This is equivalent to specifying the finding value 1 for the specified state and 0 for all other states.
|
|
Specify the case state of this node associated with case index to be state.
|
|
Set the state label of the node.
|
|
Set the state label of the node.
|
|
Substitute a new parent for an old parent. The new parent must be compatible with the old parent: This implies that it must be of the same class, have the same number of states, etc. |
|
Substitute a new parent for an old parent. The new parent must be compatible with the old parent: This implies that it must be of the same class, have the same number of states, etc. |
|
Touch the table of this node. This should be done to notify the inference engine whenever changes made to the Table should be used in subsequent inference. Changes made by the Hugin API will automatically provide this notification. |
|
Specify that the value of this node for case index is unknown.
|