34 class DiscreteConditional;
49 const std::shared_ptr<DiscreteConditional>& conditional)
50 :
Base(conditional) {}
54 const std::string&
s =
"Clique: ",
69 :
public BayesTree<DiscreteBayesTreeClique> {
90 return evaluate(values);
Base class for conditional densities.
std::shared_ptr< This > shared_ptr
A Bayes tree representing a Discrete distribution.
string markdown(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of markdown.
DiscreteBayesTreeClique This
static const KeyFormatter DefaultKeyFormatter
std::weak_ptr< This > weak_ptr
const KeyFormatter & formatter
void printSignature(const std::string &s="Clique: ", const KeyFormatter &formatter=DefaultKeyFormatter) const
print index signature only
BayesTree< DiscreteBayesTreeClique > Base
DiscreteBayesTreeClique()
string html(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of html.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
BayesTreeCliqueBase< DiscreteBayesTreeClique, DiscreteFactorGraph > Base
Bayes Tree is a tree of cliques of a Bayes Chain.
DiscreteValues::Names Names
Translation table from values to strings.
DiscreteBayesTreeClique(const std::shared_ptr< DiscreteConditional > &conditional)
double operator()(const DiscreteValues &values) const
std::shared_ptr< This > shared_ptr
Base class for cliques of a BayesTree.