Point Cloud Library (PCL)
1.8.1
|
Class representing a decision tree. More...
#include <pcl/ml/dt/decision_tree.h>
Public Member Functions | |
DecisionTree () | |
Constructor. More... | |
virtual | ~DecisionTree () |
Destructor. More... | |
void | setRoot (const NodeType &root) |
Sets the root node of the tree. More... | |
NodeType & | getRoot () |
Returns the root node of the tree. More... | |
void | serialize (::std::ostream &stream) const |
Serializes the decision tree. More... | |
void | deserialize (::std::istream &stream) |
Deserializes the decision tree. More... | |
Class representing a decision tree.
Definition at line 51 of file decision_tree.h.
|
inline |
Constructor.
Definition at line 57 of file decision_tree.h.
|
inlinevirtual |
Destructor.
Definition at line 60 of file decision_tree.h.
|
inline |
Deserializes the decision tree.
[in] | stream | The source for the deserialization. |
Definition at line 90 of file decision_tree.h.
|
inline |
Returns the root node of the tree.
Definition at line 73 of file decision_tree.h.
Referenced by pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate(), pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes(), and pcl::DecisionTreeTrainer< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::train().
|
inline |
Serializes the decision tree.
[out] | stream | The destination for the serialization. |
Definition at line 82 of file decision_tree.h.
|
inline |
Sets the root node of the tree.
[in] | root | The root node. |
Definition at line 66 of file decision_tree.h.
Referenced by pcl::DecisionTreeTrainer< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::train().