Classes | Namespaces | Macros | Typedefs | Functions | Variables
testAlgebraicDecisionTree.cpp File Reference
#include <gtsam/base/Testable.h>
#include <gtsam/discrete/DiscreteKey.h>
#include <gtsam/discrete/DiscreteValues.h>
#include <CppUnitLite/TestHarness.h>
#include <gtsam/discrete/AlgebraicDecisionTree.h>
#include <gtsam/discrete/DecisionTree-inl.h>
#include <gtsam/discrete/Signature.h>
Include dependency graph for testAlgebraicDecisionTree.cpp:

Go to the source code of this file.

Classes

struct  gtsam::traits< ADT >
 

Namespaces

 asiaCPTs
 
 gtsam
 traits
 

Macros

#define DISABLE_DOT
 

Typedefs

typedef AlgebraicDecisionTree< KeyADT
 

Functions

DiscreteKey asiaCPTs::A (0, 2)
 
double add_ (const double &a, const double &b)
 
DiscreteKey asiaCPTs::B (4, 2)
 
ADT create (const Signature &signature)
 
DiscreteKey asiaCPTs::D (7, 2)
 
template<typename T >
void dot (const T &f, const string &filename)
 
DiscreteKey asiaCPTs::E (5, 2)
 
ADT exampleADT ()
 Example ADT from 0 to 11. More...
 
DiscreteKey asiaCPTs::L (3, 2)
 
int main ()
 
double mul (const double &a, const double &b)
 
void printCounts (const string &s)
 
void resetCounts ()
 
DiscreteKey asiaCPTs::S (1, 2)
 
DiscreteKey asiaCPTs::T (2, 2)
 
 TEST (ADT, arithmetic)
 
 TEST (ADT, combine)
 
 TEST (ADT, constructor)
 
 TEST (ADT, conversion)
 
 TEST (ADT, div)
 
 TEST (ADT, elimination)
 
 TEST (ADT, equality_noparser)
 
 TEST (ADT, equality_parser)
 
 TEST (ADT, example3)
 
 TEST (ADT, factor_graph)
 
 TEST (ADT, inference)
 
 TEST (ADT, joint)
 
 TEST (ADT, Max)
 
 TEST (ADT, Min)
 
 TEST (ADT, Normalize)
 
 TEST (ADT, Sum)
 
 TEST (ADT, zero)
 
DiscreteKey asiaCPTs::X (6, 2)
 

Variables

size_t adds = 0
 
size_t muls = 0
 
ADT asiaCPTs::pA = create(A % "99/1")
 
ADT asiaCPTs::pB = create(B | S = "70/30 40/60")
 
ADT asiaCPTs::pD = create((D | E, B) = "9/1 2/8 3/7 1/9")
 
ADT asiaCPTs::pE = create((E | T, L) = "F T T T")
 
ADT asiaCPTs::pL = create(L | S = "99/1 90/10")
 
ADT asiaCPTs::pS = create(S % "50/50")
 
ADT asiaCPTs::pT = create(T | A = "99/1 95/5")
 
ADT asiaCPTs::pX = create(X | E = "95/5 2/98")
 

Macro Definition Documentation

◆ DISABLE_DOT

#define DISABLE_DOT

Definition at line 40 of file testAlgebraicDecisionTree.cpp.

Typedef Documentation

◆ ADT

Definition at line 32 of file testAlgebraicDecisionTree.cpp.

Function Documentation

◆ add_()

double add_ ( const double &  a,
const double &  b 
)

Definition at line 98 of file testAlgebraicDecisionTree.cpp.

◆ create()

ADT create ( const Signature signature)

Convert Signature into CPT

Definition at line 136 of file testAlgebraicDecisionTree.cpp.

◆ dot()

template<typename T >
void dot ( const T f,
const string &  filename 
)

Definition at line 43 of file testAlgebraicDecisionTree.cpp.

◆ exampleADT()

ADT exampleADT ( )

Example ADT from 0 to 11.

Definition at line 544 of file testAlgebraicDecisionTree.cpp.

◆ main()

int main ( )

Definition at line 593 of file testAlgebraicDecisionTree.cpp.

◆ mul()

double mul ( const double &  a,
const double &  b 
)

Definition at line 94 of file testAlgebraicDecisionTree.cpp.

◆ printCounts()

void printCounts ( const string &  s)

Definition at line 87 of file testAlgebraicDecisionTree.cpp.

◆ resetCounts()

void resetCounts ( )

Definition at line 83 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [1/17]

TEST ( ADT  ,
arithmetic   
)

Definition at line 51 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [2/17]

TEST ( ADT  ,
combine   
)

Definition at line 195 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [3/17]

TEST ( ADT  ,
constructor   
)

Definition at line 403 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [4/17]

TEST ( ADT  ,
conversion   
)

Definition at line 445 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [5/17]

TEST ( ADT  ,
div   
)

Definition at line 510 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [6/17]

TEST ( ADT  ,
elimination   
)

Definition at line 472 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [7/17]

TEST ( ADT  ,
equality_noparser   
)

Definition at line 367 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [8/17]

TEST ( ADT  ,
equality_parser   
)

Definition at line 386 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [9/17]

TEST ( ADT  ,
example3   
)

Definition at line 105 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [10/17]

TEST ( ADT  ,
factor_graph   
)

Definition at line 270 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [11/17]

TEST ( ADT  ,
inference   
)

Definition at line 213 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [12/17]

TEST ( ADT  ,
joint   
)

Definition at line 165 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [13/17]

TEST ( ADT  ,
Max   
)

Definition at line 586 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [14/17]

TEST ( ADT  ,
Min   
)

Definition at line 578 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [15/17]

TEST ( ADT  ,
Normalize   
)

Definition at line 562 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [16/17]

TEST ( ADT  ,
Sum   
)

Definition at line 551 of file testAlgebraicDecisionTree.cpp.

◆ TEST() [17/17]

TEST ( ADT  ,
zero   
)

Definition at line 524 of file testAlgebraicDecisionTree.cpp.

Variable Documentation

◆ adds

size_t adds = 0

Definition at line 82 of file testAlgebraicDecisionTree.cpp.

◆ muls

size_t muls = 0

Definition at line 82 of file testAlgebraicDecisionTree.cpp.



gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:24