File indexing completed on 2025-01-18 10:11:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #ifndef ROOT_TMVA_VarTransformHandler
0022 #define ROOT_TMVA_VarTransformHandler
0023
0024 #include "TMVA/Types.h"
0025 #include "TMVA/DataSetInfo.h"
0026 #include <vector>
0027
0028 class TTree;
0029 class TFile;
0030 class TDirectory;
0031
0032 namespace TMVA {
0033
0034 class DataLoader;
0035 class MethodBase;
0036 class DataSetInfo;
0037 class Event;
0038 class DataSet;
0039 class MsgLogger;
0040 class DataInputHandler;
0041 class VarTransformHandler {
0042 public:
0043
0044 VarTransformHandler(DataLoader*);
0045 ~VarTransformHandler();
0046
0047 TMVA::DataLoader* VarianceThreshold(Double_t threshold);
0048 mutable MsgLogger* fLogger;
0049 MsgLogger& Log() const { return *fLogger; }
0050
0051 private:
0052
0053 DataSetInfo& fDataSetInfo;
0054 DataLoader* fDataLoader;
0055 const std::vector<Event*>& fEvents;
0056 void UpdateNorm (Int_t ivar, Double_t x);
0057 void CalcNorm();
0058 void CopyDataLoader(TMVA::DataLoader* des, TMVA::DataLoader* src);
0059 };
0060 }
0061
0062 #endif