|
||||
File indexing completed on 2025-01-18 10:11:11
0001 // @(#)root/tmva $Id$ 0002 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss 0003 0004 /********************************************************************************** 0005 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * 0006 * Package: TMVA * 0007 * Class : VariableIdentityTransform * 0008 * * 0009 * * 0010 * Description: * 0011 * Identity transform * 0012 * * 0013 * Authors (alphabetical): * 0014 * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland * 0015 * Joerg Stelzer <Joerg.Stelzer@cern.ch> - CERN, Switzerland * 0016 * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany * 0017 * * 0018 * Copyright (c) 2005: * 0019 * CERN, Switzerland * 0020 * U. of Victoria, Canada * 0021 * MPI-K Heidelberg, Germany * 0022 * * 0023 * Redistribution and use in source and binary forms, with or without * 0024 * modification, are permitted according to the terms listed in LICENSE * 0025 * (see tmva/doc/LICENSE) * 0026 **********************************************************************************/ 0027 0028 #ifndef ROOT_TMVA_VariableIdentityTransform 0029 #define ROOT_TMVA_VariableIdentityTransform 0030 0031 ////////////////////////////////////////////////////////////////////////// 0032 // // 0033 // VariableIdentityTransform // 0034 // // 0035 // Linear interpolation class // 0036 // // 0037 ////////////////////////////////////////////////////////////////////////// 0038 0039 #include "TMVA/VariableTransformBase.h" 0040 0041 #include <vector> 0042 0043 namespace TMVA { 0044 0045 class VariableIdentityTransform : public VariableTransformBase { 0046 0047 public: 0048 0049 VariableIdentityTransform( DataSetInfo& dsi ); 0050 virtual ~VariableIdentityTransform( void ) {} 0051 0052 void Initialize(); 0053 Bool_t PrepareTransformation (const std::vector<Event*>& ); 0054 0055 void WriteTransformationToStream ( std::ostream& ) const {} 0056 void ReadTransformationFromStream( std::istream&, const TString& ) { SetCreated(); } 0057 0058 virtual void AttachXMLTo(void* parent); 0059 virtual void ReadFromXML( void* trfnode ); 0060 0061 virtual const Event* Transform(const Event* const, Int_t cls ) const; 0062 virtual const Event* InverseTransform(const Event* const ev, Int_t cls ) const { return Transform( ev, cls ); } 0063 0064 // writer of function code 0065 virtual void MakeFunction(std::ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls ); 0066 0067 ClassDef(VariableIdentityTransform,0); // Variable transformation: identity 0068 }; 0069 0070 } // namespace TMVA 0071 0072 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |