1 #ifndef ROOT_TMVA_QUICKMVAPROBESTIMATOR
2 #define ROOT_TMVA_QUICKMVAPROBESTIMATOR
12 class QuickMVAProbEstimator {
20 static bool compare(EventInfo e1, EventInfo e2){
return e1.eventValue < e2.eventValue;}
22 QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000):fIsSorted(false),fNMin(nMin),fNMax(nMax){ fLogger =
new MsgLogger(
"QuickMVAProbEstimator");}
25 virtual ~QuickMVAProbEstimator(){
delete fLogger;}
26 void AddEvent(Double_t val, Double_t weight, Int_t type);
29 Double_t GetMVAProbAt(Double_t value);
33 std::vector<EventInfo> fEvtVector;
38 mutable MsgLogger* fLogger;
39 MsgLogger& Log()
const {
return *fLogger; }
41 ClassDef(QuickMVAProbEstimator,0);