Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
testDecisionTree.cpp File Reference
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/serializationTestHelpers.h>
#include <gtsam/discrete/DecisionTree-inl.h>
#include <gtsam/discrete/Signature.h>
#include <iomanip>
Include dependency graph for testDecisionTree.cpp:

Go to the source code of this file.

Classes

struct  Crazy
 
struct  CrazyDecisionTree
 
struct  DT
 
struct  Ring
 
struct  gtsam::traits< CrazyDecisionTree >
 
struct  gtsam::traits< DT >
 

Namespaces

 gtsam
 traits
 

Macros

#define DISABLE_DOT
 
#define DOT(x)   (dot(x, #x))
 

Typedefs

typedef DecisionTree< Label, bool > LabelBoolTree
 
typedef DecisionTree< string, bool > StringBoolTree
 

Enumerations

enum  Label {
  U, V, X, Y,
  Z
}
 

Functions

bool bool_of_int (const int &y)
 
template<typename T >
void dot (const T &f, const string &filename)
 
int main ()
 
 TEST (DecisionTree, example)
 
 TEST (DecisionTree, ConvertValuesOnly)
 
 TEST (DecisionTree, ConvertBoth)
 
 TEST (DecisionTree, Compose)
 
 TEST (DecisionTree, Containers)
 
 TEST (DecisionTree, NrAssignments)
 
 TEST (DecisionTree, visit)
 
 TEST (DecisionTree, visitWith)
 
 TEST (DecisionTree, VisitWithPruned)
 
 TEST (DecisionTree, fold)
 
 TEST (DecisionTree, labels)
 
 TEST (DecisionTree, unzip)
 
 TEST (DecisionTree, threshold)
 
 TEST (DecisionTree, ApplyWithAssignment)
 

Macro Definition Documentation

◆ DISABLE_DOT

#define DISABLE_DOT

Definition at line 22 of file testDecisionTree.cpp.

◆ DOT

#define DOT (   x)    (dot(x, #x))

Definition at line 43 of file testDecisionTree.cpp.

Typedef Documentation

◆ LabelBoolTree

Definition at line 252 of file testDecisionTree.cpp.

◆ StringBoolTree

typedef DecisionTree<string, bool> StringBoolTree

Definition at line 230 of file testDecisionTree.cpp.

Enumeration Type Documentation

◆ Label

enum Label
Enumerator

Definition at line 251 of file testDecisionTree.cpp.

Function Documentation

◆ bool_of_int()

bool bool_of_int ( const int y)

Definition at line 230 of file testDecisionTree.cpp.

◆ dot()

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

Definition at line 37 of file testDecisionTree.cpp.

◆ main()

int main ( void  )

Definition at line 535 of file testDecisionTree.cpp.

◆ TEST() [1/14]

TEST ( DecisionTree  ,
example   
)

Definition at line 123 of file testDecisionTree.cpp.

◆ TEST() [2/14]

TEST ( DecisionTree  ,
ConvertValuesOnly   
)

Definition at line 233 of file testDecisionTree.cpp.

◆ TEST() [3/14]

TEST ( DecisionTree  ,
ConvertBoth   
)

Definition at line 254 of file testDecisionTree.cpp.

◆ TEST() [4/14]

TEST ( DecisionTree  ,
Compose   
)

Definition at line 281 of file testDecisionTree.cpp.

◆ TEST() [5/14]

TEST ( DecisionTree  ,
Containers   
)

Definition at line 307 of file testDecisionTree.cpp.

◆ TEST() [6/14]

TEST ( DecisionTree  ,
NrAssignments   
)

Definition at line 329 of file testDecisionTree.cpp.

◆ TEST() [7/14]

TEST ( DecisionTree  ,
visit   
)

Definition at line 372 of file testDecisionTree.cpp.

◆ TEST() [8/14]

TEST ( DecisionTree  ,
visitWith   
)

Definition at line 384 of file testDecisionTree.cpp.

◆ TEST() [9/14]

TEST ( DecisionTree  ,
VisitWithPruned   
)

Definition at line 396 of file testDecisionTree.cpp.

◆ TEST() [10/14]

TEST ( DecisionTree  ,
fold   
)

Definition at line 434 of file testDecisionTree.cpp.

◆ TEST() [11/14]

TEST ( DecisionTree  ,
labels   
)

Definition at line 445 of file testDecisionTree.cpp.

◆ TEST() [12/14]

TEST ( DecisionTree  ,
unzip   
)

Definition at line 455 of file testDecisionTree.cpp.

◆ TEST() [13/14]

TEST ( DecisionTree  ,
threshold   
)

Definition at line 476 of file testDecisionTree.cpp.

◆ TEST() [14/14]

TEST ( DecisionTree  ,
ApplyWithAssignment   
)

Definition at line 499 of file testDecisionTree.cpp.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:55