Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:22:54

0001 // @(#)root/tmva $Id$
0002 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
0003 
0004 /**********************************************************************************
0005  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
0006  * Package: TMVA                                                                  *
0007  * Class  : MisClassificationError                                                *
0008  *                                             *
0009  *                                                                                *
0010  * Description:                                                                   *
0011  *      Implementation of the MisClassificationError as separation                *
0012  *      criterion: 1-max(p, 1-p)                                                  *
0013  *                                                                                *
0014  *                                                                                *
0015  * Authors (alphabetical):                                                        *
0016  *      Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland              *
0017  *      Helge Voss      <Helge.Voss@cern.ch>     - MPI-K Heidelberg, Germany      *
0018  *      Kai Voss        <Kai.Voss@cern.ch>       - U. of Victoria, Canada         *
0019  *                                                                                *
0020  * Copyright (c) 2005:                                                            *
0021  *      CERN, Switzerland                                                         *
0022  *      U. of Victoria, Canada                                                    *
0023  *      Heidelberg U., Germany                                                    *
0024  *                                                                                *
0025  * Redistribution and use in source and binary forms, with or without             *
0026  * modification, are permitted according to the terms listed in LICENSE           *
0027  * (see tmva/doc/LICENSE)                                          *
0028  **********************************************************************************/
0029 
0030 #ifndef ROOT_TMVA_MisClassificationError
0031 #define ROOT_TMVA_MisClassificationError
0032 
0033 //////////////////////////////////////////////////////////////////////////
0034 //                                                                      //
0035 // MisClassificationError                                               //
0036 //                                                                      //
0037 // Implementation of the MisClassificationError as separation criterion //
0038 //                                                                      //
0039 //       criterion: 1-max(p, 1-p)                                       //
0040 //////////////////////////////////////////////////////////////////////////
0041 
0042 #include "TMVA/SeparationBase.h"
0043 
0044 namespace TMVA {
0045 
0046    class MisClassificationError : public SeparationBase {
0047 
0048    public:
0049 
0050       // constructor for the Misclassification error
0051       MisClassificationError() { fName = "MisCl"; }
0052 
0053       // copy constructor
0054    MisClassificationError( const MisClassificationError& g): SeparationBase(g) {}
0055 
0056       // destructor
0057       virtual ~MisClassificationError() {}
0058 
0059       // Return the separation index: 1-max(p,1-p)
0060       virtual Double_t  GetSeparationIndex( const Double_t s, const Double_t b );
0061    protected:
0062 
0063       ClassDef(MisClassificationError,0); // Implementation of the MisClassificationError as separation criterion
0064    };
0065 
0066 } // namespace TMVA
0067 
0068 #endif
0069 
0070