Go to the documentation of this file.
53 std::initializer_list<HybridConditional::shared_ptr>
conditionals)
76 void push_back(std::shared_ptr<HybridConditional> conditional) {
77 factors_.push_back(conditional);
89 std::make_shared<HybridConditional>(std::move(conditional)));
102 template <
class CONDITIONAL>
103 void push_back(
const std::shared_ptr<CONDITIONAL> &conditional) {
104 factors_.push_back(std::make_shared<HybridConditional>(conditional));
115 template <
class CONDITIONAL,
class... Args>
117 auto cond = std::allocate_shared<CONDITIONAL>(
119 factors_.push_back(std::make_shared<HybridConditional>(std::move(cond)));
248 double negLogConstant(
const std::optional<DiscreteValues> &discrete)
const;
271 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
273 friend class boost::serialization::access;
274 template <
class ARCHIVE>
275 void serialize(ARCHIVE &ar,
const unsigned int ) {
276 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
std::shared_ptr< ConditionalType > sharedConditional
Included from all GTSAM files.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
const KeyFormatter & formatter
Chordal Bayes Net, the result of eliminating a factor graph.
const std::vector< GaussianConditional::shared_ptr > conditionals
HybridBayesNet(std::initializer_list< HybridConditional::shared_ptr > conditionals)
Constructor that takes an initializer list of shared pointers.
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
void push_back(const std::shared_ptr< CONDITIONAL > &conditional)
Add a conditional to the Bayes net. Implicitly convert to a HybridConditional.
void print(const Matrix &A, const string &s, ostream &stream)
STL compatible allocator to use with types requiring a non standrad alignment.
double operator()(const HybridValues &values) const
Evaluate hybrid probability density for given HybridValues, sugar.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
void push_back(HybridConditional &&conditional)
void push_back(std::shared_ptr< HybridConditional > conditional)
Add a hybrid conditional using a shared_ptr.
double logProbability(const HybridValues &x) const
std::vector< double > measurements
std::shared_ptr< HybridBayesNet > shared_ptr
static const T & choose(int layout, const T &col, const T &row)
void emplace_shared(Args &&...args)
gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:01:15