Go to the documentation of this file.
26 template class FactorGraph<DiscreteConditional>;
63 const Key j = conditional->firstFrontalKey();
65 conditional->sampleInPlace(&
result);
77 ss <<
"`DiscreteBayesNet` of size " <<
size() << endl << endl;
79 ss << conditional->markdown(keyFormatter,
names) << endl;
88 ss <<
"<div><p><tt>DiscreteBayesNet</tt> of size " <<
size() <<
"</p>";
90 ss << conditional->html(keyFormatter,
names) << endl;
DiscreteValues sample() const
do ancestral sampling
bool equals(const This &bn, double tol=1e-9) const
static std::stringstream ss
double logProbability(const DiscreteValues &values) const
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
bool equals(const This &fg, double tol=1e-9) const
Check equality up to tolerance.
std::string markdown(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const DiscreteFactor::Names &names={}) const
Render as markdown tables.
double evaluate(const DiscreteValues &values) const
std::shared_ptr< This > shared_ptr
shared_ptr to this class
std::reverse_iterator< Iterator > make_reverse_iterator(Iterator i)
DiscreteValues::Names Names
Translation table from values to strings.
const_iterator end() const
std::string html(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const DiscreteFactor::Names &names={}) const
Render as html tables.
const_iterator begin() const
std::uint64_t Key
Integer nonlinear key type.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:13