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

Public Member Functions

 Leaf (const Y &constant)
 Constructor from constant.
const Y & constant () const
 return the constant
bool sameLeaf (const Leaf &q) const override
 Leaf-Leaf equality.
bool sameLeaf (const Node &q) const override
 polymorphic equality: is q is a leaf, could be
bool equals (const Node &q, double tol) const override
 equality up to tolerance
void print (const std::string &s) const override
void dot (std::ostream &os, bool showZero) const override
 to graphviz file
const Y & operator() (const Assignment< L > &x) const override
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
NodePtr choose (const L &label, size_t index) const override
 choose a branch, create new memory !
bool isLeaf () const override
- Public Member Functions inherited from gtsam::DecisionTree< L, Y >::Node
const void * id () const

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: