From 2841b8665ff209db99f48ab0161430fdb9d41ad5 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 8 Oct 2012 23:34:17 +0000 Subject: [PATCH] Fixed comments and formatting --- gtsam/inference/BayesTreeCliqueBase.h | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/gtsam/inference/BayesTreeCliqueBase.h b/gtsam/inference/BayesTreeCliqueBase.h index ed9b8bb18..55e0c405b 100644 --- a/gtsam/inference/BayesTreeCliqueBase.h +++ b/gtsam/inference/BayesTreeCliqueBase.h @@ -67,8 +67,7 @@ namespace gtsam { /// @{ /** Default constructor */ - BayesTreeCliqueBase() { - } + BayesTreeCliqueBase() {} /** Construct from a conditional, leaving parent and child pointers uninitialized */ BayesTreeCliqueBase(const sharedConditional& conditional); @@ -170,8 +169,7 @@ namespace gtsam { * types, such as ISAM2Clique, the factor part is kept as a cached factor. * @param result An elimination result, which is a pair */ - static derived_ptr Create( - const std::pair >& result) { return boost::make_shared(result); } @@ -194,27 +192,22 @@ namespace gtsam { bool permuteSeparatorWithInverse(const Permutation& inversePermutation); /** return the conditional P(S|Root) on the separator given the root */ - BayesNet shortcut(derived_ptr root, - Eliminate function) const; + BayesNet shortcut(derived_ptr root, Eliminate function) const; /** return the marginal P(C) of the clique */ - FactorGraph marginal(derived_ptr root, - Eliminate function) const; + FactorGraph marginal(derived_ptr root, Eliminate function) const; - /** return the conditional P(S|Root) on the separator given the root */ - FactorGraph separatorMarginal(derived_ptr root, - Eliminate function) const; + /** return the marginal P(S) on the separator */ + FactorGraph separatorMarginal(derived_ptr root, Eliminate function) const; - /** return the marginal P(C) of the clique, using separator shortcuts */ - FactorGraph marginal2(derived_ptr root, - Eliminate function) const; + /** return the marginal P(C) of the clique, using marginal caching */ + FactorGraph marginal2(derived_ptr root, Eliminate function) const; /** * return the joint P(C1,C2), where C1==this. TODO: not a method? * Limitation: can only calculate joint if cliques are disjoint or one of them is root */ - FactorGraph joint(derived_ptr C2, derived_ptr root, - Eliminate function) const; + FactorGraph joint(derived_ptr C2, derived_ptr root, Eliminate function) const; /** * This deletes the cached shortcuts of all cliques (subtree) below this clique.