Namespaces | Macros | Functions
testDecisionTreeFactor.cpp File Reference
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/serializationTestHelpers.h>
#include <gtsam/discrete/DecisionTreeFactor.h>
#include <gtsam/discrete/DiscreteDistribution.h>
#include <gtsam/discrete/DiscreteFactor.h>
#include <gtsam/discrete/Signature.h>
#include <gtsam/inference/Key.h>
#include <gtsam/inference/Ordering.h>
Include dependency graph for testDecisionTreeFactor.cpp:

Go to the source code of this file.

Namespaces

 pruning_fixture
 

Macros

#define DISABLE_DOT
 

Functions

DiscreteKey pruning_fixture::A (1, 2)
 
DiscreteKey pruning_fixture::B (2, 2)
 
DiscreteKey pruning_fixture::C (3, 2)
 
DecisionTreeFactor create (const Signature &signature)
 
DiscreteKey pruning_fixture::D (4, 2)
 
DecisionTreeFactor pruning_fixture::f (A &B &C, "1 5 3 7 2 6 4 8")
 
DecisionTreeFactor pruning_fixture::factor (D &C &B &A, "0.0 0.0 0.0 0.60658897 0.61241912 0.61241969 0.61247685 0.61247742 0.0 " "0.0 0.0 0.99995287 1.0 1.0 1.0 1.0")
 
int main ()
 
void maybeSaveDotFile (const DecisionTreeFactor &f, const string &filename)
 
 TEST (DecisionTreeFactor, ComputeThreshold)
 
 TEST (DecisionTreeFactor, constructors)
 
 TEST (DecisionTreeFactor, ConstructorsMatch)
 
 TEST (DecisionTreeFactor, DotWithNames)
 
 TEST (DecisionTreeFactor, enumerate)
 
 TEST (DecisionTreeFactor, Error)
 
 TEST (DecisionTreeFactor, htmlWithValueFormatter)
 
 TEST (DecisionTreeFactor, joint)
 
 TEST (DecisionTreeFactor, markdown)
 
 TEST (DecisionTreeFactor, markdownWithValueFormatter)
 
 TEST (DecisionTreeFactor, multiplication)
 
 TEST (DecisionTreeFactor, Prune)
 
 TEST (DecisionTreeFactor, sum_max)
 

Macro Definition Documentation

◆ DISABLE_DOT

#define DISABLE_DOT

Definition at line 210 of file testDecisionTreeFactor.cpp.

Function Documentation

◆ create()

DecisionTreeFactor create ( const Signature signature)

Convert Signature into CPT

Definition at line 221 of file testDecisionTreeFactor.cpp.

◆ main()

int main ( )

Definition at line 353 of file testDecisionTreeFactor.cpp.

◆ maybeSaveDotFile()

void maybeSaveDotFile ( const DecisionTreeFactor f,
const string &  filename 
)

Definition at line 212 of file testDecisionTreeFactor.cpp.

◆ TEST() [1/13]

TEST ( DecisionTreeFactor  ,
ComputeThreshold   
)

Definition at line 158 of file testDecisionTreeFactor.cpp.

◆ TEST() [2/13]

TEST ( DecisionTreeFactor  ,
constructors   
)

Definition at line 46 of file testDecisionTreeFactor.cpp.

◆ TEST() [3/13]

TEST ( DecisionTreeFactor  ,
ConstructorsMatch   
)

Definition at line 34 of file testDecisionTreeFactor.cpp.

◆ TEST() [4/13]

TEST ( DecisionTreeFactor  ,
DotWithNames   
)

Definition at line 271 of file testDecisionTreeFactor.cpp.

◆ TEST() [5/13]

TEST ( DecisionTreeFactor  ,
enumerate   
)

Definition at line 127 of file testDecisionTreeFactor.cpp.

◆ TEST() [6/13]

TEST ( DecisionTreeFactor  ,
Error   
)

Definition at line 73 of file testDecisionTreeFactor.cpp.

◆ TEST() [7/13]

TEST ( DecisionTreeFactor  ,
htmlWithValueFormatter   
)

Definition at line 326 of file testDecisionTreeFactor.cpp.

◆ TEST() [8/13]

TEST ( DecisionTreeFactor  ,
joint   
)

Definition at line 228 of file testDecisionTreeFactor.cpp.

◆ TEST() [9/13]

TEST ( DecisionTreeFactor  ,
markdown   
)

Definition at line 286 of file testDecisionTreeFactor.cpp.

◆ TEST() [10/13]

TEST ( DecisionTreeFactor  ,
markdownWithValueFormatter   
)

Definition at line 305 of file testDecisionTreeFactor.cpp.

◆ TEST() [11/13]

TEST ( DecisionTreeFactor  ,
multiplication   
)

Definition at line 91 of file testDecisionTreeFactor.cpp.

◆ TEST() [12/13]

TEST ( DecisionTreeFactor  ,
Prune   
)

Definition at line 181 of file testDecisionTreeFactor.cpp.

◆ TEST() [13/13]

TEST ( DecisionTreeFactor  ,
sum_max   
)

Definition at line 109 of file testDecisionTreeFactor.cpp.



gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:35