12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- namespace OBJREC {
- class SCInformationGain : public SplittingCriterion
- {
- protected:
- double entropy_left,
- entropy_right,
- count_left,
- count_right;
- bool use_shannon_entropy;
- public:
-
- SCInformationGain();
-
- SCInformationGain( int _min_examples );
-
- SCInformationGain( const NICE::Config *conf );
-
- SCInformationGain( const SCInformationGain &obj );
-
- virtual ~SCInformationGain();
-
- virtual SplittingCriterion* clone();
-
- virtual bool evaluateSplit(
- const FeatureValuesUnsorted & values,
- double threshold,
- double* distribution_left,
- double* distribution_right,
- int maxClassNo );
-
- double computePurity() const;
- };
-
- }
|