55 return marginalFactor;
68 Vector vResult(key.second);
71 values[key.first] =
state;
const gtsam::Symbol key('X', 0)
std::pair< DiscreteConditional::shared_ptr, DecisionTreeFactor::shared_ptr > EliminateDiscrete(const DiscreteFactorGraph &factors, const Ordering &frontalKeys)
Main elimination function for DiscreteFactorGraph.
NonlinearFactorGraph graph
DiscreteFactor::shared_ptr operator()(Key variable) const
DiscreteMarginals(const DiscreteFactorGraph &graph)
Vector marginalProbabilities(const DiscreteKey &key) const
Discrete Bayes Tree, the result of eliminating a DiscreteJunctionTree.
std::shared_ptr< DiscreteFactor > shared_ptr
shared_ptr to this class
typedef and functions to augment Eigen's VectorXd
std::pair< Key, size_t > DiscreteKey
std::shared_ptr< BayesTreeType > eliminateMultifrontal(OptionalOrderingType orderingType={}, const Eliminate &function=EliminationTraitsType::DefaultEliminate, OptionalVariableIndex variableIndex={}) const
std::shared_ptr< This > shared_ptr
std::uint64_t Key
Integer nonlinear key type.
DiscreteBayesTree::shared_ptr bayesTree_