78 const std::string&
s =
"Discrete Prior: ",
93 std::vector<double> pmf()
const;
void print(const Matrix &A, const string &s, ostream &stream)
const gtsam::Symbol key('X', 0)
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
DiscreteDistribution(const DiscreteKey &key, const std::string &spec)
DiscreteDistribution()
Default constructor needed for serialization.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
DiscreteDistribution(const Signature &s)
DiscreteDistribution(const DiscreteKey &key, const std::vector< double > &spec)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
DiscreteDistribution(const DecisionTreeFactor &f)
Constructor from factor.
std::pair< Key, size_t > DiscreteKey
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