#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 boost::shared_ptr< This > | shared_ptr |
Shared pointer to this class. More... | |
typedef boost::shared_ptr< Cluster > | sharedCluster |
Shared pointer to Cluster. More... | |
typedef boost::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... | |
GTSAM_CONCEPT_TESTABLE_TYPE (FactorType) | |
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 boost::shared_ptr< Cluster > &cluster) |
void | addChildrenAsRoots (const boost::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 boost::shared_ptr<This> gtsam::ClusterTree< GRAPH >::shared_ptr |
Shared pointer to this class.
Definition at line 29 of file ClusterTree.h.
typedef boost::shared_ptr<Cluster> gtsam::ClusterTree< GRAPH >::sharedCluster |
Shared pointer to Cluster.
Definition at line 106 of file ClusterTree.h.
typedef boost::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.
|
inline |
Definition at line 150 of file ClusterTree.h.
|
inline |
Definition at line 146 of file ClusterTree.h.
gtsam::ClusterTree< GRAPH >::GTSAM_CONCEPT_TESTABLE_TYPE | ( | FactorType | ) |
concept check
|
inline |
Definition at line 155 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 100 of file ClusterTree-inst.h.
|
inline |
Definition at line 164 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 94 of file ClusterTree-inst.h.
|
inline |
Return the set of roots (one for a tree, multiple for a forest)
Definition at line 160 of file ClusterTree.h.
|
protected |
Definition at line 116 of file ClusterTree.h.