Logo ROOT  
Reference Guide
TMVA::CrossEntropy Class Reference

Implementation of the CrossEntropy as separation criterion.

         -p log (p) - (1-p)log(1-p);     p=purity

Definition at line 43 of file CrossEntropy.h.

Public Member Functions

 CrossEntropy ()
 CrossEntropy (const CrossEntropy &g)
virtual ~CrossEntropy ()
virtual Double_t GetSeparationIndex (const Double_t s, const Double_t b)
 Cross Entropy defined as: More...
- Public Member Functions inherited from TMVA::SeparationBase
 SeparationBase ()
 Constructor. More...
 SeparationBase (const SeparationBase &s)
 Copy constructor. More...
virtual ~SeparationBase ()
const TStringGetName ()
virtual Double_t GetSeparationGain (const Double_t nSelS, const Double_t nSelB, const Double_t nTotS, const Double_t nTotB)
 Separation Gain: the measure of how the quality of separation of the sample increases by splitting the sample e.g. More...
virtual Double_t GetSeparationIndex (const Double_t s, const Double_t b)=0

Additional Inherited Members

- Protected Attributes inherited from TMVA::SeparationBase
TString fName
Double_t fPrecisionCut

#include <TMVA/CrossEntropy.h>

Inheritance diagram for TMVA::CrossEntropy:

Constructor & Destructor Documentation

◆ CrossEntropy() [1/2]

TMVA::CrossEntropy::CrossEntropy ( )

Definition at line 48 of file CrossEntropy.h.

◆ CrossEntropy() [2/2]

TMVA::CrossEntropy::CrossEntropy ( const CrossEntropy g)

Definition at line 51 of file CrossEntropy.h.

◆ ~CrossEntropy()

virtual TMVA::CrossEntropy::~CrossEntropy ( )

Definition at line 54 of file CrossEntropy.h.

Member Function Documentation

◆ GetSeparationIndex()

Double_t TMVA::CrossEntropy::GetSeparationIndex ( const Double_t  s,
const Double_t  b 

Cross Entropy defined as:

       -p log (p) - (1-p)log(1-p);     p=purity = s/(s+b) 

Implements TMVA::SeparationBase.

Definition at line 47 of file CrossEntropy.cxx.

Libraries for TMVA::CrossEntropy:

The documentation for this class was generated from the following files: