gtsam  4.1.0
gtsam
gtsam::DecisionTree< L, Y >::Choice< L, Y > Class Template Reference
+ Inheritance diagram for gtsam::DecisionTree< L, Y >::Choice< L, Y >:

Public Member Functions

bool isLeaf () const override
 
 Choice (const L &label, size_t count)
 Constructor, given choice label and mandatory expected branch count.
 
 Choice (const Choice &f, const Choice &g, const Binary &op)
 Construct from applying binary op to two Choice nodes.
 
const L & label () const
 
size_t nrChoices () const
 
const std::vector< NodePtr > & branches () const
 
void push_back (const NodePtr &node)
 add a branch: TODO merge into constructor
 
void print (const std::string &s) const override
 print (as a tree)
 
void dot (std::ostream &os, bool showZero) const override
 output to graphviz (as a a graph)
 
bool sameLeaf (const Leaf &q) const override
 Choice-Leaf equality: always false.
 
bool sameLeaf (const Node &q) const override
 polymorphic equality: if q is a leaf, could be...
 
bool equals (const Node &q, double tol) const override
 equality up to tolerance
 
const Y & operator() (const Assignment< L > &x) const override
 evaluate
 
 Choice (const L &label, const Choice &f, const Unary &op)
 Construct from applying unary op to a Choice node.
 
NodePtr apply (const Unary &op) const override
 apply unary operator
 
NodePtr apply_f_op_g (const Node &g, const Binary &op) const override
 
NodePtr apply_g_op_fL (const Leaf &fL, const Binary &op) const override
 
NodePtr apply_g_op_fC (const Choice &fC, const Binary &op) const override
 
template<typename OP >
NodePtr apply_fC_op_gL (const Leaf &gL, OP op) const
 
NodePtr choose (const L &label, size_t index) const override
 choose a branch, recursively
 
- Public Member Functions inherited from gtsam::DecisionTree< L, Y >::Node
const void * id () const
 

Static Public Member Functions

static NodePtr Unique (const ChoicePtr &f)
 If all branches of a choice node f are the same, just return a branch.
 

Additional Inherited Members

- Public Types inherited from gtsam::DecisionTree< L, Y >::Node
typedef boost::shared_ptr< const NodePtr
 

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