gtsam/cpp/GaussianBayesTree.h

35 lines
785 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"
2009-12-10 06:02:50 +08:00
#include "GaussianBayesTree.h"
namespace gtsam {
typedef BayesTree<GaussianConditional> GaussianBayesTree;
2009-12-10 06:02:50 +08:00
// recursively optimize this conditional and all subtrees
void optimize(GaussianBayesTree::sharedClique clique, VectorConfig& result);
// optimize the BayesTree, starting from the root
VectorConfig optimize(GaussianBayesTree& bayesTree);
}/// namespace gtsam