Point Cloud Library (PCL)
1.8.0
|
Utility class for evaluating a fern. More...
#include <pcl/ml/ferns/fern_evaluator.h>
Public Member Functions | |
FernEvaluator () | |
Constructor. More... | |
virtual | ~FernEvaluator () |
Destructor. More... | |
void | evaluate (pcl::Fern< FeatureType, NodeType > &fern, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< LabelType > &label_data) |
Evaluates the specified examples using the supplied tree. More... | |
void | evaluateAndAdd (pcl::Fern< FeatureType, NodeType > &fern, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< LabelType > &label_data) |
Evaluates the specified examples using the supplied tree and adds the results to the supplied results array. More... | |
void | getNodes (pcl::Fern< FeatureType, NodeType > &fern, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< NodeType *> &nodes) |
Evaluates the specified examples using the supplied tree. More... | |
Utility class for evaluating a fern.
Definition at line 59 of file fern_evaluator.h.
pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::FernEvaluator | ( | ) |
Constructor.
Definition at line 52 of file fern_evaluator.hpp.
|
virtual |
Destructor.
Definition at line 58 of file fern_evaluator.hpp.
void pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate | ( | pcl::Fern< FeatureType, NodeType > & | fern, |
pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > & | feature_handler, | ||
pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > & | stats_estimator, | ||
DataSet & | data_set, | ||
std::vector< ExampleIndex > & | examples, | ||
std::vector< LabelType > & | label_data | ||
) |
Evaluates the specified examples using the supplied tree.
[in] | fern | The decision tree. |
[in] | feature_handler | The feature handler used to train the tree. |
[in] | stats_estimator | The statistics estimation instance used while training the tree. |
[in] | data_set | The data set used for evaluation. |
[in] | examples | The examples that have to be evaluated. |
[out] | label_data | The destination for the resulting label data. |
Definition at line 65 of file fern_evaluator.hpp.
References pcl::Fern< FeatureType, NodeType >::accessFeature(), pcl::Fern< FeatureType, NodeType >::accessThreshold(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::computeBranchIndices(), pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::getLabelOfNode(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::getNumOfBranches(), and pcl::Fern< FeatureType, NodeType >::getNumOfFeatures().
void pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd | ( | pcl::Fern< FeatureType, NodeType > & | fern, |
pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > & | feature_handler, | ||
pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > & | stats_estimator, | ||
DataSet & | data_set, | ||
std::vector< ExampleIndex > & | examples, | ||
std::vector< LabelType > & | label_data | ||
) |
Evaluates the specified examples using the supplied tree and adds the results to the supplied results array.
[in] | fern | The decision tree. |
[in] | feature_handler | The feature handler used to train the tree. |
[in] | stats_estimator | The statistics estimation instance used while training the tree. |
[in] | data_set | The data set used for evaluation. |
[in] | examples | The examples that have to be evaluated. |
[out] | label_data | The destination where the resulting label data is added to. |
Definition at line 109 of file fern_evaluator.hpp.
References pcl::Fern< FeatureType, NodeType >::accessFeature(), pcl::Fern< FeatureType, NodeType >::accessThreshold(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::computeBranchIndices(), pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::getLabelOfNode(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::getNumOfBranches(), and pcl::Fern< FeatureType, NodeType >::getNumOfFeatures().
void pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes | ( | pcl::Fern< FeatureType, NodeType > & | fern, |
pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > & | feature_handler, | ||
pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > & | stats_estimator, | ||
DataSet & | data_set, | ||
std::vector< ExampleIndex > & | examples, | ||
std::vector< NodeType *> & | nodes | ||
) |
Evaluates the specified examples using the supplied tree.
[in] | fern | The decision tree. |
[in] | feature_handler | The feature handler used to train the tree. |
[in] | stats_estimator | The statistics estimation instance used while training the tree. |
[in] | data_set | The data set used for evaluation. |
[in] | examples | The examples that have to be evaluated. |
[out] | nodes | The leaf-nodes reached while evaluation. |
Definition at line 151 of file fern_evaluator.hpp.
References pcl::Fern< FeatureType, NodeType >::accessFeature(), pcl::Fern< FeatureType, NodeType >::accessThreshold(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::computeBranchIndices(), pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::getNumOfBranches(), and pcl::Fern< FeatureType, NodeType >::getNumOfFeatures().