wrap operator[] in DiscreteBayesTree
parent
c8fe2fcff2
commit
fa7bde7529
|
@ -138,6 +138,22 @@ class SymbolicBayesNet {
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <gtsam/symbolic/SymbolicBayesTree.h>
|
#include <gtsam/symbolic/SymbolicBayesTree.h>
|
||||||
|
|
||||||
|
class SymbolicBayesTreeClique {
|
||||||
|
SymbolicBayesTreeClique();
|
||||||
|
SymbolicBayesTreeClique(const gtsam::SymbolicConditional* conditional);
|
||||||
|
bool equals(const gtsam::SymbolicBayesTreeClique& other, double tol) const;
|
||||||
|
void print(string s = "", const gtsam::KeyFormatter& keyFormatter =
|
||||||
|
gtsam::DefaultKeyFormatter);
|
||||||
|
const gtsam::SymbolicConditional* conditional() const;
|
||||||
|
bool isRoot() const;
|
||||||
|
gtsam::SymbolicBayesTreeClique* parent() const;
|
||||||
|
size_t treeSize() const;
|
||||||
|
size_t numCachedSeparatorMarginals() const;
|
||||||
|
void deleteCachedShortcuts();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
class SymbolicBayesTree {
|
class SymbolicBayesTree {
|
||||||
// Constructors
|
// Constructors
|
||||||
SymbolicBayesTree();
|
SymbolicBayesTree();
|
||||||
|
@ -149,9 +165,14 @@ class SymbolicBayesTree {
|
||||||
bool equals(const gtsam::SymbolicBayesTree& other, double tol) const;
|
bool equals(const gtsam::SymbolicBayesTree& other, double tol) const;
|
||||||
|
|
||||||
// Standard Interface
|
// Standard Interface
|
||||||
// size_t findParentClique(const gtsam::IndexVector& parents) const;
|
bool empty() const;
|
||||||
size_t size();
|
size_t size() const;
|
||||||
void saveGraph(string s) const;
|
|
||||||
|
const gtsam::SymbolicBayesTreeClique* operator[](size_t j) const;
|
||||||
|
|
||||||
|
void saveGraph(string s,
|
||||||
|
const gtsam::KeyFormatter& keyFormatter =
|
||||||
|
gtsam::DefaultKeyFormatter) const;
|
||||||
void clear();
|
void clear();
|
||||||
void deleteCachedShortcuts();
|
void deleteCachedShortcuts();
|
||||||
size_t numCachedSeparatorMarginals() const;
|
size_t numCachedSeparatorMarginals() const;
|
||||||
|
@ -164,26 +185,4 @@ class SymbolicBayesTree {
|
||||||
gtsam::DefaultKeyFormatter) const;
|
gtsam::DefaultKeyFormatter) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SymbolicBayesTreeClique {
|
|
||||||
SymbolicBayesTreeClique();
|
|
||||||
// SymbolicBayesTreeClique(gtsam::sharedConditional* conditional);
|
|
||||||
|
|
||||||
bool equals(const gtsam::SymbolicBayesTreeClique& other, double tol) const;
|
|
||||||
void print(string s = "", const gtsam::KeyFormatter& keyFormatter =
|
|
||||||
gtsam::DefaultKeyFormatter) const;
|
|
||||||
size_t numCachedSeparatorMarginals() const;
|
|
||||||
// gtsam::sharedConditional* conditional() const;
|
|
||||||
bool isRoot() const;
|
|
||||||
size_t treeSize() const;
|
|
||||||
gtsam::SymbolicBayesTreeClique* parent() const;
|
|
||||||
|
|
||||||
// // TODO: need wrapped versions graphs, BayesNet
|
|
||||||
// BayesNet<ConditionalType> shortcut(derived_ptr root, Eliminate function)
|
|
||||||
// const; FactorGraph<FactorType> marginal(derived_ptr root, Eliminate
|
|
||||||
// function) const; FactorGraph<FactorType> joint(derived_ptr C2, derived_ptr
|
|
||||||
// root, Eliminate function) const;
|
|
||||||
//
|
|
||||||
void deleteCachedShortcuts();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
Loading…
Reference in New Issue