38 #ifndef PCL_ML_DT_STATS_ESTIMATOR_H_ 39 #define PCL_ML_DT_STATS_ESTIMATOR_H_ 66 getNumOfBranches ()
const = 0;
75 computeAndSetNodeStats (DataSet & data_set,
76 std::vector<ExampleIndex> & examples,
77 std::vector<LabelDataType> & label_data,
78 NodeType & node )
const = 0;
83 getLabelOfNode (NodeType & node)
const = 0;
94 computeInformationGain (DataSet & data_set,
95 std::vector<ExampleIndex> & examples,
96 std::vector<LabelDataType> & label_data,
97 std::vector<float> & results,
98 std::vector<unsigned char> & flags,
99 const float threshold)
const = 0;
108 computeBranchIndices (std::vector<float> & results,
109 std::vector<unsigned char> & flags,
110 const float threshold,
111 std::vector<unsigned char> & branch_indices)
const = 0;
120 computeBranchIndex (
const float result,
121 const unsigned char flag,
122 const float threshold,
123 unsigned char & branch_index)
const = 0;
130 generateCodeForBranchIndexComputation (NodeType & node,
131 std::ostream & stream)
const = 0;
138 generateCodeForOutput (NodeType & node,
139 std::ostream & stream )
const = 0;
virtual ~StatsEstimator()
Destructor.
Define standard C methods and C++ classes that are common to all methods.
Class interface for gathering statistics for decision tree learning.