40 #include <pcl/common/common.h>
41 #include <pcl/ml/stats_estimator.h>
56 getNumOfBranches()
const = 0;
66 computeBranchIndex(
const float result,
67 const unsigned char flag,
68 const float threshold,
69 unsigned char& branch_index)
const = 0;
97 const unsigned char flag,
98 const float threshold,
99 unsigned char& branch_index)
const override
102 branch_index = (result > threshold) ? 1 : 0;
131 const unsigned char flag,
132 const float threshold,
133 unsigned char& branch_index)
const override
136 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.
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.
~BinaryTreeThresholdBasedBranchEstimator()
Destructor.
~TernaryTreeMissingDataBranchEstimator()
Destructor.
std::size_t getNumOfBranches() const override
Returns the number of branches the corresponding tree has.
Branch estimator for ternary trees where one branch is used for missing data (indicated by flag != 0)...
virtual ~BranchEstimator()
Destructor.
std::size_t getNumOfBranches() const override
Returns the number of branches the corresponding tree has.
BinaryTreeThresholdBasedBranchEstimator()
Constructor.
TernaryTreeMissingDataBranchEstimator()
Constructor.
Interface for branch estimators.