Classes | Namespaces | Macros | Typedefs | Functions | Variables
testAlgebraicDecisionTree.cpp File Reference
#include <gtsam/base/Testable.h>
#include <gtsam/discrete/DiscreteKey.h>
#include <gtsam/discrete/AlgebraicDecisionTree.h>
#include <gtsam/discrete/DecisionTree-inl.h>
#include <boost/tokenizer.hpp>
#include <boost/assign/std/map.hpp>
#include <boost/assign/std/vector.hpp>
#include <CppUnitLite/TestHarness.h>
#include <gtsam/discrete/Signature.h>
#include <gtsam/base/timing.h>
Include dependency graph for testAlgebraicDecisionTree.cpp:

Go to the source code of this file.

Classes

struct  gtsam::traits< ADT >
 

Namespaces

 gtsam
 traits
 

Macros

#define DISABLE_DOT
 
#define DISABLE_TIMING
 

Typedefs

typedef AlgebraicDecisionTree< KeyADT
 

Functions

double add_ (const double &a, const double &b)
 
ADT create (const Signature &signature)
 
template<typename T >
void dot (const T &f, const string &filename)
 
int main ()
 
double mul (const double &a, const double &b)
 
void printCounts (const string &s)
 
void resetCounts ()
 
 TEST (ADT, example3)
 
 TEST (ADT, joint)
 
 TEST (ADT, inference)
 
 TEST (ADT, factor_graph)
 
 TEST (ADT, equality_noparser)
 
 TEST (ADT, equality_parser)
 
 TEST (ADT, constructor)
 
 TEST (ADT, conversion)
 
 TEST (ADT, elimination)
 
 TEST (ADT, div)
 
 TEST (ADT, zero)
 

Variables

size_t adds = 0
 
double elapsed
 
size_t muls = 0
 

Macro Definition Documentation

#define DISABLE_DOT

Definition at line 47 of file testAlgebraicDecisionTree.cpp.

#define DISABLE_TIMING

Definition at line 25 of file testAlgebraicDecisionTree.cpp.

Typedef Documentation

Definition at line 40 of file testAlgebraicDecisionTree.cpp.

Function Documentation

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

Definition at line 94 of file testAlgebraicDecisionTree.cpp.

ADT create ( const Signature signature)

Convert Signature into CPT

Definition at line 134 of file testAlgebraicDecisionTree.cpp.

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

Definition at line 50 of file testAlgebraicDecisionTree.cpp.

int main ( void  )

Definition at line 592 of file testAlgebraicDecisionTree.cpp.

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

Definition at line 90 of file testAlgebraicDecisionTree.cpp.

void printCounts ( const string &  s)

Definition at line 83 of file testAlgebraicDecisionTree.cpp.

void resetCounts ( )

Definition at line 79 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
example3   
)

Definition at line 101 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
joint   
)

Definition at line 145 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
inference   
)

Definition at line 206 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
factor_graph   
)

Definition at line 273 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
equality_noparser   
)

Definition at line 405 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
equality_parser   
)

Definition at line 427 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
constructor   
)

Definition at line 445 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
conversion   
)

Definition at line 489 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
elimination   
)

Definition at line 517 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
div   
)

Definition at line 556 of file testAlgebraicDecisionTree.cpp.

TEST ( ADT  ,
zero   
)

Definition at line 571 of file testAlgebraicDecisionTree.cpp.

Variable Documentation

size_t adds = 0

Definition at line 77 of file testAlgebraicDecisionTree.cpp.

double elapsed

Definition at line 78 of file testAlgebraicDecisionTree.cpp.

size_t muls = 0

I can't get this to work ! class Mul: boost::function<double(const double&, const double&)> { inline double operator()(const double& a, const double& b) { return a * b; } };

If second argument of binary op is Leaf template<typename L> typename DecisionTree<L, double>::Node::Ptr DecisionTree<L, double>::Choice::apply_fC_op_gL( Cache& cache, const Leaf& gL, Mul op) const { Ptr h(new Choice(label(), cardinality())); for(const NodePtr& branch: branches_) h->push_back(branch->apply_f_op_g(cache, gL, op)); return Unique(cache, h); }

Definition at line 77 of file testAlgebraicDecisionTree.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:40