Discrete Bayes Net example using Factor Graphs. More...
#include <gtsam/discrete/DiscreteFactorGraph.h>
#include <gtsam/discrete/DiscreteMarginals.h>
#include <iomanip>
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
Discrete Bayes Net example using Factor Graphs.
We use the famous Rain/Cloudy/Sprinkler Example of [Russell & Norvig, 2009, p529] You may be familiar with other graphical model packages like BNT (available at http://bnt.googlecode.com/svn/trunk/docs/usage.html) where this is used as an example. The following demo is same as that in the above link, except that everything is using GTSAM.
Definition in file DiscreteBayesNet_FG.cpp.
Definition at line 33 of file DiscreteBayesNet_FG.cpp.