Go to the documentation of this file.
27 using namespace gtsam;
38 bool GaussianBayesNet::equals(
const This& bn,
double tol)
const
40 return Base::equals(bn,
tol);
57 solution.
insert((*it)->solve(solution));
69 std::mt19937_64*
rng)
const {
91 gttic(GaussianBayesTree_optimizeGradientSearch);
108 for (
const auto&
gc : *
this) {
109 if (
gc) sum +=
gc->error(
x);
117 for (
const auto&
gc : *
this) {
118 if (
gc) sum +=
gc->logProbability(
x);
125 return exp(logProbability(
x));
154 cg->solveTransposeInPlace(gy);
194 for (
Key key : cg->frontals()) {
214 const auto defaultOrdering = this->
ordering();
215 return matrix(defaultOrdering);
240 logDet += cg->logDeterminant();
246 double GaussianBayesNet::negLogConstant()
const {
259 double negLogNormConst = 0.0;
261 negLogNormConst += cg->negLogConstant();
263 return negLogNormConst;
Linear Factor Graph where all factors are Gaussians.
int optimize(const SfmData &db, const NonlinearFactorGraph &graph, const Values &initial, bool separateCalibration=false)
iterator insert(const std::pair< Key, Vector > &key_value)
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
std::shared_ptr< ConditionalType > sharedConditional
std::pair< Matrix, Vector > jacobian(const Ordering &ordering) const
Chordal Bayes Net, the result of eliminating a factor graph.
const EIGEN_DEVICE_FUNC ExpReturnType exp() const
void determinant(const MatrixType &m)
VectorValues gradient(const VectorValues &x0) const
virtual VectorValues gradientAtZero() const
static std::mt19937_64 kRandomNumberGenerator(42)
double logDeterminant(const typename BAYESTREE::sharedClique &clique)
static enum @1096 ordering
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
const gtsam::Symbol key('X', 0)
VectorValues optimizeGradientSearch() const
std::reverse_iterator< Iterator > make_reverse_iterator(Iterator i)
void insert(Key j, const Value &val)
static const EIGEN_DEPRECATED end_t end
std::uint64_t Key
Integer nonlinear key type.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:33