GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Public Types | Public Member Functions | Public Attributes | List of all members
gtsam::ClusterTree< GRAPH >::Cluster Struct Reference

A Cluster is just a collection of factors. More...

#include <ClusterTree.h>

Collaboration diagram for gtsam::ClusterTree< GRAPH >::Cluster:
Collaboration graph
[legend]

Public Types

typedef FastVector< std::shared_ptr< Cluster > > Children
 
typedef Ordering Keys
 

Public Member Functions

const Clusteroperator[] (size_t i) const
 
template<class CONTAINER >
 Cluster (Key key, const CONTAINER &factorsToAdd)
 Construct from factors associated with a single key.
 
template<class CONTAINER >
void addFactors (Key key, const CONTAINER &factorsToAdd)
 Add factors associated with a single key.
 
void addChild (const std::shared_ptr< Cluster > &cluster)
 Add a child cluster.
 
size_t nrChildren () const
 
size_t nrFactors () const
 
size_t nrFrontals () const
 
int problemSize () const
 
virtual void print (const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
 print this node
 
std::vector< size_t > nrFrontalsOfChildren () const
 Return a vector with nrFrontal keys for each child.
 
void merge (const std::shared_ptr< Cluster > &cluster)
 Merge in given cluster.
 
void mergeChildren (const std::vector< bool > &merge)
 Merge all children for which bit is set into this node.
 

Public Attributes

Children children
 sub-trees
 
Keys orderedFrontalKeys
 Frontal keys of this node.
 
FactorGraphType factors
 Factors associated with this node.
 
int problemSize_
 

Detailed Description

template<class GRAPH>
struct gtsam::ClusterTree< GRAPH >::Cluster

A Cluster is just a collection of factors.


The documentation for this struct was generated from the following files: