gtsam
Loading...
Searching...
No Matches
DiscreteJunctionTree.h
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2
3 * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4 * Atlanta, Georgia 30332-0415
5 * All Rights Reserved
6 * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8 * See LICENSE for the license information
9
10 * -------------------------------------------------------------------------- */
11
18
19#pragma once
20
24
25namespace gtsam {
26
27// Forward declarations
29
53class GTSAM_EXPORT DiscreteJunctionTree
54 : public JunctionTree<DiscreteBayesTree, DiscreteFactorGraph> {
55 public:
59 typedef std::shared_ptr<This> shared_ptr;
60
63
73 DiscreteJunctionTree(const DiscreteEliminationTree& eliminationTree);
74
78
80 void print(const std::string& name = "DiscreteJunctionTree: ",
81 const KeyFormatter& formatter = DefaultKeyFormatter) const;
82
84};
85
88} // namespace gtsam
Discrete Bayes Tree, the result of eliminating a DiscreteJunctionTree.
The junction tree.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Definition Key.cpp:30
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition Key.h:35
DiscreteJunctionTree::Cluster DiscreteCluster
typedef for wrapper:
Definition DiscreteJunctionTree.h:87
Elimination tree for discrete factors.
Definition DiscreteEliminationTree.h:33
JunctionTree< DiscreteBayesTree, DiscreteFactorGraph > Base
Base class.
Definition DiscreteJunctionTree.h:57
DiscreteJunctionTree(const DiscreteEliminationTree &eliminationTree)
Build the elimination tree of a factor graph using precomputed column structure.
Definition DiscreteJunctionTree.cpp:30
void print(const std::string &name="DiscreteJunctionTree: ", const KeyFormatter &formatter=DefaultKeyFormatter) const
Print the tree to cout.
Definition DiscreteJunctionTree.cpp:35
std::shared_ptr< This > shared_ptr
Shared pointer to this class.
Definition DiscreteJunctionTree.h:59
DiscreteJunctionTree This
This class.
Definition DiscreteJunctionTree.h:58
A Cluster is just a collection of factors.
Definition ClusterTree.h:38
JunctionTree(const EliminationTree< ETREE_BAYESNET, ETREE_GRAPH > &eliminationTree)