28 class DecisionTreeFactor;
29 class DiscreteConditional;
59 template<
typename CONTAINER>
71 const std::string&
s =
"DiscreteFactor\n",
122 virtual std::string
html(
150 std::vector<double>
expNormalize(
const std::vector<double> &logProbs);
void print(const std::string &s="DiscreteFactor\, const KeyFormatter &formatter=DefaultKeyFormatter) const override
print
Concept check for values that can be used in unit tests.
string markdown(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of markdown.
EIGEN_STRONG_INLINE Packet4f print(const Packet4f &a)
Point2 operator*(double s, const Point2 &p)
multiply with scalar
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
DiscreteFactor This
This class.
string html(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of html.
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< DiscreteFactor > shared_ptr
shared_ptr to this class
DiscreteValues::Names Names
Translation table from values to strings.
Factor Base
Our base class.
std::vector< double > expNormalize(const std::vector< double > &logProbs)
Normalize a set of log probabilities.
DiscreteFactor(const CONTAINER &keys)
internal::enable_if< internal::valid_indexed_view_overload< RowIndices, ColIndices >::value &&internal::traits< typename EIGEN_INDEXED_VIEW_METHOD_TYPE< RowIndices, ColIndices >::type >::ReturnAsIndexedView, typename EIGEN_INDEXED_VIEW_METHOD_TYPE< RowIndices, ColIndices >::type >::type operator()(const RowIndices &rowIndices, const ColIndices &colIndices) EIGEN_INDEXED_VIEW_METHOD_CONST
std::map< Key, std::vector< std::string > > Names
Translation table from values to strings.
The base class for all factors.