A class for computing marginals of variables in a DiscreteFactorGraph.
|
DiscreteBayesTree::shared_ptr | bayesTree_ |
|
◆ DiscreteMarginals()
Construct a marginals class.
- Parameters
-
graph | The factor graph defining the full joint density on all variables. |
◆ marginalProbabilities()
Vector gtsam::DiscreteMarginals::marginalProbabilities |
( |
const DiscreteKey & |
key | ) |
const |
|
inline |
Compute the marginal of a single variable.
- Parameters
-
key | DiscreteKey of the Variable |
- Returns
- Vector of marginal probabilities
The documentation for this class was generated from the following file: