Logo ROOT  
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
10namespace 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
26 void AddEvent(Double_t val, Double_t weight, Int_t type);
27
28
30
31
32 private:
33 std::vector<EventInfo> fEvtVector;
37
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
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
int type
Definition: TGX11.cxx:120
ostringstream derivative to redirect and format output
Definition: MsgLogger.h:59
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