| Constructor and Destructor
| CBNSClique ()
Default Constructor
| virtual | ~CBNSClique ()
Destructor
|
|
| Out Functions
int | GetRank ()
Returns the rank of the Clique
| double | GetValue (vector& vStateIndex, CBNSNode* pNode)
Given the states of the nodes, this function returns the
conditional probability of the node given the states of the parents
| CBNSClique* | GetParentClique ()
Returns the Pointer to the Parent Clique
| CBNSSeparator* | GetParentSeparator ()
Returns the Pointer to the Parent Separator
| CBNSNode* | GetNode ()
Returns the Pointer to the Node removal of which created this
clique in the minimum degree algorithm
| CBNSSet <CBNSNode *> | GetProbNodes ()
Returns the set of probability nodes assigned to this clique
|
|
| In Functions
void | SetNode (CBNSNode *pNode)
Assigns m_pNode to pNode
| void | SetParentClique (CBNSClique *pParentClique)
Sets the Parent Clique to pParentClique
| void | SetParentSeparator (CBNSSeparator *pParentSeparator)
Sets the Parent Separator to pParentSeparator
| void | SetResidualNodes (CBNSSet<CBNSNode *> residualNodeSet)
Sets the Residual Nodes for the Clique
|
|
| Update Functions
void | AddProbNode (CBNSNode *pNode)
Adds a Probability Node to the Clique
| void | AddChild (CBNSClique *pChildClique)
Adds a Child Clique to the Clique
| void | AddChildSeparator (CBNSSeparator *pChildSeparator)
Adds a Child Separator to the Clique
|
|
| Message Propagation
void | DistributeEvidence ()
Distributes the Evidence to the Child Cliques
| void | CollectEvidence ()
Collects the Evidence from the Child Cliques
| void | GetPiMessage ()
Gets the Pi Message from the Parent Clique
| void | GetLambdaMessage (CBNSSeparator *pSeparator)
Gets the Lambda Message from the Child Clique
|
|
| Friend Functions
friend ostream& | operator << (ostream &o, CBNSClique& cClique)
Stream insertion operator
| friend void | PrintCliqueSet (CBNSSet<CBNSClique *> CliqueSet)
Prints the Contents in the CliqueSet
| friend bool | sort_clique (CBNSClique *pClique1, CBNSClique *pClique2)
This function returns true if the rank of pClique1 is
is less than rank of pClique2, and is used to sort the
CBNSSet of Cliques
|
|