GaussianBayesTree.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
20 #pragma once
21 
26 
27 namespace gtsam {
28 
29  // Forward declarations
30  class GaussianConditional;
31  class VectorValues;
32 
33  /* ************************************************************************* */
35  class GTSAM_EXPORT GaussianBayesTreeClique :
36  public BayesTreeCliqueBase<GaussianBayesTreeClique, GaussianFactorGraph>
37  {
38  public:
41  typedef boost::shared_ptr<This> shared_ptr;
42  typedef boost::weak_ptr<This> weak_ptr;
45  GaussianBayesTreeClique(const boost::shared_ptr<GaussianConditional>& conditional) : Base(conditional) {}
46  };
47 
48  /* ************************************************************************* */
50  class GTSAM_EXPORT GaussianBayesTree :
51  public BayesTree<GaussianBayesTreeClique>
52  {
53  private:
55 
56  public:
58  typedef boost::shared_ptr<This> shared_ptr;
59 
62 
64  bool equals(const This& other, double tol = 1e-9) const;
65 
67  VectorValues optimize() const;
68 
94  VectorValues optimizeGradientSearch() const;
95 
101  VectorValues gradient(const VectorValues& x0) const;
102 
108  VectorValues gradientAtZero() const;
109 
111  double error(const VectorValues& x) const;
112 
118  double determinant() const;
119 
125  double logDeterminant() const;
126 
129  Matrix marginalCovariance(Key key) const;
130  };
131 
133  template<>
134  struct traits<GaussianBayesTree> : public Testable<GaussianBayesTree> {
135  };
136 
137 } //\ namespace gtsam
BayesTreeCliqueBase< GaussianBayesTreeClique, GaussianFactorGraph > Base
GaussianBayesTreeClique This
void determinant(const MatrixType &m)
Definition: determinant.cpp:14
double logDeterminant(const typename BAYESTREE::sharedClique &clique)
Eigen::MatrixXd Matrix
Definition: base/Matrix.h:43
boost::weak_ptr< This > weak_ptr
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
GaussianBayesTreeClique(const boost::shared_ptr< GaussianConditional > &conditional)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Linear Factor Graph where all factors are Gaussians.
BayesTree< GaussianBayesTreeClique > Base
Bayes Tree is a tree of cliques of a Bayes Chain.
static Symbol x0('x', 0)
traits
Definition: chartTesting.h:28
Chordal Bayes Net, the result of eliminating a factor graph.
static double error
Definition: testRot3.cpp:39
const G double tol
Definition: Group.h:83
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Base class for cliques of a BayesTree.
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:61
boost::shared_ptr< This > shared_ptr
boost::shared_ptr< This > shared_ptr


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:05