gtsam/cpp/GaussianBayesTree.h

34 lines
767 B
C
Raw Normal View History

/**
* @file GaussianBayesTree
* @brief Bayes Tree is a tree of cliques of a Bayes Chain
* @author Michael Kaess
*/
// \callgraph
#pragma once
#include <map>
#include <list>
#include <vector>
#include <boost/serialization/map.hpp>
#include <boost/serialization/list.hpp>
#include <stdexcept>
#include "Testable.h"
#include "BayesTree.h"
2009-12-10 04:49:04 +08:00
#include "VectorConfig.h"
#include "GaussianConditional.h"
namespace gtsam {
typedef BayesTree<GaussianConditional> GaussianBayesTree;
2009-12-10 06:02:50 +08:00
// recursively optimize this conditional and all subtrees
2009-12-10 06:15:38 +08:00
void optimize(const GaussianBayesTree::sharedClique& clique, VectorConfig& result);
2009-12-10 06:02:50 +08:00
// optimize the BayesTree, starting from the root
2009-12-10 06:15:38 +08:00
VectorConfig optimize(const GaussianBayesTree& bayesTree);
2009-12-10 06:02:50 +08:00
}/// namespace gtsam