Unit tests for HybridBayesNet. More...
#include <gtsam/base/Testable.h>
#include <gtsam/discrete/DiscreteFactor.h>
#include <gtsam/hybrid/HybridBayesNet.h>
#include <gtsam/hybrid/HybridBayesTree.h>
#include <gtsam/hybrid/HybridConditional.h>
#include <gtsam/hybrid/HybridGaussianFactorGraph.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include "Switching.h"
#include "TinyHybridExample.h"
#include <CppUnitLite/TestHarness.h>
#include <memory>
Go to the source code of this file.
Namespaces | |
different_sigmas | |
Functions | |
static const DiscreteKey | Asia (asiaKey, 2) |
int | main () |
TEST (HybridBayesNet, Add) | |
TEST (HybridBayesNet, Choose) | |
TEST (HybridBayesNet, Creation) | |
TEST (HybridBayesNet, ErrorTreeWithConditional) | |
TEST (HybridBayesNet, evaluateHybrid) | |
TEST (HybridBayesNet, EvaluatePureDiscrete) | |
TEST (HybridBayesNet, Optimize) | |
TEST (HybridBayesNet, OptimizeAssignment) | |
TEST (HybridBayesNet, Prune) | |
TEST (HybridBayesNet, Pruning) | |
TEST (HybridBayesNet, Sampling) | |
TEST (HybridBayesNet, Tiny) | |
TEST (HybridBayesNet, UpdateDiscreteConditionals) | |
Variables | |
static const Key | asiaKey = 0 |
const HybridBayesNet | different_sigmas::bayesNet {wrap(gc), wrap(hgc), wrap(prior)} |
const auto | different_sigmas::gc |
const auto | different_sigmas::hgc = std::make_shared<HybridGaussianConditional>(Asia, X(1), parms) |
const std::vector< std::pair< Vector, double > > | different_sigmas::parms |
const auto | different_sigmas::prior = std::make_shared<DiscreteConditional>(Asia, "99/1") |
HybridValues | different_sigmas::values {{{X(0), Vector1(-6)}, {X(1), Vector1(1)}}, {{asiaKey, 0}}} |
auto | different_sigmas::wrap |
|
static |
int main | ( | ) |
Definition at line 620 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Add | |||
) |
Definition at line 60 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Choose | |||
) |
Definition at line 261 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Creation | |||
) |
Definition at line 49 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
ErrorTreeWithConditional | |||
) |
Definition at line 571 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
evaluateHybrid | |||
) |
Definition at line 250 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
EvaluatePureDiscrete | |||
) |
Definition at line 71 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Optimize | |||
) |
Definition at line 319 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
OptimizeAssignment | |||
) |
Definition at line 290 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Prune | |||
) |
Definition at line 426 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Pruning | |||
) |
Definition at line 345 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Sampling | |||
) |
Definition at line 502 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
Tiny | |||
) |
Definition at line 122 of file testHybridBayesNet.cpp.
TEST | ( | HybridBayesNet | , |
UpdateDiscreteConditionals | |||
) |
Definition at line 444 of file testHybridBayesNet.cpp.
|
static |
Definition at line 44 of file testHybridBayesNet.cpp.