gtsam/cpp/GaussianBayesNet.h

47 lines
960 B
C
Raw Normal View History

2009-08-22 06:23:24 +08:00
/**
* @file GaussianBayesNet.h
2009-08-22 06:23:24 +08:00
* @brief Chordal Bayes Net, the result of eliminating a factor graph
* @brief GaussianBayesNet
2009-08-22 06:23:24 +08:00
* @author Frank Dellaert
*/
// \callgraph
#pragma once
#include <list>
#include "ConditionalGaussian.h"
#include "BayesNet.h"
2009-08-22 06:23:24 +08:00
namespace gtsam {
/** Chordal Bayes Net, the result of eliminating a factor graph */
class GaussianBayesNet : public BayesNet<ConditionalGaussian>
2009-08-22 06:23:24 +08:00
{
public:
typedef boost::shared_ptr<GaussianBayesNet> shared_ptr;
2009-08-22 06:23:24 +08:00
/** Construct an empty net */
GaussianBayesNet() {}
2009-08-22 06:23:24 +08:00
/** Copy Constructor */
// GaussianBayesNet(const GaussianBayesNet& cbn_in) :
// keys_(cbn_in.keys_), nodes_(cbn_in.nodes_) {}
2009-08-22 06:23:24 +08:00
/** Destructor */
virtual ~GaussianBayesNet() {}
2009-08-22 06:23:24 +08:00
/**
* optimize, i.e. return x = inv(R)*d
*/
boost::shared_ptr<VectorConfig> optimize() const;
2009-08-22 06:23:24 +08:00
/**
* Return (dense) upper-triangular matrix representation
*/
std::pair<Matrix,Vector> matrix() const;
};
} /// namespace gtsam