Go to the documentation of this file.
53 template <
typename ITERATOR>
55 :
Base(firstConditional, lastConditional) {}
58 template <
class CONTAINER>
64 template <
class DERIVEDCONDITIONAL>
86 emplace_shared<DiscreteDistribution>(
key, spec);
90 template <
typename... Args>
92 emplace_shared<DiscreteConditional>(std::forward<Args>(
args)...);
126 std::mt19937_64*
rng =
nullptr)
const;
137 const std::optional<double>& marginalThreshold = {},
148 DiscreteConditional joint()
const;
167 using Base::evaluate;
168 using Base::logProbability;
173 #if GTSAM_ENABLE_BOOST_SERIALIZATION
175 friend class boost::serialization::access;
176 template<
class ARCHIVE>
177 void serialize(ARCHIVE & ar,
const unsigned int ) {
178 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
string markdown(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of markdown.
std::shared_ptr< ConditionalType > sharedConditional
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void add(Args &&... args)
const std::vector< GaussianConditional::shared_ptr > conditionals
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
graph add(PriorFactor< Pose2 >(1, priorMean, priorNoise))
const gtsam::Symbol key('X', 0)
DiscreteBayesNet(const FactorGraph< DERIVEDCONDITIONAL > &graph)
void add(const DiscreteKey &key, const std::string &spec)
DiscreteBayesNet(ITERATOR firstConditional, ITERATOR lastConditional)
DiscreteValues::Names Names
Translation table from values to strings.
std::pair< Key, size_t > DiscreteKey
double operator()(const DiscreteValues &values) const
BayesNet< DiscreteConditional > Base
DiscreteBayesNet(const CONTAINER &conditionals)
std::shared_ptr< This > shared_ptr
DiscreteBayesNet()
Construct empty Bayes net.
string html(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of html.
DiscreteConditional ConditionalType
NonlinearFactorGraph graph
gtsam
Author(s):
autogenerated on Wed May 28 2025 03:01:13