Logo ROOT   master
Reference Guide
QuickMVAProbEstimator.h
Go to the documentation of this file.
1 #ifndef ROOT_TMVA_QUICKMVAPROBESTIMATOR
2 #define ROOT_TMVA_QUICKMVAPROBESTIMATOR
3 
4 #include <iostream>
5 #include <vector>
6 #include <algorithm>
7 
8 #include "TMVA/MsgLogger.h"
9 
10 namespace TMVA {
11 
13  public:
14 
15  struct EventInfo{
18  Int_t eventType; //signal or background
19  };
20  static bool compare(EventInfo e1, EventInfo e2){return e1.eventValue < e2.eventValue;}
21 
22  QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000):fIsSorted(false),fNMin(nMin),fNMax(nMax){ fLogger = new MsgLogger("QuickMVAProbEstimator");}
23 
24 
25  virtual ~QuickMVAProbEstimator(){delete fLogger;}
26  void AddEvent(Double_t val, Double_t weight, Int_t type);
27 
28 
30 
31 
32  private:
33  std::vector<EventInfo> fEvtVector;
37 
38  mutable MsgLogger* fLogger;
39  MsgLogger& Log() const { return *fLogger; }
40 
41  ClassDef(QuickMVAProbEstimator,0); // Interface to different separation critiera used in training algorithms
42 
43 
44  };
45 }
46 
47 
48 #endif
#define ClassDef(name, id)
Definition: Rtypes.h:326
void AddEvent(Double_t val, Double_t weight, Int_t type)
static bool compare(EventInfo e1, EventInfo e2)
QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000)
unsigned int UInt_t
Definition: RtypesCore.h:42
double Double_t
Definition: RtypesCore.h:55
int type
Definition: TGX11.cxx:120
ostringstream derivative to redirect and format output
Definition: MsgLogger.h:59
create variable transformations
Double_t GetMVAProbAt(Double_t value)
std::vector< EventInfo > fEvtVector