![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
#include <binaryJoinTreeConverterDefault.h>
Public Member Functions | |
Constructors / Destructors | |
BinaryJoinTreeConverterDefault () | |
default constructor More... | |
virtual | ~BinaryJoinTreeConverterDefault () |
destructor More... | |
Accessors/Modifiers | |
CliqueGraph | convert (const CliqueGraph &JT, const NodeProperty< Size > &domain_sizes, const NodeSet &roots) |
returns a binary join tree corresponding to clique graph JT More... | |
const NodeSet & | roots () const |
returns all the roots considered for all the connected components More... | |
Definition at line 34 of file binaryJoinTreeConverterDefault.h.
gum::BinaryJoinTreeConverterDefault::BinaryJoinTreeConverterDefault | ( | ) |
default constructor
Definition at line 36 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
|
virtual |
destructor
Definition at line 41 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
forbid copy constructor
|
private |
returns the domain size of the union of two cliques
Definition at line 81 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
convert a clique and its adjacent cliques into a binary join tree
Definition at line 100 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
convert a whole connected component into a binary join tree
Definition at line 217 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
a function used to mark the nodes belonging to a given connected component
Definition at line 47 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
CliqueGraph gum::BinaryJoinTreeConverterDefault::convert | ( | const CliqueGraph & | JT, |
const NodeProperty< Size > & | domain_sizes, | ||
const NodeSet & | roots | ||
) |
returns a binary join tree corresponding to clique graph JT
computes the binary join tree
This method creates and returns a new binary join tree compatible with that passed in argument (JT) and optimized for inference. As such, this requires knowing the join tree to be converted (of course), but also which roots will be used by the collect/diffusion inference engine and the domain size of the variables contained in the cliques of JT (to optimize the combination of the potentials contained in the cliques.
InvalidNode | exception is thrown if some roots do not belong to JT or if several roots belong to the same connected component. |
Definition at line 239 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
forbid copy operator
const NodeSet & gum::BinaryJoinTreeConverterDefault::roots | ( | ) | const |
returns all the roots considered for all the connected components
Definition at line 97 of file binaryJoinTreeConverterDefault.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
the new roots that have been created to compute the last query
Definition at line 78 of file binaryJoinTreeConverterDefault.h.