diff --git a/gtsam/inference/BayesNet.h b/gtsam/inference/BayesNet.h index c77b23c76..2d70d8589 100644 --- a/gtsam/inference/BayesNet.h +++ b/gtsam/inference/BayesNet.h @@ -31,10 +31,13 @@ namespace gtsam { /** - * Bayes network - * This is the base class for SymbolicBayesNet, DiscreteBayesNet, and GaussianBayesNet - * corresponding to what is used for the "Conditional" template argument: - * a SymbolicConditional, ConditionalProbabilityTable, or a GaussianConditional + * A BayesNet is a list of conditionals, stored in elimination order, i.e. + * leaves first, parents last. GaussianBayesNet and SymbolicBayesNet are + * defined as typedefs of this class, using GaussianConditional and + * IndexConditional as the CONDITIONAL template argument. + * + * todo: Symbolic using Index is a misnomer. + * todo: how to handle Bayes nets with an optimize function? Currently using global functions. */ template class BayesNet: public Testable > { diff --git a/gtsam/inference/BayesTree.h b/gtsam/inference/BayesTree.h index 37c7bbca0..4ab5c08ae 100644 --- a/gtsam/inference/BayesTree.h +++ b/gtsam/inference/BayesTree.h @@ -43,7 +43,7 @@ namespace gtsam { public: - typedef boost::shared_ptr > shared_ptr; + typedef boost::shared_ptr > shared_ptr; typedef boost::shared_ptr sharedConditional; typedef boost::shared_ptr > sharedBayesNet;