41 #include <pcl/common/utils.h>
42 #include <pcl/ml/stats_estimator.h>
65 const unsigned char flag,
66 const float threshold,
67 unsigned char& branch_index)
const = 0;
95 const unsigned char flag,
96 const float threshold,
97 unsigned char& branch_index)
const override
100 branch_index = (result > threshold) ? 1 : 0;
129 const unsigned char flag,
130 const float threshold,
131 unsigned char& branch_index)
const override
134 branch_index = (result > threshold) ? 1 : 0;
Branch estimator for binary trees where the branch is computed only from the threshold.
void computeBranchIndex(const float result, const unsigned char flag, const float threshold, unsigned char &branch_index) const override
Computes the branch index for the specified result.
std::size_t getNumOfBranches() const override
Returns the number of branches the corresponding tree has.
BinaryTreeThresholdBasedBranchEstimator()=default
Constructor.
~BinaryTreeThresholdBasedBranchEstimator() override=default
Destructor.
Interface for branch estimators.
virtual std::size_t getNumOfBranches() const =0
Returns the number of branches the corresponding tree has.
virtual void computeBranchIndex(const float result, const unsigned char flag, const float threshold, unsigned char &branch_index) const =0
Computes the branch index for the specified result.
virtual ~BranchEstimator()=default
Destructor.
Branch estimator for ternary trees where one branch is used for missing data (indicated by flag !...
std::size_t getNumOfBranches() const override
Returns the number of branches the corresponding tree has.
TernaryTreeMissingDataBranchEstimator()=default
Constructor.
void computeBranchIndex(const float result, const unsigned char flag, const float threshold, unsigned char &branch_index) const override
Computes the branch index for the specified result.
~TernaryTreeMissingDataBranchEstimator() override=default
Destructor.
Define standard C methods and C++ classes that are common to all methods.
void ignore(const T &...)
Utility function to eliminate unused variable warnings.