#include <DiscreteMarginals.h>
A class for computing marginals of variables in a DiscreteFactorGraph
Definition at line 33 of file DiscreteMarginals.h.
◆ DiscreteMarginals() [1/2]
gtsam::DiscreteMarginals::DiscreteMarginals |
( |
| ) |
|
|
inline |
◆ DiscreteMarginals() [2/2]
Construct a marginals class.
- Parameters
-
graph | The factor graph defining the full joint distribution on all variables. |
Definition at line 46 of file DiscreteMarginals.h.
◆ 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
Definition at line 62 of file DiscreteMarginals.h.
◆ operator()()
◆ bayesTree_
The documentation for this class was generated from the following file: