29 template class BayesTreeCliqueBase<DiscreteBayesTreeClique, DiscreteFactorGraph>;
30 template class BayesTree<DiscreteBayesTreeClique>;
38 result *= child->evaluate(values);
52 for (
const auto&
root : roots_) {
53 result *=
root->evaluate(values);
bool equals(const This &other, double tol=1e-9) const
Base class for cliques of a BayesTree.
const mpreal root(const mpreal &x, unsigned long int k, mp_rnd_t r=mpreal::get_default_rnd())
double evaluate(const DiscreteConditional::Values &values) const
double evaluate(const DiscreteConditional::Values &values) const
Discrete Bayes Tree, the result of eliminating a DiscreteJunctionTree.
FastVector< derived_ptr > children
bool equals(const DiscreteBayesTreeClique &other, double tol=1e-9) const