#include <DiscreteMarginals.h>
A class for computing marginals of variables in a DiscreteFactorGraph
Definition at line 32 of file DiscreteMarginals.h.
Construct a marginals class.
- Parameters
-
graph | The factor graph defining the full joint density on all variables. |
Definition at line 43 of file DiscreteMarginals.h.
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 59 of file DiscreteMarginals.h.
The documentation for this class was generated from the following file: