Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
QuickMVAProbEstimator.h
Go to the documentation of this file.
1#ifndef ROOT_TMVA_QUICKMVAPROBESTIMATOR
2#define ROOT_TMVA_QUICKMVAPROBESTIMATOR
3
4#include <vector>
5#include <algorithm>
6
7#include "TMVA/MsgLogger.h"
8
9namespace TMVA {
10
12 public:
13
14 struct EventInfo{
17 Int_t eventType; //signal or background
18 };
19 static bool compare(EventInfo e1, EventInfo e2){return e1.eventValue < e2.eventValue;}
20
21 QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000):fIsSorted(false),fNMin(nMin),fNMax(nMax){ fLogger = new MsgLogger("QuickMVAProbEstimator");}
22
23
25 void AddEvent(Double_t val, Double_t weight, Int_t type);
26
27
29
30
31 private:
32 std::vector<EventInfo> fEvtVector;
36
37 mutable MsgLogger* fLogger; ///<!
38 MsgLogger& Log() const { return *fLogger; }
39
40 ClassDef(QuickMVAProbEstimator,0); // Interface to different separation criteria used in training algorithms
41
42
43 };
44}
45
46
47#endif
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
Definition RtypesCore.h:60
bool Bool_t
Boolean (0=false, 1=true) (bool).
Definition RtypesCore.h:77
double Double_t
Double 8 bytes.
Definition RtypesCore.h:73
#define ClassDef(name, id)
Definition Rtypes.h:344
ostringstream derivative to redirect and format output
Definition MsgLogger.h:57
QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000)
static bool compare(EventInfo e1, EventInfo e2)
Double_t GetMVAProbAt(Double_t value)
void AddEvent(Double_t val, Double_t weight, Int_t type)
std::vector< EventInfo > fEvtVector
create variable transformations