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)...);
144 using Base::evaluate;
145 using Base::logProbability;
150 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
152 friend class boost::serialization::access;
153 template<
class ARCHIVE>
154 void serialize(ARCHIVE & ar,
const unsigned int ) {
155 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 Fri Nov 1 2024 03:32:26