22 #include <boost/shared_ptr.hpp> 47 template<
typename ITERATOR>
48 DiscreteBayesNet(ITERATOR firstConditional, ITERATOR lastConditional) : Base(firstConditional, lastConditional) {}
51 template<
class CONTAINER>
55 template<
class DERIVEDCONDITIONAL>
67 bool equals(
const This& bn,
double tol = 1
e-9)
const;
95 friend class boost::serialization::access;
96 template<
class ARCHIVE>
98 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
FactorGraph< DiscreteConditional > Base
DiscreteConditional ConditionalType
NonlinearFactorGraph graph
DiscreteBayesNet(const FactorGraph< DERIVEDCONDITIONAL > &graph)
graph add(boost::make_shared< UnaryFactor >(1, 0.0, 0.0, unaryNoise))
DiscreteBayesNet(ITERATOR firstConditional, ITERATOR lastConditional)
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
DiscreteBayesNet(const CONTAINER &conditionals)
boost::shared_ptr< Values > sharedValues
boost::shared_ptr< This > shared_ptr
boost::shared_ptr< ConditionalType > sharedConditional
virtual ~DiscreteBayesNet()
Destructor.
void serialize(ARCHIVE &ar, const unsigned int)