00001 // @(#)root/tmva $Id: SdivSqrtSplusB.cxx 29122 2009-06-22 06:51:30Z brun $ 00002 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss 00003 00004 /********************************************************************************** 00005 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * 00006 * Package: TMVA * 00007 * Class : SdivSqrtSplusB * 00008 * Web : http://tmva.sourceforge.net * 00009 * * 00010 * Description: Implementation of the SdivSqrtSplusB as separation criterion * 00011 * s / sqrt( s+b ) * 00012 * * 00013 * * 00014 * Authors (alphabetical): * 00015 * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland * 00016 * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany * 00017 * Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada * 00018 * * 00019 * Copyright (c) 2005: * 00020 * CERN, Switzerland * 00021 * U. of Victoria, Canada * 00022 * Heidelberg U., Germany * 00023 * * 00024 * Redistribution and use in source and binary forms, with or without * 00025 * modification, are permitted according to the terms listed in LICENSE * 00026 * (http://tmva.sourceforge.net/LICENSE) * 00027 **********************************************************************************/ 00028 00029 #include "TMath.h" 00030 #include "TMVA/SdivSqrtSplusB.h" 00031 00032 ClassImp(TMVA::SdivSqrtSplusB) 00033 00034 //_______________________________________________________________________ 00035 Double_t TMVA::SdivSqrtSplusB::GetSeparationIndex( const Double_t &s, const Double_t &b ) 00036 { 00037 // Index = S/sqrt(S+B) (statistical significance) 00038 if (s+b > 0) return s / TMath::Sqrt(s+b); 00039 else return 0; 00040 } 00041