Logo ROOT   6.08/07
Reference Guide
SdivSqrtSplusB.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : SdivSqrtSplusB *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: Implementation of the SdivSqrtSplusB as separation criterion *
11  * S/sqrt(S + B) *
12  * *
13  * Authors (alphabetical): *
14  * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15  * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
16  * Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada *
17  * *
18  * Copyright (c) 2005: *
19  * CERN, Switzerland *
20  * U. of Victoria, Canada *
21  * Heidelberg U., Germany *
22  * *
23  * Redistribution and use in source and binary forms, with or without *
24  * modification, are permitted according to the terms listed in LICENSE *
25  * (http://tmva.sourceforge.net/LICENSE) *
26  **********************************************************************************/
27 
28 #ifndef ROOT_TMVA_SdivSqrtSplusB
29 #define ROOT_TMVA_SdivSqrtSplusB
30 
31 //////////////////////////////////////////////////////////////////////////
32 // //
33 // SdivSqrtSplusB //
34 // //
35 // Implementation of the SdivSqrtSplusB as separation criterion //
36 // Index = S/sqrt(S+B) (statistical significance) //
37 // //
38 //////////////////////////////////////////////////////////////////////////
39 
40 #ifndef ROOT_TMVA_SeparationBase
41 #include "TMVA/SeparationBase.h"
42 #endif
43 
44 namespace TMVA {
45 
46  class SdivSqrtSplusB : public SeparationBase {
47 
48  public:
49 
50  //constructor for the "statistical significance" index
51  SdivSqrtSplusB(): SeparationBase() { fName = "StatSig"; }
52 
53  // copy constructor
55 
56  //destructor
57  virtual ~SdivSqrtSplusB() {}
58 
59  // Return the gain in separation of the original sample is splitted in two sub-samples
60  // (N * Index_parent) - (N_left * Index_left) - (N_right * Index_right)
61  virtual Double_t GetSeparationGain( const Double_t& nSelS, const Double_t& nSelB,
62  const Double_t& nTotS, const Double_t& nTotB );
63  // return the Index (S/sqrt(S+B))
64  virtual Double_t GetSeparationIndex( const Double_t &s, const Double_t &b );
65 
66  protected:
67 
68  ClassDef(SdivSqrtSplusB,0); // Implementation of the SdivSqrtSplusB as separation criterion
69  };
70 
71 } // namespace TMVA
72 
73 #endif
74 
#define ClassDef(name, id)
Definition: Rtypes.h:254
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 th...
virtual Double_t GetSeparationIndex(const Double_t &s, const Double_t &b)
Index = S/sqrt(S+B) (statistical significance)
SdivSqrtSplusB(const SdivSqrtSplusB &g)
double Double_t
Definition: RtypesCore.h:55
Abstract ClassifierFactory template that handles arbitrary types.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630