39class GTSAM_EXPORT DiscreteBayesTreeClique
42 typedef DiscreteBayesTreeClique This;
45 typedef std::shared_ptr<This> shared_ptr;
46 typedef std::weak_ptr<This> weak_ptr;
47 DiscreteBayesTreeClique() {}
48 DiscreteBayesTreeClique(
49 const std::shared_ptr<DiscreteConditional>&
conditional)
54 const std::string& s =
"Clique: ",
56 conditional_->printSignature(s, formatter);
64 return evaluate(values);
74 :
public BayesTree<DiscreteBayesTreeClique> {
80 typedef std::shared_ptr<This> shared_ptr;
88 bool equals(
const This& other,
double tol = 1e-9)
const;
95 return evaluate(values);
103 std::string markdown(
const KeyFormatter& keyFormatter = DefaultKeyFormatter,
104 const DiscreteFactor::Names& names = {})
const;
107 std::string
html(
const KeyFormatter& keyFormatter = DefaultKeyFormatter,
108 const DiscreteFactor::Names& names = {})
const;
116 :
public Testable<DiscreteBayesTreeClique> {};
123#if GTSAM_ENABLE_BOOST_SERIALIZATION
Base class for cliques of a BayesTree.
Bayes Tree is a tree of cliques of a Bayes Chain.
Base class for conditional densities.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
string html(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of html.
Definition DiscreteValues.cpp:160
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
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition Group.h:37
Template to create a binary predicate.
Definition Testable.h:112
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:152
A clique in a DiscreteBayesTree.
Definition DiscreteBayesTree.h:40
void printSignature(const std::string &s="Clique: ", const KeyFormatter &formatter=DefaultKeyFormatter) const
print index signature only
Definition DiscreteBayesTree.h:53
A Bayes tree representing a Discrete distribution.
Definition DiscreteBayesTree.h:74
DiscreteBayesTree()
Default constructor, creates an empty Bayes tree.
Definition DiscreteBayesTree.h:85
Discrete Conditional Density Derives from DecisionTreeFactor.
Definition DiscreteConditional.h:40
A map from keys to values.
Definition DiscreteValues.h:34
BayesTree()
Definition BayesTree.h:119
BayesTreeCliqueBase()
Definition BayesTreeCliqueBase.h:73
const sharedConditional & conditional() const
Definition BayesTreeCliqueBase.h:140
VectorValues represents a collection of vector-valued variables associated each with a unique integer...
Definition VectorValues.h:73