34 class HybridConditional;
46 HybridGaussianFactorGraph> {
55 :
Base(conditional) {}
110 void prune(
const size_t maxNumberLeaves);
115 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 117 friend class boost::serialization::access;
118 template <
class ARCHIVE>
119 void serialize(ARCHIVE& ar,
const unsigned int ) {
120 ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
156 this->keys_.assign(clique->conditional()->beginParents(),
157 clique->conditional()->endParents());
158 this->discreteKeys_.assign(clique->conditional()->discreteKeys().begin(),
159 clique->conditional()->discreteKeys().end());
164 const std::string&
s =
"",
166 clique->print(
s +
"stored clique",
formatter);
A clique in a HybridBayesTree which is a HybridConditional internally.
Base class for conditional densities.
BayesTreeOrphanWrapper(const std::shared_ptr< CliqueType > &clique)
Construct a new Bayes Tree Orphan Wrapper object.
std::string serialize(const T &input)
serializes to a string
std::shared_ptr< This > shared_ptr
static const T & choose(int layout, const T &col, const T &row)
HybridBayesTreeClique(const std::shared_ptr< HybridConditional > &conditional)
Copy constructor.
static const KeyFormatter DefaultKeyFormatter
std::weak_ptr< This > weak_ptr
const KeyFormatter & formatter
std::shared_ptr< CliqueType > clique
A Bayes net of Gaussian Conditionals indexed by discrete keys.
HybridBayesTreeClique CliqueType
HybridBayesTreeClique This
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void print(const std::string &s="", const KeyFormatter &formatter=DefaultKeyFormatter) const override
print utility
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Linearized Hybrid factor graph that uses type erasure.
Bayes Tree is a tree of cliques of a Bayes Chain.
HybridBayesTreeClique(const HybridBayesTreeClique &clique)
std::shared_ptr< This > shared_ptr
BayesTree< HybridBayesTreeClique > Base
BayesTreeCliqueBase< HybridBayesTreeClique, HybridGaussianFactorGraph > Base
Gaussian Bayes Tree, the result of eliminating a GaussianJunctionTree.
Base class for cliques of a BayesTree.