ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
GiniIndexWithLaplace.cxx File Reference
#include "TMVA/GiniIndexWithLaplace.h"
#include "Rtypes.h"
Include dependency graph for GiniIndexWithLaplace.cxx:

Go to the source code of this file.

Functions

 ClassImp (TMVA::GiniIndexWithLaplace) Double_t TMVA
 Gini(Sample M) = 1 - (c(1)/N)^2 - (c(2)/N)^2 .... More...
 

Function Documentation

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

Definition at line 45 of file GiniIndexWithLaplace.cxx.