#include <DecisionTree-inl.h>
Public Member Functions | |
NodePtr | apply (const Unary &op) const override |
NodePtr | apply (const UnaryAssignment &op, const Assignment< L > &assignment) const override |
Apply unary operator with assignment. More... | |
NodePtr | apply_f_op_g (const Node &g, const Binary &op) const override |
NodePtr | apply_g_op_fC (const Choice &fC, const Binary &op) const override |
NodePtr | apply_g_op_fL (const Leaf &fL, const Binary &op) const override |
NodePtr | choose (const L &label, size_t index) const override |
const Y & | constant () const |
Return the constant. More... | |
void | dot (std::ostream &os, const LabelFormatter &labelFormatter, const ValueFormatter &valueFormatter, bool showZero) const override |
bool | equals (const Node &q, const CompareFunc &compare) const override |
equality up to tolerance More... | |
bool | isLeaf () const override |
Leaf () | |
Default constructor for serialization. More... | |
Leaf (const Y &constant) | |
Constructor from constant. More... | |
const Y & | operator() (const Assignment< L > &x) const override |
void | print (const std::string &s, const LabelFormatter &labelFormatter, const ValueFormatter &valueFormatter) const override |
print More... | |
bool | sameLeaf (const Leaf &q) const override |
Leaf-Leaf equality. More... | |
bool | sameLeaf (const Node &q) const override |
polymorphic equality: is q a leaf and is it the same as this leaf? More... | |
![]() | |
const void * | id () const |
Node () | |
virtual | ~Node () |
Public Attributes | |
Y | constant_ |
Private Types | |
using | Base = DecisionTree< L, Y >::Node |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< const Node > |
Definition at line 52 of file DecisionTree-inl.h.
|
private |
Definition at line 147 of file DecisionTree-inl.h.
|
inline |
Default constructor for serialization.
Definition at line 57 of file DecisionTree-inl.h.
|
inline |
Constructor from constant.
Definition at line 60 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
apply unary operator
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 106 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Apply unary operator with assignment.
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 112 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 123 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 135 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 128 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
choose a branch, create new memory !
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 140 of file DecisionTree-inl.h.
|
inline |
Return the constant.
Definition at line 63 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Write graphviz format to stream os
.
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 91 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
equality up to tolerance
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 78 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 144 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
evaluate
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 101 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 85 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
Leaf-Leaf equality.
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 68 of file DecisionTree-inl.h.
|
inlineoverridevirtual |
polymorphic equality: is q a leaf and is it the same as this leaf?
Implements gtsam::DecisionTree< L, Y >::Node.
Definition at line 73 of file DecisionTree-inl.h.
Y gtsam::DecisionTree< L, Y >::Leaf< L, Y >::constant_ |
constant stored in this leaf
Definition at line 54 of file DecisionTree-inl.h.