#include <BayesTree.h>
Public Types | |
typedef BAYESTREE | BayesTreeType |
The BayesTree type produced by elimination. More... | |
typedef BAYESTREE::ConditionalType | ConditionalType |
The type of conditionals. More... | |
typedef GRAPH::Eliminate | Eliminate |
Typedef for an eliminate subroutine. More... | |
typedef GRAPH | FactorGraphType |
The factor graph type. More... | |
typedef GRAPH::FactorType | FactorType |
The type of factors. More... | |
typedef boost::shared_ptr< This > | shared_ptr |
Shared pointer to this class. More... | |
typedef boost::shared_ptr< ConditionalType > | sharedConditional |
Shared pointer to a conditional. More... | |
typedef boost::shared_ptr< FactorType > | sharedFactor |
Shared pointer to a factor. More... | |
typedef EliminatableClusterTree< BAYESTREE, GRAPH > | This |
This class. More... | |
Public Types inherited from gtsam::ClusterTree< GRAPH > | |
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 | |
Standard Interface | |
std::pair< boost::shared_ptr< BayesTreeType >, boost::shared_ptr< FactorGraphType > > | eliminate (const Eliminate &function) const |
Advanced Interface | |
const FastVector< sharedFactor > & | remainingFactors () const |
Public Member Functions inherited from gtsam::ClusterTree< GRAPH > | |
ClusterTree () | |
Default constructor. More... | |
GTSAM_CONCEPT_TESTABLE_TYPE (FactorType) | |
void | print (const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const |
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 |
Protected Member Functions | |
Standard Constructors | |
EliminatableClusterTree (const This &other) | |
Details | |
This & | operator= (const This &other) |
EliminatableClusterTree () | |
Default constructor to be used in derived classes. More... | |
Protected Member Functions inherited from gtsam::ClusterTree< GRAPH > | |
ClusterTree (const This &other) | |
This & | operator= (const This &other) |
Protected Attributes | |
FastVector< sharedFactor > | remainingFactors_ |
Protected Attributes inherited from gtsam::ClusterTree< GRAPH > | |
FastVector< sharedNode > | roots_ |
A cluster-tree that eliminates to a Bayes tree.
Definition at line 33 of file BayesTree.h.
typedef BAYESTREE gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::BayesTreeType |
The BayesTree type produced by elimination.
Definition at line 186 of file ClusterTree.h.
typedef BAYESTREE::ConditionalType gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::ConditionalType |
The type of conditionals.
Definition at line 191 of file ClusterTree.h.
typedef GRAPH::Eliminate gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::Eliminate |
Typedef for an eliminate subroutine.
Definition at line 195 of file ClusterTree.h.
typedef GRAPH gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::FactorGraphType |
The factor graph type.
Definition at line 187 of file ClusterTree.h.
typedef GRAPH::FactorType gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::FactorType |
The type of factors.
Definition at line 196 of file ClusterTree.h.
typedef boost::shared_ptr<This> gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::shared_ptr |
Shared pointer to this class.
Definition at line 189 of file ClusterTree.h.
typedef boost::shared_ptr<ConditionalType> gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::sharedConditional |
Shared pointer to a conditional.
Definition at line 193 of file ClusterTree.h.
typedef boost::shared_ptr<FactorType> gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::sharedFactor |
Shared pointer to a factor.
Definition at line 197 of file ClusterTree.h.
typedef EliminatableClusterTree<BAYESTREE, GRAPH> gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::This |
This class.
Definition at line 188 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 207 of file ClusterTree.h.
|
inlineprotected |
Default constructor to be used in derived classes.
Definition at line 245 of file ClusterTree.h.
std::pair< boost::shared_ptr< BAYESTREE >, boost::shared_ptr< GRAPH > > gtsam::EliminatableClusterTree< BAYESTREE, GRAPH >::eliminate | ( | const Eliminate & | function | ) | const |
Eliminate the factors to a Bayes tree and remaining factor graph
function | The function to use to eliminate, see the namespace functions in GaussianFactorGraph.h |
Definition at line 221 of file ClusterTree-inst.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 207 of file ClusterTree-inst.h.
|
inline |
Return the remaining factors that are not pulled into elimination
Definition at line 231 of file ClusterTree.h.
|
protected |
Definition at line 200 of file ClusterTree.h.