Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:11

0001 /**********************************************************************************
0002  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
0003  * Package: TMVA                                                                  *
0004  * Class  : VarTransformHandler                                                   *
0005  *                                             *
0006  *                                                                                *
0007  * Description:                                                                   *
0008  *      Implementation of unsupervised variable transformation methods            *
0009  *                                                                                *
0010  * Authors (alphabetical):                                                        *
0011  *      Abhinav Moudgil <abhinav.moudgil@research.iiit.ac.in> - IIIT-H, India     *
0012  *                                                                                *
0013  * Copyright (c) 2005:                                                            *
0014  *      CERN, Switzerland                                                         *
0015  *                                                                                *
0016  * Redistribution and use in source and binary forms, with or without             *
0017  * modification, are permitted according to the terms listed in LICENSE           *
0018  * (see tmva/doc/LICENSE)                                          *
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;             //! message logger
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