Classes | Public Types | Public Member Functions | List of all members
gtsam::AlgebraicDecisionTree< L > Class Template Reference

#include <AlgebraicDecisionTree.h>

Inheritance diagram for gtsam::AlgebraicDecisionTree< L >:
Inheritance graph
[legend]

Classes

struct  Ring
 

Public Types

typedef DecisionTree< L, double > Super
 
- Public Types inherited from gtsam::DecisionTree< L, double >
typedef boost::function< double(const double &, const double &)> Binary
 
typedef std::pair< L, size_tLabelC
 
typedef Node::Ptr NodePtr
 
typedef boost::function< double(const double &)> Unary
 

Public Member Functions

 AlgebraicDecisionTree ()
 
 AlgebraicDecisionTree (const Super &add)
 
 AlgebraicDecisionTree (const L &label, double y1, double y2)
 
 AlgebraicDecisionTree (const typename Super::LabelC &labelC, double y1, double y2)
 
 AlgebraicDecisionTree (const std::vector< typename Super::LabelC > &labelCs, const std::vector< double > &ys)
 
 AlgebraicDecisionTree (const std::vector< typename Super::LabelC > &labelCs, const std::string &table)
 
template<typename Iterator >
 AlgebraicDecisionTree (Iterator begin, Iterator end, const L &label)
 
template<typename M >
 AlgebraicDecisionTree (const AlgebraicDecisionTree< M > &other, const std::map< M, L > &map)
 
AlgebraicDecisionTree operator* (const AlgebraicDecisionTree &g) const
 
AlgebraicDecisionTree operator+ (const AlgebraicDecisionTree &g) const
 
AlgebraicDecisionTree operator/ (const AlgebraicDecisionTree &g) const
 
AlgebraicDecisionTree sum (const L &label, size_t cardinality) const
 
AlgebraicDecisionTree sum (const typename Super::LabelC &labelC) const
 
- Public Member Functions inherited from gtsam::DecisionTree< L, double >
 DecisionTree (const double &y)
 
 DecisionTree (const L &label, const double &y1, const double &y2)
 
 DecisionTree (const LabelC &label, const double &y1, const double &y2)
 
 DecisionTree (const std::vector< LabelC > &labelCs, const std::vector< double > &ys)
 
 DecisionTree (const std::vector< LabelC > &labelCs, const std::string &table)
 
 DecisionTree (Iterator begin, Iterator end, const L &label)
 
 DecisionTree (const L &label, const DecisionTree &f0, const DecisionTree &f1)
 
 DecisionTree (const DecisionTree< M, X > &other, const std::map< M, L > &map, boost::function< double(const X &)> op)
 
 DecisionTree (const NodePtr &root)
 
NodePtr compose (Iterator begin, Iterator end, const L &label) const
 
void print (const std::string &s="DecisionTree") const
 
bool equals (const DecisionTree &other, double tol=1e-9) const
 
virtual ~DecisionTree ()
 
bool operator== (const DecisionTree &q) const
 
const double & operator() (const Assignment< L > &x) const
 
DecisionTree apply (const Unary &op) const
 
DecisionTree apply (const DecisionTree &g, const Binary &op) const
 
DecisionTree choose (const L &label, size_t index) const
 
DecisionTree combine (const L &label, size_t cardinality, const Binary &op) const
 
DecisionTree combine (const LabelC &labelC, const Binary &op) const
 
void dot (std::ostream &os, bool showZero=true) const
 
void dot (const std::string &name, bool showZero=true) const
 

Additional Inherited Members

- Public Attributes inherited from gtsam::DecisionTree< L, double >
NodePtr root_
 
- Protected Member Functions inherited from gtsam::DecisionTree< L, double >
NodePtr convert (const typename DecisionTree< M, X >::NodePtr &f, const std::map< M, L > &map, boost::function< double(const X &)> op)
 
NodePtr create (It begin, It end, ValueIt beginY, ValueIt endY) const
 
 DecisionTree ()
 

Detailed Description

template<typename L>
class gtsam::AlgebraicDecisionTree< L >

Algebraic Decision Trees fix the range to double Just has some nice constructors and some syntactic sugar TODO: consider eliminating this class altogether?

Definition at line 31 of file AlgebraicDecisionTree.h.

Member Typedef Documentation

template<typename L>
typedef DecisionTree<L, double> gtsam::AlgebraicDecisionTree< L >::Super

Definition at line 35 of file AlgebraicDecisionTree.h.

Constructor & Destructor Documentation

template<typename L>
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( )
inline

Definition at line 62 of file AlgebraicDecisionTree.h.

template<typename L>
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( const Super add)
inline

Definition at line 66 of file AlgebraicDecisionTree.h.

template<typename L>
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( const L label,
double  y1,
double  y2 
)
inline

Create a new leaf function splitting on a variable

Definition at line 71 of file AlgebraicDecisionTree.h.

template<typename L>
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( const typename Super::LabelC labelC,
double  y1,
double  y2 
)
inline

Create a new leaf function splitting on a variable

Definition at line 76 of file AlgebraicDecisionTree.h.

template<typename L>
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( const std::vector< typename Super::LabelC > &  labelCs,
const std::vector< double > &  ys 
)
inline

Create from keys and vector table

Definition at line 82 of file AlgebraicDecisionTree.h.

template<typename L>
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( const std::vector< typename Super::LabelC > &  labelCs,
const std::string &  table 
)
inline

Create from keys and string table

Definition at line 89 of file AlgebraicDecisionTree.h.

template<typename L>
template<typename Iterator >
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( Iterator  begin,
Iterator  end,
const L label 
)
inline

Create a new function splitting on a variable

Definition at line 103 of file AlgebraicDecisionTree.h.

template<typename L>
template<typename M >
gtsam::AlgebraicDecisionTree< L >::AlgebraicDecisionTree ( const AlgebraicDecisionTree< M > &  other,
const std::map< M, L > &  map 
)
inline

Convert

Definition at line 110 of file AlgebraicDecisionTree.h.

Member Function Documentation

template<typename L>
AlgebraicDecisionTree gtsam::AlgebraicDecisionTree< L >::operator* ( const AlgebraicDecisionTree< L > &  g) const
inline

product

Definition at line 122 of file AlgebraicDecisionTree.h.

template<typename L>
AlgebraicDecisionTree gtsam::AlgebraicDecisionTree< L >::operator+ ( const AlgebraicDecisionTree< L > &  g) const
inline

sum

Definition at line 117 of file AlgebraicDecisionTree.h.

template<typename L>
AlgebraicDecisionTree gtsam::AlgebraicDecisionTree< L >::operator/ ( const AlgebraicDecisionTree< L > &  g) const
inline

division

Definition at line 127 of file AlgebraicDecisionTree.h.

template<typename L>
AlgebraicDecisionTree gtsam::AlgebraicDecisionTree< L >::sum ( const L label,
size_t  cardinality 
) const
inline

sum out variable

Definition at line 132 of file AlgebraicDecisionTree.h.

template<typename L>
AlgebraicDecisionTree gtsam::AlgebraicDecisionTree< L >::sum ( const typename Super::LabelC labelC) const
inline

sum out variable

Definition at line 137 of file AlgebraicDecisionTree.h.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:03