#include <DiscreteMarginals.h>
|
DiscreteBayesTree::shared_ptr | bayesTree_ |
|
A class for computing marginals of variables in a DiscreteFactorGraph
◆ DiscreteMarginals()
Construct a marginals class.
- Parameters
-
graph | The factor graph defining the full joint distribution 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
◆ operator()()
Compute the marginal of a single variable
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/gtsam-jlblanco-docs/checkouts/latest/gtsam/discrete/DiscreteMarginals.h