31 class DiscreteBayesNet;
54 const ADT& potentials)
59 const std::string&
s =
"Discrete Lookup Table: ",
106 template <
typename... Args>
108 emplace_shared<DiscreteLookupTable>(std::forward<Args>(
args)...);
126 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 128 friend class boost::serialization::access;
129 template <
class ARCHIVE>
130 void serialize(ARCHIVE& ar,
const unsigned int ) {
131 ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
void print(const Matrix &A, const string &s, ostream &stream)
DiscreteLookupDAG()
Construct empty DAG.
std::string serialize(const T &input)
serializes to a string
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
DiscreteLookupTable(size_t nFrontals, const DiscreteKeys &keys, const ADT &potentials)
Construct a new Discrete Lookup Table object.
DiscreteLookupTable table for max-productInherits from discrete conditional for convenience, but is not normalized. Is used in the max-product algorithm.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
std::shared_ptr< DecisionTreeFactor > shared_ptr
std::shared_ptr< This > shared_ptr
void add(Args &&... args)
DiscreteKeys is a set of keys that can be assembled using the & operator.