27 class DecisionTreeFactor;
28 class DiscreteConditional;
66 template<
typename CONTAINER>
82 const std::string&
s =
"DiscreteFactor\n",
95 virtual double operator()(
const Values&)
const = 0;
void print(const Matrix &A, const string &s, ostream &stream)
Concept check for values that can be used in unit tests.
An assignment from labels to a discrete value index (size_t)
Point2 operator*(double s, const Point2 &p)
multiply with scalar
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
DiscreteFactor This
This class.
void print(const std::string &s="DiscreteFactor\n", const KeyFormatter &formatter=DefaultKeyFormatter) const override
print
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.)
boost::shared_ptr< DiscreteFactor > shared_ptr
shared_ptr to this class
boost::shared_ptr< Values > sharedValues
virtual ~DiscreteFactor()
Virtual destructor.
Factor Base
Our base class.
virtual bool empty() const
DiscreteFactor(const CONTAINER &keys)
The base class for all factors.