Logo ROOT  
Reference Guide
MisClassificationError.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 : MisClassificationError *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Implementation of the MisClassificationError as separation *
12  * criterion: 1-max(p, 1-p) *
13  * *
14  * *
15  * Authors (alphabetical): *
16  * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
17  * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
18  * Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada *
19  * *
20  * Copyright (c) 2005: *
21  * CERN, Switzerland *
22  * U. of Victoria, Canada *
23  * Heidelberg U., Germany *
24  * *
25  * Redistribution and use in source and binary forms, with or without *
26  * modification, are permitted according to the terms listed in LICENSE *
27  * (http://tmva.sourceforge.net/LICENSE) *
28  **********************************************************************************/
29 
30 #ifndef ROOT_TMVA_MisClassificationError
31 #define ROOT_TMVA_MisClassificationError
32 
33 //////////////////////////////////////////////////////////////////////////
34 // //
35 // MisClassificationError //
36 // //
37 // Implementation of the MisClassificationError as separation criterion //
38 // //
39 // criterion: 1-max(p, 1-p) //
40 //////////////////////////////////////////////////////////////////////////
41 
42 #include "TMVA/SeparationBase.h"
43 
44 namespace TMVA {
45 
47 
48  public:
49 
50  // constructor for the Misclassification error
51  MisClassificationError() { fName = "MisCl"; }
52 
53  // copy constructor
55 
56  // destructor
58 
59  // Return the separation index: 1-max(p,1-p)
60  virtual Double_t GetSeparationIndex( const Double_t s, const Double_t b );
61  protected:
62 
63  ClassDef(MisClassificationError,0); // Implementation of the MisClassificationError as separation criterion
64  };
65 
66 } // namespace TMVA
67 
68 #endif
69 
70 
TMVA::MisClassificationError::MisClassificationError
MisClassificationError(const MisClassificationError &g)
Definition: MisClassificationError.h:54
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
TMVA::MisClassificationError::MisClassificationError
MisClassificationError()
Definition: MisClassificationError.h:51
b
#define b(i)
Definition: RSha256.hxx:100
TMVA::SeparationBase::fName
TString fName
Definition: SeparationBase.h:108
TMVA::MisClassificationError::GetSeparationIndex
virtual Double_t GetSeparationIndex(const Double_t s, const Double_t b)
Misclassification error criterion: 1-max(p, 1-p) (p: purity= s/(s+b))
Definition: MisClassificationError.cxx:43
SeparationBase.h
TMVA::SeparationBase
An interface to calculate the "SeparationGain" for different separation criteria used in various trai...
Definition: SeparationBase.h:82
Double_t
double Double_t
Definition: RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TMVA::MisClassificationError
Implementation of the MisClassificationError as separation criterion.
Definition: MisClassificationError.h:46
TMVA
create variable transformations
Definition: GeneticMinimizer.h:22
TMVA::MisClassificationError::~MisClassificationError
virtual ~MisClassificationError()
Definition: MisClassificationError.h:57
g
#define g(i)
Definition: RSha256.hxx:105