Go to the documentation of this file.
29 template class BayesTreeCliqueBase<DiscreteBayesTreeClique, DiscreteFactorGraph>;
30 template class BayesTree<DiscreteBayesTreeClique>;
52 for (
const auto& root :
roots_) {
64 ss <<
"`DiscreteBayesTree` of size " <<
nodes_.size() << endl << endl;
67 ss <<
"\n" <<
clique->conditional()->markdown(keyFormatter,
names);
81 ss <<
"<div><p><tt>DiscreteBayesTree</tt> of size " <<
nodes_.size()
static std::stringstream ss
double evaluate(const DiscreteValues &values) const
bool equals(const This &other, double tol=1e-9) const
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
const sharedClique & clique(Key j) const
void DepthFirstForest(FOREST &forest, DATA &rootData, VISITOR_PRE &visitorPre, VISITOR_POST &visitorPost)
FastVector< derived_ptr > children
Discrete Bayes Tree, the result of eliminating a DiscreteJunctionTree.
DiscreteValues::Names Names
Translation table from values to strings.
std::string html(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const DiscreteFactor::Names &names={}) const
Render as html tables.
A Bayes tree representing a Discrete distribution.
bool equals(const This &other, double tol=1e-9) const
Base class for cliques of a BayesTree.
Bayes Tree is a tree of cliques of a Bayes Chain.
std::shared_ptr< This > shared_ptr
std::string markdown(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const DiscreteFactor::Names &names={}) const
Render as markdown tables.
double evaluate(const DiscreteValues &values) const
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:28