69 void push_back(std::shared_ptr<HybridConditional> conditional) {
70 factors_.push_back(conditional);
81 template <
class Conditional>
83 factors_.push_back(std::make_shared<HybridConditional>(
84 std::shared_ptr<Conditional>(conditional)));
101 std::make_shared<HybridConditional>(std::move(conditional)));
118 return evaluate(values);
231 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 233 friend class boost::serialization::access;
234 template <
class ARCHIVE>
235 void serialize(ARCHIVE &ar,
const unsigned int ) {
236 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
void print(const Matrix &A, const string &s, ostream &stream)
std::string serialize(const T &input)
serializes to a string
std::shared_ptr< ConditionalType > sharedConditional
static const T & choose(int layout, const T &col, const T &row)
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
Included from all GTSAM files.
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
double operator()(const HybridValues &values) const
Evaluate hybrid probability density for given HybridValues, sugar.
void push_back(std::shared_ptr< HybridConditional > conditional)
Add a hybrid conditional using a shared_ptr.
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 emplace_back(Conditional *conditional)
std::shared_ptr< DecisionTreeFactor > shared_ptr
double logProbability(const HybridValues &x) const
Chordal Bayes Net, the result of eliminating a factor graph.
std::shared_ptr< HybridBayesNet > shared_ptr