#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>
Go to the source code of this file.
Classes | |
struct | gtsam::traits< ADT > |
Namespaces | |
asiaCPTs | |
gtsam | |
traits | |
Macros | |
#define | DISABLE_DOT |
Typedefs | |
typedef AlgebraicDecisionTree< Key > | ADT |
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") |
#define DISABLE_DOT |
Definition at line 40 of file testAlgebraicDecisionTree.cpp.
typedef AlgebraicDecisionTree<Key> ADT |
Definition at line 32 of file testAlgebraicDecisionTree.cpp.
double add_ | ( | const double & | a, |
const double & | b | ||
) |
Definition at line 98 of file testAlgebraicDecisionTree.cpp.
Convert Signature into CPT
Definition at line 136 of file testAlgebraicDecisionTree.cpp.
void dot | ( | const T & | f, |
const string & | filename | ||
) |
Definition at line 43 of file testAlgebraicDecisionTree.cpp.
ADT exampleADT | ( | ) |
Example ADT from 0 to 11.
Definition at line 544 of file testAlgebraicDecisionTree.cpp.
int main | ( | ) |
Definition at line 593 of file testAlgebraicDecisionTree.cpp.
double mul | ( | const double & | a, |
const double & | b | ||
) |
Definition at line 94 of file testAlgebraicDecisionTree.cpp.
void printCounts | ( | const string & | s | ) |
Definition at line 87 of file testAlgebraicDecisionTree.cpp.
void resetCounts | ( | ) |
Definition at line 83 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
arithmetic | |||
) |
Definition at line 51 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
combine | |||
) |
Definition at line 195 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
constructor | |||
) |
Definition at line 403 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
conversion | |||
) |
Definition at line 445 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
div | |||
) |
Definition at line 510 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
elimination | |||
) |
Definition at line 472 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
equality_noparser | |||
) |
Definition at line 367 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
equality_parser | |||
) |
Definition at line 386 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
example3 | |||
) |
Definition at line 105 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
factor_graph | |||
) |
Definition at line 270 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
inference | |||
) |
Definition at line 213 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
joint | |||
) |
Definition at line 165 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
Max | |||
) |
Definition at line 586 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
Min | |||
) |
Definition at line 578 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
Normalize | |||
) |
Definition at line 562 of file testAlgebraicDecisionTree.cpp.
TEST | ( | ADT | , |
Sum | |||
) |
Definition at line 551 of file testAlgebraicDecisionTree.cpp.
Definition at line 524 of file testAlgebraicDecisionTree.cpp.
size_t adds = 0 |
Definition at line 82 of file testAlgebraicDecisionTree.cpp.
size_t muls = 0 |
Definition at line 82 of file testAlgebraicDecisionTree.cpp.