A++ » TMVA » TMVA::GiniIndex

class TMVA::GiniIndex: public TMVA::SeparationBase


GiniIndex

Implementation of the GiniIndex as separation criterion

Large Gini Indices (maximum 0.5) mean , that the sample is well
mixed (same amount of signal and bkg)
bkg. Small Indices mean, well separated.
general defniniton:
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
for just Signal and Background classes this boils down to:
Gini(Sample) = 2s*b/(s+b)^2

Function Members (Methods)

public:
virtual~GiniIndex()
static TClass*Class()
const TString&TMVA::SeparationBase::GetName()
virtual Double_tTMVA::SeparationBase::GetSeparationGain(const Double_t& nSelS, const Double_t& nSelB, const Double_t& nTotS, const Double_t& nTotB)
virtual Double_tGetSeparationIndex(const Double_t& s, const Double_t& b)
TMVA::GiniIndexGiniIndex()
TMVA::GiniIndexGiniIndex(const TMVA::GiniIndex& g)
virtual TClass*IsA() const
TMVA::GiniIndex&operator=(const TMVA::GiniIndex&)
TMVA::SeparationBaseTMVA::SeparationBase::SeparationBase()
TMVA::SeparationBaseTMVA::SeparationBase::SeparationBase(const TMVA::SeparationBase& s)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

protected:
TStringTMVA::SeparationBase::fNamename of the concrete Separation Index impementation
Double_tTMVA::SeparationBase::fPrecisionCut

Class Charts

Inheritance Chart:
TMVA::SeparationBase
TMVA::GiniIndex

Function documentation

GiniIndex()
 construtor for the GiniIndex
{ fName="Gini"; }
GiniIndex(const TMVA::GiniIndex& g)
 copy constructor
{}
virtual ~GiniIndex()
destructor
{}
Double_t GetSeparationIndex(const Double_t& s, const Double_t& b)
 Return the separation index (a measure for "purity" of the sample")