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, Divide)
 
 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 240 of file testDecisionTreeFactor.cpp.

Function Documentation

◆ create()

DecisionTreeFactor create ( const Signature signature)

Convert Signature into CPT

Definition at line 34 of file testDecisionTreeFactor.cpp.

◆ main()

int main ( )

Definition at line 377 of file testDecisionTreeFactor.cpp.

◆ maybeSaveDotFile()

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

Definition at line 242 of file testDecisionTreeFactor.cpp.

◆ TEST() [1/14]

TEST ( DecisionTreeFactor  ,
ComputeThreshold   
)

Definition at line 188 of file testDecisionTreeFactor.cpp.

◆ TEST() [2/14]

TEST ( DecisionTreeFactor  ,
constructors   
)

Definition at line 52 of file testDecisionTreeFactor.cpp.

◆ TEST() [3/14]

TEST ( DecisionTreeFactor  ,
ConstructorsMatch   
)

Definition at line 40 of file testDecisionTreeFactor.cpp.

◆ TEST() [4/14]

TEST ( DecisionTreeFactor  ,
Divide   
)

Definition at line 115 of file testDecisionTreeFactor.cpp.

◆ TEST() [5/14]

TEST ( DecisionTreeFactor  ,
DotWithNames   
)

Definition at line 295 of file testDecisionTreeFactor.cpp.

◆ TEST() [6/14]

TEST ( DecisionTreeFactor  ,
enumerate   
)

Definition at line 157 of file testDecisionTreeFactor.cpp.

◆ TEST() [7/14]

TEST ( DecisionTreeFactor  ,
Error   
)

Definition at line 79 of file testDecisionTreeFactor.cpp.

◆ TEST() [8/14]

TEST ( DecisionTreeFactor  ,
htmlWithValueFormatter   
)

Definition at line 350 of file testDecisionTreeFactor.cpp.

◆ TEST() [9/14]

TEST ( DecisionTreeFactor  ,
joint   
)

Definition at line 252 of file testDecisionTreeFactor.cpp.

◆ TEST() [10/14]

TEST ( DecisionTreeFactor  ,
markdown   
)

Definition at line 310 of file testDecisionTreeFactor.cpp.

◆ TEST() [11/14]

TEST ( DecisionTreeFactor  ,
markdownWithValueFormatter   
)

Definition at line 329 of file testDecisionTreeFactor.cpp.

◆ TEST() [12/14]

TEST ( DecisionTreeFactor  ,
multiplication   
)

Definition at line 97 of file testDecisionTreeFactor.cpp.

◆ TEST() [13/14]

TEST ( DecisionTreeFactor  ,
Prune   
)

Definition at line 211 of file testDecisionTreeFactor.cpp.

◆ TEST() [14/14]

TEST ( DecisionTreeFactor  ,
sum_max   
)

Definition at line 136 of file testDecisionTreeFactor.cpp.



gtsam
Author(s):
autogenerated on Tue Jan 7 2025 04:09:42