Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | List of all members
TMVA::GiniIndexWithLaplace Class Reference

Definition at line 61 of file GiniIndexWithLaplace.h.

Public Member Functions

 GiniIndexWithLaplace ()
 
 GiniIndexWithLaplace (const GiniIndexWithLaplace &g)
 
virtual ~GiniIndexWithLaplace ()
 
virtual Double_t GetSeparationIndex (const Double_t &s, const Double_t &b)
 Gini(Sample M) = 1 - (c(1)/N)^2 - (c(2)/N)^2 .... More...
 
- Public Member Functions inherited from TMVA::SeparationBase
 SeparationBase ()
 
 SeparationBase (const SeparationBase &s)
 
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...
 

Additional Inherited Members

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

#include <TMVA/GiniIndexWithLaplace.h>

Inheritance diagram for TMVA::GiniIndexWithLaplace:
[legend]

Constructor & Destructor Documentation

◆ GiniIndexWithLaplace() [1/2]

TMVA::GiniIndexWithLaplace::GiniIndexWithLaplace ( )
inline

Definition at line 66 of file GiniIndexWithLaplace.h.

◆ GiniIndexWithLaplace() [2/2]

TMVA::GiniIndexWithLaplace::GiniIndexWithLaplace ( const GiniIndexWithLaplace g)
inline

Definition at line 69 of file GiniIndexWithLaplace.h.

◆ ~GiniIndexWithLaplace()

virtual TMVA::GiniIndexWithLaplace::~GiniIndexWithLaplace ( )
inlinevirtual

Definition at line 72 of file GiniIndexWithLaplace.h.

Member Function Documentation

◆ GetSeparationIndex()

Double_t TMVA::GiniIndexWithLaplace::GetSeparationIndex ( const Double_t s,
const Double_t b 
)
virtual

Gini(Sample M) = 1 - (c(1)/N)^2 - (c(2)/N)^2 ....

  • (c(k)/N)^2 Where: M is a smaple of whatever N elements (events) that belong to K different classes c(k) is the number of elements that belong to class k Laplace's correction to the prob.density c/N –> (c+1)/(N+2) for just Signal and Background classes this then boils down to: Gini(Sample) = 2(s*b+s+b+1)/(s+b+2)^2

Implements TMVA::SeparationBase.

Definition at line 56 of file GiniIndexWithLaplace.cxx.


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