34class DiscreteConditional;
45 typedef boost::shared_ptr<This> shared_ptr;
46 typedef boost::weak_ptr<This> weak_ptr;
50 const boost::shared_ptr<DiscreteConditional>& conditional)
51 :
Base(conditional) {}
55 const std::string& s =
"Clique: ",
56 const KeyFormatter& formatter = DefaultKeyFormatter)
const {
57 conditional_->printSignature(s, formatter);
67 :
public BayesTree<DiscreteBayesTreeClique> {
73 typedef boost::shared_ptr<This> shared_ptr;
79 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.
Base class for conditional densities.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
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
Template to create a binary predicate.
Definition: Testable.h:111
An assignment from labels to value index (size_t).
Definition: Assignment.h:34
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:54
A Bayes tree representing a Discrete density.
Definition: DiscreteBayesTree.h:67
DiscreteBayesTree()
Default constructor, creates an empty Bayes tree.
Definition: DiscreteBayesTree.h:76
Definition: BayesTree.h:67
This is the base class for BayesTree cliques.
Definition: BayesTreeCliqueBase.h:50