gtsam 4.1.1
gtsam
gtsam::DecisionTree< L, Y >::Node Class Referenceabstract

Detailed Description

template<typename L, typename Y>
class gtsam::DecisionTree< L, Y >::Node

---------------------— Node base class ------------------------—

+ Inheritance diagram for gtsam::DecisionTree< L, Y >::Node:

Public Member Functions

const void * id () const
 
virtual void print (const std::string &s="") const =0
 
virtual void dot (std::ostream &os, bool showZero) const =0
 
virtual bool sameLeaf (const Leaf &q) const =0
 
virtual bool sameLeaf (const Node &q) const =0
 
virtual bool equals (const Node &other, double tol=1e-9) const =0
 
virtual const Y & operator() (const Assignment< L > &x) const =0
 
virtual Ptr apply (const Unary &op) const =0
 
virtual Ptr apply_f_op_g (const Node &, const Binary &) const =0
 
virtual Ptr apply_g_op_fL (const Leaf &, const Binary &) const =0
 
virtual Ptr apply_g_op_fC (const Choice &, const Binary &) const =0
 
virtual Ptr choose (const L &label, size_t index) const =0
 
virtual bool isLeaf () const =0
 

Public Types

typedef boost::shared_ptr< const NodePtr
 

Member Function Documentation

◆ apply()

template<typename L , typename Y >
virtual Ptr gtsam::DecisionTree< L, Y >::Node::apply ( const Unary op) const
pure virtual

◆ choose()

template<typename L , typename Y >
virtual Ptr gtsam::DecisionTree< L, Y >::Node::choose ( const L &  label,
size_t  index 
) const
pure virtual

◆ dot()

template<typename L , typename Y >
virtual void gtsam::DecisionTree< L, Y >::Node::dot ( std::ostream &  os,
bool  showZero 
) const
pure virtual

◆ equals()

template<typename L , typename Y >
virtual bool gtsam::DecisionTree< L, Y >::Node::equals ( const Node other,
double  tol = 1e-9 
) const
pure virtual

◆ operator()()

template<typename L , typename Y >
virtual const Y & gtsam::DecisionTree< L, Y >::Node::operator() ( const Assignment< L > &  x) const
pure virtual

◆ print()

template<typename L , typename Y >
virtual void gtsam::DecisionTree< L, Y >::Node::print ( const std::string &  s = "") const
pure virtual

◆ sameLeaf() [1/2]

template<typename L , typename Y >
virtual bool gtsam::DecisionTree< L, Y >::Node::sameLeaf ( const Leaf q) const
pure virtual

◆ sameLeaf() [2/2]

template<typename L , typename Y >
virtual bool gtsam::DecisionTree< L, Y >::Node::sameLeaf ( const Node q) const
pure virtual

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