|
Point Cloud Library (PCL)
1.15.1-dev
|
Class representing a decision tree. More...
#include <pcl/ml/dt/decision_tree.h>
Public Member Functions | |
| DecisionTree () | |
| Constructor. More... | |
| virtual | ~DecisionTree ()=default |
| 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 49 of file decision_tree.h.
|
inline |
Constructor.
Definition at line 52 of file decision_tree.h.
|
virtualdefault |
Destructor.
|
inline |
Deserializes the decision tree.
| [in] | stream | the source for the deserialization |
Definition at line 89 of file decision_tree.h.
|
inline |
Returns the root node of the tree.
Definition at line 69 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 79 of file decision_tree.h.
|
inline |
Sets the root node of the tree.
| [in] | root | the root node |
Definition at line 62 of file decision_tree.h.
Referenced by pcl::DecisionTreeTrainer< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::train().