Logo ROOT   6.12/07
Reference Guide
VariableIdentityTransform.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : VariableIdentityTransform *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Identity transform *
12  * *
13  * Authors (alphabetical): *
14  * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15  * Joerg Stelzer <Joerg.Stelzer@cern.ch> - CERN, Switzerland *
16  * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
17  * *
18  * Copyright (c) 2005: *
19  * CERN, Switzerland *
20  * U. of Victoria, Canada *
21  * MPI-K Heidelberg, Germany *
22  * *
23  * Redistribution and use in source and binary forms, with or without *
24  * modification, are permitted according to the terms listed in LICENSE *
25  * (http://tmva.sourceforge.net/LICENSE) *
26  **********************************************************************************/
27 
28 #ifndef ROOT_TMVA_VariableIdentityTransform
29 #define ROOT_TMVA_VariableIdentityTransform
30 
31 //////////////////////////////////////////////////////////////////////////
32 // //
33 // VariableIdentityTransform //
34 // //
35 // Linear interpolation class //
36 // //
37 //////////////////////////////////////////////////////////////////////////
38 
40 
41 namespace TMVA {
42 
44 
45  public:
46 
48  virtual ~VariableIdentityTransform( void ) {}
49 
50  void Initialize();
51  Bool_t PrepareTransformation (const std::vector<Event*>& );
52 
53  void WriteTransformationToStream ( std::ostream& ) const {}
54  void ReadTransformationFromStream( std::istream&, const TString& ) { SetCreated(); }
55 
56  virtual void AttachXMLTo(void* parent);
57  virtual void ReadFromXML( void* trfnode );
58 
59  virtual const Event* Transform(const Event* const, Int_t cls ) const;
60  virtual const Event* InverseTransform(const Event* const ev, Int_t cls ) const { return Transform( ev, cls ); }
61 
62  // writer of function code
63  virtual void MakeFunction(std::ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls );
64 
65  ClassDef(VariableIdentityTransform,0); // Variable transformation: identity
66  };
67 
68 } // namespace TMVA
69 
70 #endif
void Initialize()
nothing to initialize
void WriteTransformationToStream(std::ostream &) const
Basic string class.
Definition: TString.h:125
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void MakeFunction(std::ostream &fout, const TString &fncName, Int_t part, UInt_t trCounter, Int_t cls)
creates C++ code fragment of the identity transform for inclusion in standalone C++ class ...
virtual const Event * Transform(const Event *const, Int_t cls) const
identity transform returns same event
#define ClassDef(name, id)
Definition: Rtypes.h:320
Class that contains all the data information.
Definition: DataSetInfo.h:60
virtual void ReadFromXML(void *trfnode)
reding the identity transformation from XML
Linear interpolation class.
void ReadTransformationFromStream(std::istream &, const TString &)
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void AttachXMLTo(void *parent)
identity transformation to write to XML Log() << kFATAL << "Please implement writing of transformatio...
virtual const Event * InverseTransform(const Event *const ev, Int_t cls) const
VariableIdentityTransform(DataSetInfo &dsi)
constructor
Abstract ClassifierFactory template that handles arbitrary types.
Bool_t PrepareTransformation(const std::vector< Event *> &)
the identity does not need to be prepared, only calculate the normalization