23 #include <boost/shared_ptr.hpp>
48 GTSAM_EXPORT
static double safe_div(
const double& a,
const double& b);
63 template<
class SOURCE>
70 GTSAM_EXPORT
void print(
const std::string& s =
"Potentials: ",
71 const KeyFormatter& formatter = DefaultKeyFormatter)
const;
specialized key for discrete variables
Algebraic Decision Trees fix the range to double Just has some nice constructors and some syntactic s...
Definition: AlgebraicDecisionTree.h:31
A base class for both DiscreteFactor and DiscreteConditional.
Definition: Potentials.h:31
Potentials(const ADT &potentials)
Constructor from ColumnIndex, and ADT.
Definition: Potentials.h:43
DiscreteKeys is a set of keys that can be assembled using the & operator.
Definition: DiscreteKey.h:36
Algebraic Decision Trees.
std::map< Key, size_t > cardinalities_
Cardinality for each key, used in combine.
Definition: Potentials.h:40
Template to create a binary predicate.
Definition: Testable.h:102
size_t Key
Integer nonlinear key type.
Definition: types.h:59
GTSAM_EXPORT Potentials()
Default constructor for I/O.
Definition: Potentials.cpp:39
boost::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: types.h:62
Potentials(const DiscreteKeys &keys, SOURCE table)
Constructor from Indices and (string or doubles)
Definition: Potentials.h:64