Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions
pcl::DecisionTree< NodeType > Class Template Reference

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...
 

Detailed Description

template<class NodeType>
class pcl::DecisionTree< NodeType >

Class representing a decision tree.

Definition at line 50 of file decision_tree.h.

Constructor & Destructor Documentation

template<class NodeType>
pcl::DecisionTree< NodeType >::DecisionTree ( )
inline

Constructor.

Definition at line 56 of file decision_tree.h.

template<class NodeType>
virtual pcl::DecisionTree< NodeType >::~DecisionTree ( )
inlinevirtual

Destructor.

Definition at line 59 of file decision_tree.h.

Member Function Documentation

template<class NodeType>
void pcl::DecisionTree< NodeType >::deserialize ( ::std::istream &  stream)
inline

Deserializes the decision tree.

Parameters
[in]streamThe source for the deserialization.

Definition at line 89 of file decision_tree.h.

template<class NodeType>
NodeType& pcl::DecisionTree< NodeType >::getRoot ( )
inline
template<class NodeType>
void pcl::DecisionTree< NodeType >::serialize ( ::std::ostream &  stream) const
inline

Serializes the decision tree.

Parameters
[out]streamThe destination for the serialization.

Definition at line 81 of file decision_tree.h.

template<class NodeType>
void pcl::DecisionTree< NodeType >::setRoot ( const NodeType &  root)
inline

Sets the root node of the tree.

Parameters
[in]rootThe root node.

Definition at line 65 of file decision_tree.h.

Referenced by pcl::DecisionTreeTrainer< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::train().


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