34 template <
class CONDITIONAL>
40 typedef typename std::shared_ptr<CONDITIONAL>
51 template <
typename ITERATOR>
52 BayesNet(ITERATOR firstConditional, ITERATOR lastConditional)
53 : Base(firstConditional, lastConditional) {}
61 : Base(conditionals) {}
71 const std::string&
s =
"BayesNet",
79 void dot(std::ostream&
os,
BayesNet(std::initializer_list< sharedConditional > conditionals)
void dot(std::ostream &os, const KeyFormatter &keyFormatter=DefaultKeyFormatter, const DotWriter &writer=DotWriter()) const
Output to graphviz format, stream version.
static const KeyFormatter DefaultKeyFormatter
FactorGraph< CONDITIONAL > Base
const KeyFormatter & formatter
BayesNet(ITERATOR firstConditional, ITERATOR lastConditional)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
DotWriter is a helper class for writing graphviz .dot files.
std::shared_ptr< CONDITIONAL > sharedConditional
A shared pointer to a conditional.
ofstream os("timeSchurFactors.csv")
void saveGraph(const std::string &filename, const KeyFormatter &keyFormatter=DefaultKeyFormatter, const DotWriter &writer=DotWriter()) const
output to file with graphviz format.
double logProbability(const HybridValues &x) const
const std::vector< GaussianConditional::shared_ptr > conditionals
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
void print(const std::string &s="BayesNet", const KeyFormatter &formatter=DefaultKeyFormatter) const override
double evaluate(const HybridValues &c) const