A Cluster is just a collection of factors. More...
#include <ClusterTree.h>
Public Types | |
typedef FastVector< boost::shared_ptr< Cluster > > | Children |
typedef Ordering | Keys |
Public Member Functions | |
void | addChild (const boost::shared_ptr< Cluster > &cluster) |
Add a child cluster. More... | |
template<class CONTAINER > | |
void | addFactors (Key key, const CONTAINER &factorsToAdd) |
Add factors associated with a single key. More... | |
Cluster () | |
template<class CONTAINER > | |
Cluster (Key key, const CONTAINER &factorsToAdd) | |
Construct from factors associated with a single key. More... | |
void | merge (const boost::shared_ptr< Cluster > &cluster) |
Merge in given cluster. More... | |
void | mergeChildren (const std::vector< bool > &merge) |
Merge all children for which bit is set into this node. More... | |
size_t | nrChildren () const |
size_t | nrFactors () const |
size_t | nrFrontals () const |
std::vector< size_t > | nrFrontalsOfChildren () const |
Return a vector with nrFrontal keys for each child. More... | |
const Cluster & | operator[] (size_t i) const |
virtual void | print (const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const |
print this node More... | |
int | problemSize () const |
virtual | ~Cluster () |
Public Attributes | |
Children | children |
sub-trees More... | |
FactorGraphType | factors |
Factors associated with this node. More... | |
Keys | orderedFrontalKeys |
Frontal keys of this node. More... | |
int | problemSize_ |
A Cluster is just a collection of factors.
Definition at line 36 of file ClusterTree.h.
typedef FastVector<boost::shared_ptr<Cluster> > gtsam::ClusterTree< GRAPH >::Cluster::Children |
Definition at line 37 of file ClusterTree.h.
typedef Ordering gtsam::ClusterTree< GRAPH >::Cluster::Keys |
Definition at line 40 of file ClusterTree.h.
|
inline |
Definition at line 47 of file ClusterTree.h.
|
inlinevirtual |
Definition at line 49 of file ClusterTree.h.
|
inline |
Construct from factors associated with a single key.
Definition at line 57 of file ClusterTree.h.
|
inline |
Add a child cluster.
Definition at line 71 of file ClusterTree.h.
|
inline |
Add factors associated with a single key.
Definition at line 64 of file ClusterTree.h.
void gtsam::ClusterTree< GRAPH >::Cluster::merge | ( | const boost::shared_ptr< Cluster > & | cluster | ) |
Merge in given cluster.
Definition at line 40 of file ClusterTree-inst.h.
void gtsam::ClusterTree< GRAPH >::Cluster::mergeChildren | ( | const std::vector< bool > & | merge | ) |
Merge all children for which bit is set into this node.
Definition at line 52 of file ClusterTree-inst.h.
|
inline |
Definition at line 76 of file ClusterTree.h.
|
inline |
Definition at line 80 of file ClusterTree.h.
|
inline |
Definition at line 84 of file ClusterTree.h.
std::vector< size_t > gtsam::ClusterTree< GRAPH >::Cluster::nrFrontalsOfChildren | ( | ) | const |
Return a vector with nrFrontal keys for each child.
Definition at line 30 of file ClusterTree-inst.h.
|
inline |
Definition at line 51 of file ClusterTree.h.
|
virtual |
print this node
Definition at line 22 of file ClusterTree-inst.h.
|
inline |
Definition at line 88 of file ClusterTree.h.
Children gtsam::ClusterTree< GRAPH >::Cluster::children |
sub-trees
Definition at line 38 of file ClusterTree.h.
FactorGraphType gtsam::ClusterTree< GRAPH >::Cluster::factors |
Factors associated with this node.
Definition at line 43 of file ClusterTree.h.
Keys gtsam::ClusterTree< GRAPH >::Cluster::orderedFrontalKeys |
Frontal keys of this node.
Definition at line 41 of file ClusterTree.h.
int gtsam::ClusterTree< GRAPH >::Cluster::problemSize_ |
Definition at line 45 of file ClusterTree.h.