|
|
using | Ptr = std::shared_ptr< const Node > |
| |
|
|
| Leaf () |
| | Default constructor for serialization.
|
| |
|
| Leaf (const Y &constant, size_t nrAssignments=1) |
| | Constructor from constant.
|
| |
|
const Y & | constant () const |
| | Return the constant.
|
| |
|
size_t | nrAssignments () const |
| | Return the number of assignments contained within this leaf.
|
| |
|
bool | sameLeaf (const Leaf &q) const override |
| | Leaf-Leaf equality.
|
| |
|
bool | sameLeaf (const Node &q) const override |
| | polymorphic equality: is q a leaf and is it the same as this leaf?
|
| |
|
bool | equals (const Node &q, const CompareFunc &compare) const override |
| | equality up to tolerance
|
| |
|
void | print (const std::string &s, const LabelFormatter &labelFormatter, const ValueFormatter &valueFormatter) const override |
| | print
|
| |
| void | dot (std::ostream &os, const LabelFormatter &labelFormatter, const ValueFormatter &valueFormatter, bool showZero) const override |
| |
| const Y & | operator() (const Assignment< L > &x) const override |
| |
| NodePtr | apply (const Unary &op) const override |
| |
|
NodePtr | apply (const UnaryAssignment &op, const Assignment< L > &assignment) const override |
| | Apply unary operator with assignment.
|
| |
|
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 |
| |
|
bool | isLeaf () const override |
| |
|
const void * | id () const |
| |
◆ apply()
template<typename L, typename Y>
template<typename L , typename Y >
◆ choose()
template<typename L, typename Y>
template<typename L , typename Y >
◆ dot()
template<typename L, typename Y>
template<typename L , typename Y >
| void gtsam::DecisionTree< L, Y >::Leaf< L, Y >::dot |
( |
std::ostream & |
os, |
|
|
const LabelFormatter & |
labelFormatter, |
|
|
const ValueFormatter & |
valueFormatter, |
|
|
bool |
showZero |
|
) |
| const |
|
inlineoverridevirtual |
◆ operator()()
template<typename L, typename Y>
template<typename L , typename Y >
◆ constant_
template<typename L, typename Y>
template<typename L , typename Y >
constant stored in this leaf
◆ nrAssignments_
template<typename L, typename Y>
template<typename L , typename Y >
The number of assignments contained within this leaf. Particularly useful when leaves have been pruned.
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/gtsam-jlblanco-docs/checkouts/latest/gtsam/discrete/DecisionTree-inl.h