ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
tmva
tmva
inc
TMVA
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
54
SdivSqrtSplusB
(
const
SdivSqrtSplusB
&
g
):
SeparationBase
(g) {}
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
_pythonization.g
g
Definition:
_pythonization.py:167
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
SeparationBase.h
TMVA::SdivSqrtSplusB
Definition:
SdivSqrtSplusB.h:46
TMVA::SdivSqrtSplusB::GetSeparationIndex
virtual Double_t GetSeparationIndex(const Double_t &s, const Double_t &b)
TMVA::SdivSqrtSplusB::GetSeparationGain
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...
Definition:
SdivSqrtSplusB.cxx:53
TMVA::SeparationBase
Definition:
SeparationBase.h:88
TMVA::SdivSqrtSplusB::SdivSqrtSplusB
SdivSqrtSplusB(const SdivSqrtSplusB &g)
Definition:
SdivSqrtSplusB.h:54
TMVA::SdivSqrtSplusB::SdivSqrtSplusB
SdivSqrtSplusB()
Definition:
SdivSqrtSplusB.h:51
Double_t
double Double_t
Definition:
RtypesCore.h:55
TMVA
Abstract ClassifierFactory template that handles arbitrary types.
Definition:
MethodPyAdaBoost.h:29
TMVA::SdivSqrtSplusB::~SdivSqrtSplusB
virtual ~SdivSqrtSplusB()
Definition:
SdivSqrtSplusB.h:57
TMVA::SeparationBase::fName
TString fName
Definition:
SeparationBase.h:114