#include <ClusterTree.h>
Classes | |
struct | Cluster |
A Cluster is just a collection of factors. More... | |
Public Types | |
typedef GRAPH | FactorGraphType |
The factor graph type. More... | |
typedef GRAPH::FactorType | FactorType |
The type of factors. More... | |
typedef Cluster | Node |
typedef std::shared_ptr< This > | shared_ptr |
Shared pointer to this class. More... | |
typedef std::shared_ptr< Cluster > | sharedCluster |
Shared pointer to Cluster. More... | |
typedef std::shared_ptr< FactorType > | sharedFactor |
Shared pointer to a factor. More... | |
typedef sharedCluster | sharedNode |
typedef ClusterTree< GRAPH > | This |
This class. More... | |
Public Member Functions | |
ClusterTree () | |
Default constructor. More... | |
~ClusterTree () | |
Protected Attributes | |
FastVector< sharedNode > | roots_ |
Standard Constructors | |
ClusterTree (const This &other) | |
Testable | |
void | print (const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const |
Advanced Interface | |
void | addRoot (const std::shared_ptr< Cluster > &cluster) |
void | addChildrenAsRoots (const std::shared_ptr< Cluster > &cluster) |
size_t | nrRoots () const |
const FastVector< sharedNode > & | roots () const |
const Cluster & | operator[] (size_t i) const |
Details | |
This & | operator= (const This &other) |
A cluster-tree is associated with a factor graph and is defined as in Koller-Friedman: each node k represents a subset , and the tree is family preserving, in that each factor is associated with a single cluster and .
Definition at line 25 of file ClusterTree.h.
typedef GRAPH gtsam::ClusterTree< GRAPH >::FactorGraphType |
The factor graph type.
Definition at line 27 of file ClusterTree.h.
typedef GRAPH::FactorType gtsam::ClusterTree< GRAPH >::FactorType |
The type of factors.
Definition at line 31 of file ClusterTree.h.
typedef Cluster gtsam::ClusterTree< GRAPH >::Node |
Definition at line 109 of file ClusterTree.h.
typedef std::shared_ptr<This> gtsam::ClusterTree< GRAPH >::shared_ptr |
Shared pointer to this class.
Definition at line 29 of file ClusterTree.h.
typedef std::shared_ptr<Cluster> gtsam::ClusterTree< GRAPH >::sharedCluster |
Shared pointer to Cluster.
Definition at line 106 of file ClusterTree.h.
typedef std::shared_ptr<FactorType> gtsam::ClusterTree< GRAPH >::sharedFactor |
Shared pointer to a factor.
Definition at line 32 of file ClusterTree.h.
typedef sharedCluster gtsam::ClusterTree< GRAPH >::sharedNode |
Definition at line 110 of file ClusterTree.h.
typedef ClusterTree<GRAPH> gtsam::ClusterTree< GRAPH >::This |
This class.
Definition at line 28 of file ClusterTree.h.
|
inlineprotected |
Copy constructor - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.
Definition at line 123 of file ClusterTree.h.
|
inline |
Default constructor.
Definition at line 132 of file ClusterTree.h.
gtsam::ClusterTree< GRAPH >::~ClusterTree | ( | ) |
Definition at line 111 of file ClusterTree-inst.h.
|
inline |
Definition at line 149 of file ClusterTree.h.
|
inline |
Definition at line 145 of file ClusterTree.h.
|
inline |
Definition at line 154 of file ClusterTree.h.
|
protected |
Assignment operator - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.
Definition at line 140 of file ClusterTree-inst.h.
|
inline |
Definition at line 163 of file ClusterTree.h.
void gtsam::ClusterTree< GRAPH >::print | ( | const std::string & | s = "" , |
const KeyFormatter & | keyFormatter = DefaultKeyFormatter |
||
) | const |
Print the cluster tree
Definition at line 99 of file ClusterTree-inst.h.
|
inline |
Return the set of roots (one for a tree, multiple for a forest)
Definition at line 159 of file ClusterTree.h.
|
protected |
concept check
Definition at line 116 of file ClusterTree.h.