Public Member Functions | Protected Attributes | List of all members
gtsam::DiscreteMarginals Class Reference

#include <DiscreteMarginals.h>

Public Member Functions

 DiscreteMarginals (const DiscreteFactorGraph &graph)
 
Vector marginalProbabilities (const DiscreteKey &key) const
 
DiscreteFactor::shared_ptr operator() (Key variable) const
 

Protected Attributes

DiscreteBayesTree::shared_ptr bayesTree_
 

Detailed Description

A class for computing marginals of variables in a DiscreteFactorGraph

Definition at line 32 of file DiscreteMarginals.h.

Constructor & Destructor Documentation

gtsam::DiscreteMarginals::DiscreteMarginals ( const DiscreteFactorGraph graph)
inline

Construct a marginals class.

Parameters
graphThe factor graph defining the full joint density on all variables.

Definition at line 43 of file DiscreteMarginals.h.

Member Function Documentation

Vector gtsam::DiscreteMarginals::marginalProbabilities ( const DiscreteKey key) const
inline

Compute the marginal of a single variable

Parameters
keyDiscreteKey of the Variable
Returns
Vector of marginal probabilities

Definition at line 59 of file DiscreteMarginals.h.

DiscreteFactor::shared_ptr gtsam::DiscreteMarginals::operator() ( Key  variable) const
inline

Compute the marginal of a single variable

Definition at line 48 of file DiscreteMarginals.h.

Member Data Documentation

DiscreteBayesTree::shared_ptr gtsam::DiscreteMarginals::bayesTree_
protected

Definition at line 36 of file DiscreteMarginals.h.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:08