Thic class represents the junction trees in the compiled domain. More...
Public Member Functions | |
CliqueList | getCliques () const |
Return the Cliques in the junction tree. | |
double | getConflict () const |
Return the conflict measure of the data inserted in the junction tree. | |
Clique * | getRoot () const |
Get the root clique of the junction tree. | |
size_t | getTotalCGSize () const |
Return the total number of CG table entries for this JunctionTree. | |
size_t | getTotalSize () const |
Return the total number of discrete table configurations for this JunctionTree. | |
bool | hasEvidenceToPropagate () const |
Does the junction tree contain evidence that has not been propagated? | |
bool | hasTablesToPropagate () const |
Does the junction tree contain updated tables that have not been propagated? | |
bool | isCGEvidencePropagated () const |
Was CG evidence propagated through the junction tree? | |
bool | isEquilibrium (Equilibrium eq) const |
Test the Equilibrium type. | |
bool | isEvidenceMode (EvidenceMode em) const |
Test the EvidenceMode. | |
bool | isEvidencePropagated () const |
Was evidence propagated through the junction tree? | |
bool | isLikelihoodPropagated () const |
Were likelihoods propagated through the junction tree? | |
void | propagate (Equilibrium eq=H_EQUILIBRIUM_SUM, EvidenceMode em=H_MODE_NORMAL) |
Propagate evidence in the junction tree. |
Thic class represents the junction trees in the compiled domain.
size_t HAPI::JunctionTree::getTotalCGSize | ( | ) | const |
Return the total number of CG table entries for this JunctionTree.
Both clique and separator table entries are counted.
size_t HAPI::JunctionTree::getTotalSize | ( | ) | const |
Return the total number of discrete table configurations for this JunctionTree.
Both clique and separator table configurations are counted. Also, if the junction tree has utility potentials, then the clique and separator configurations will effectively be counted twice.
bool HAPI::JunctionTree::isEquilibrium | ( | Equilibrium | eq | ) | const |
Test the Equilibrium type.
Can the equilibrium of the junction tree be obtained through a propagation using eq as the Equilibrium type?
bool HAPI::JunctionTree::isEvidenceMode | ( | EvidenceMode | em | ) | const |
Test the EvidenceMode.
Does the EvidenceMode match the EvidenceMode given as parameter?
void HAPI::JunctionTree::propagate | ( | Equilibrium | eq = H_EQUILIBRIUM_SUM , |
|
EvidenceMode | em = H_MODE_NORMAL | |||
) |
Propagate evidence in the junction tree.
eq | The type of Equilibrium to reach after the propagation. | |
em | The EvidenceMode used. |