47 template<
typename ITERATOR>
48 SymbolicBayesNet(ITERATOR firstConditional, ITERATOR lastConditional) : Base(firstConditional, lastConditional) {}
51 template<
class CONTAINER>
55 template<
class DERIVEDCONDITIONAL>
67 GTSAM_EXPORT
bool equals(
const This& bn,
double tol = 1
e-9)
const;
71 const std::string&
s =
"SymbolicBayesNet",
88 template<
class ARCHIVE>
90 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
GTSAM_EXPORT void saveGraph(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
Typedefs for easier changing of types.
GTSAM_EXPORT void print(const std::string &s="SymbolicBayesNet", const KeyFormatter &formatter=DefaultKeyFormatter) const override
print
FactorGraph< SymbolicConditional > Base
boost::shared_ptr< This > shared_ptr
void serialize(ARCHIVE &ar, const unsigned int)
NonlinearFactorGraph graph
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
GTSAM_EXPORT bool equals(const This &bn, double tol=1e-9) const
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
friend class boost::serialization::access
virtual ~SymbolicBayesNet()
Destructor.
virtual void print(const std::string &s="FactorGraph", const KeyFormatter &formatter=DefaultKeyFormatter) const
print out graph
SymbolicConditional ConditionalType
boost::shared_ptr< ConditionalType > sharedConditional
SymbolicBayesNet(const CONTAINER &conditionals)
SymbolicBayesNet(ITERATOR firstConditional, ITERATOR lastConditional)
SymbolicBayesNet(const FactorGraph< DERIVEDCONDITIONAL > &graph)