|
Point Cloud Library (PCL)
1.15.1-dev
|
Class representing a Fern. More...
#include <pcl/ml/ferns/fern.h>
Public Member Functions | |
| Fern () | |
| Constructor. More... | |
| void | initialize (const std::size_t num_of_decisions) |
| Initializes the fern. More... | |
| std::size_t | getNumOfNodes () |
| Returns the number of nodes the Fern has. More... | |
| std::size_t | getNumOfFeatures () |
| Returns the number of features the Fern has. More... | |
| void | serialize (::std::ostream &stream) const |
| Serializes the fern. More... | |
| void | deserialize (::std::istream &stream) |
| Deserializes the fern. More... | |
| NodeType & | operator[] (const std::size_t node_index) |
| Access operator for nodes. More... | |
| const NodeType & | operator[] (const std::size_t node_index) const |
| Access operator for nodes. More... | |
| FeatureType & | accessFeature (const std::size_t feature_index) |
| Access operator for features. More... | |
| const FeatureType & | accessFeature (const std::size_t feature_index) const |
| Access operator for features. More... | |
| float & | accessThreshold (const std::size_t threshold_index) |
| Access operator for thresholds. More... | |
| const float & | accessThreshold (const std::size_t threshold_index) const |
| Access operator for thresholds. More... | |
Class representing a Fern.
|
inline |
Access operator for features.
| feature_index | the index of the feature to access |
Definition at line 157 of file fern.h.
Referenced by pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes(), and pcl::FernTrainer< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::train().
|
inline |
|
inline |
Access operator for thresholds.
| threshold_index | the index of the threshold to access |
Definition at line 177 of file fern.h.
Referenced by pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes(), and pcl::FernTrainer< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::train().
|
inline |
|
inline |
|
inline |
Returns the number of features the Fern has.
Definition at line 76 of file fern.h.
Referenced by pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), and pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes().
|
inline |
|
inline |
Initializes the fern.
| num_of_decisions | the number of decisions taken to access the nodes |
Definition at line 59 of file fern.h.
Referenced by pcl::FernTrainer< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::train().
|
inline |
|
inline |
|
inline |