Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
VarTransformHandler.h
Go to the documentation of this file.
1 /**********************************************************************************
2  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
3  * Package: TMVA *
4  * Class : VarTransformHandler *
5  * Web : http://tmva.sourceforge.net *
6  * *
7  * Description: *
8  * Implementation of unsupervised variable transformation methods *
9  * *
10  * Authors (alphabetical): *
11  * Abhinav Moudgil <abhinav.moudgil@research.iiit.ac.in> - IIIT-H, India *
12  * *
13  * Copyright (c) 2005: *
14  * CERN, Switzerland *
15  * *
16  * Redistribution and use in source and binary forms, with or without *
17  * modification, are permitted according to the terms listed in LICENSE *
18  * (http://tmva.sourceforge.net/LICENSE) *
19  **********************************************************************************/
20 
21 #ifndef ROOT_TMVA_VarTransformHandler
22 #define ROOT_TMVA_VarTransformHandler
23 
24 #include "TList.h"
25 #include "TString.h"
26 #include "TMVA/Types.h"
27 #include "TMVA/DataSetInfo.h"
28 
29 class TTree;
30 class TFile;
31 class TDirectory;
32 
33 namespace TMVA {
34 
35  class DataLoader;
36  class MethodBase;
37  class DataSetInfo;
38  class Event;
39  class DataSet;
40  class MsgLogger;
41  class DataInputHandler;
42  class VarTransformHandler {
43  public:
44 
45  VarTransformHandler(DataLoader*);
46  ~VarTransformHandler();
47 
48  TMVA::DataLoader* VarianceThreshold(Double_t threshold);
49  mutable MsgLogger* fLogger; //! message logger
50  MsgLogger& Log() const { return *fLogger; }
51 
52  private:
53 
54  DataSetInfo& fDataSetInfo;
55  DataLoader* fDataLoader;
56  const std::vector<Event*>& fEvents;
57  void UpdateNorm (Int_t ivar, Double_t x);
58  void CalcNorm();
59  void CopyDataLoader(TMVA::DataLoader* des, TMVA::DataLoader* src);
60  };
61 }
62 
63 #endif