Namespaces | Functions | Variables
testHybridBayesNet.cpp File Reference

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>
Include dependency graph for testHybridBayesNet.cpp:

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
 

Detailed Description

Unit tests for HybridBayesNet.

Author
Varun Agrawal
Fan Jiang
Frank Dellaert
Date
December 2021

Definition in file testHybridBayesNet.cpp.

Function Documentation

◆ Asia()

static const DiscreteKey Asia ( asiaKey  ,
 
)
static

◆ main()

int main ( )

Definition at line 620 of file testHybridBayesNet.cpp.

◆ TEST() [1/13]

TEST ( HybridBayesNet  ,
Add   
)

Definition at line 60 of file testHybridBayesNet.cpp.

◆ TEST() [2/13]

TEST ( HybridBayesNet  ,
Choose   
)

Definition at line 261 of file testHybridBayesNet.cpp.

◆ TEST() [3/13]

TEST ( HybridBayesNet  ,
Creation   
)

Definition at line 49 of file testHybridBayesNet.cpp.

◆ TEST() [4/13]

TEST ( HybridBayesNet  ,
ErrorTreeWithConditional   
)

Definition at line 571 of file testHybridBayesNet.cpp.

◆ TEST() [5/13]

TEST ( HybridBayesNet  ,
evaluateHybrid   
)

Definition at line 250 of file testHybridBayesNet.cpp.

◆ TEST() [6/13]

TEST ( HybridBayesNet  ,
EvaluatePureDiscrete   
)

Definition at line 71 of file testHybridBayesNet.cpp.

◆ TEST() [7/13]

TEST ( HybridBayesNet  ,
Optimize   
)

Definition at line 319 of file testHybridBayesNet.cpp.

◆ TEST() [8/13]

TEST ( HybridBayesNet  ,
OptimizeAssignment   
)

Definition at line 290 of file testHybridBayesNet.cpp.

◆ TEST() [9/13]

TEST ( HybridBayesNet  ,
Prune   
)

Definition at line 426 of file testHybridBayesNet.cpp.

◆ TEST() [10/13]

TEST ( HybridBayesNet  ,
Pruning   
)

Definition at line 345 of file testHybridBayesNet.cpp.

◆ TEST() [11/13]

TEST ( HybridBayesNet  ,
Sampling   
)

Definition at line 502 of file testHybridBayesNet.cpp.

◆ TEST() [12/13]

TEST ( HybridBayesNet  ,
Tiny   
)

Definition at line 122 of file testHybridBayesNet.cpp.

◆ TEST() [13/13]

TEST ( HybridBayesNet  ,
UpdateDiscreteConditionals   
)

Definition at line 444 of file testHybridBayesNet.cpp.

Variable Documentation

◆ asiaKey

const Key asiaKey = 0
static

Definition at line 44 of file testHybridBayesNet.cpp.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:53