Go to the documentation of this file.
100 const std::vector<sharedFactor> &
factors)
111 const std::string &
s =
"GaussianMixtureFactor\n",
152 sum = factor.
add(sum);
158 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
160 friend class boost::serialization::access;
161 template <
class ARCHIVE>
162 void serialize(ARCHIVE &ar,
const unsigned int ) {
163 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
164 ar &BOOST_SERIALIZATION_NVP(factors_);
Implementation of a discrete conditional mixture factor. Implements a joint discrete-continuous facto...
Linear Factor Graph where all factors are Gaussians.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const GaussianFactorGraph factors
const KeyFormatter & formatter
DiscreteKeys is a set of keys that can be assembled using the & operator.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
std::shared_ptr< GaussianFactor > sharedFactor
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Algebraic Decision Trees.
void print(const Matrix &A, const string &s, ostream &stream)
std::shared_ptr< This > shared_ptr
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::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Decision Tree for use in DiscreteFactors.
graph add(PriorFactor< Pose2 >(1, priorMean, priorNoise))
GaussianFactorGraphTree add(const GaussianFactorGraphTree &sum) const
Combine the Gaussian Factor Graphs in sum and this while maintaining the original tree structure.
friend GaussianFactorGraphTree & operator+=(GaussianFactorGraphTree &sum, const GaussianMixtureFactor &factor)
Add MixtureFactor to a Sum, syntactic sugar.
specialized key for discrete variables
Factors factors_
Decision tree of Gaussian factors indexed by discrete keys.
GaussianMixtureFactor(const KeyVector &continuousKeys, const DiscreteKeys &discreteKeys, const std::vector< sharedFactor > &factors)
Construct a new GaussianMixtureFactor object using a vector of GaussianFactor shared pointers.
A factor with a quadratic error function - a Gaussian.
const Factors & factors() const
Getter for GaussianFactor decision tree.
gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:00:54