GTSAM
4.0.2
C++ library for smoothing and mapping (SAM)
|
#include <ClusterTree.h>
Classes | |
struct | Cluster |
A Cluster is just a collection of factors. More... | |
Public Types | |
typedef GRAPH | FactorGraphType |
The factor graph type. | |
typedef ClusterTree< GRAPH > | This |
This class. | |
typedef std::shared_ptr< This > | shared_ptr |
Shared pointer to this class. | |
typedef GRAPH::FactorType | FactorType |
The type of factors. | |
typedef std::shared_ptr< FactorType > | sharedFactor |
Shared pointer to a factor. | |
typedef std::shared_ptr< Cluster > | sharedCluster |
Shared pointer to Cluster. | |
typedef Cluster | Node |
typedef sharedCluster | sharedNode |
Public Member Functions | |
ClusterTree () | |
Default constructor. | |
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 \( C_k \sub X \), and the tree is family preserving, in that each factor \( f_i \) is associated with a single cluster and \( scope(f_i) \sub C_k \).
|
inlineprotected |
Copy constructor - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.
|
protected |
Assignment operator - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.
void gtsam::ClusterTree< GRAPH >::print | ( | const std::string & | s = "" , |
const KeyFormatter & | keyFormatter = DefaultKeyFormatter |
||
) | const |
Print the cluster tree
|
inline |
Return the set of roots (one for a tree, multiple for a forest)
|
protected |
concept check