Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
VariableRearrangeTransform.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 : VariableRearrangeTransform *
8 * *
9 * *
10 * Description: *
11 * rearrangement of input variables *
12 * *
13 * Authors (alphabetical): *
14 * Peter Speckmayer <Peter.Speckmayer@cern.ch> - CERN, Switzerland *
15 * *
16 * Copyright (c) 2005: *
17 * CERN, Switzerland *
18 * U. of Victoria, Canada *
19 * MPI-K Heidelberg, Germany *
20 * *
21 * Redistribution and use in source and binary forms, with or without *
22 * modification, are permitted according to the terms listed in LICENSE *
23 * (see tmva/doc/LICENSE) *
24 **********************************************************************************/
25
26#ifndef ROOT_TMVA_VariableRearrangeTransform
27#define ROOT_TMVA_VariableRearrangeTransform
28
29//////////////////////////////////////////////////////////////////////////
30// //
31// VariableRearrangeTransform //
32// //
33// rearrangement of input variables //
34// //
35//////////////////////////////////////////////////////////////////////////
36
38
39#include <vector>
40
41namespace TMVA {
42
44
45 public:
46
47 typedef std::vector<Float_t> FloatVector;
48
50 virtual ~VariableRearrangeTransform( void );
51
52 void Initialize();
53 Bool_t PrepareTransformation (const std::vector<Event*>&);
54
55 virtual const Event* Transform(const Event* const, Int_t cls ) const;
56 virtual const Event* InverseTransform( const Event* const, Int_t cls ) const;
57
58 void WriteTransformationToStream ( std::ostream& ) const {}
59 void ReadTransformationFromStream( std::istream&, const TString& ) { SetCreated(); }
60
61 virtual void AttachXMLTo(void* parent);
62 virtual void ReadFromXML( void* trfnode );
63
64 virtual void PrintTransformation( std::ostream & o );
65
66 // writer of function code
67 virtual void MakeFunction( std::ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls );
68
69 // provides string vector giving explicit transformation
70 std::vector<TString>* GetTransformationStrings( Int_t cls ) const;
71
72 private:
73
74 ClassDef(VariableRearrangeTransform,0); // Variable transformation: normalization
75 };
76
77} // namespace TMVA
78
79#endif
unsigned int UInt_t
Definition RtypesCore.h:46
#define ClassDef(name, id)
Definition Rtypes.h:342
Class that contains all the data information.
Definition DataSetInfo.h:62
Rearrangement of input variables.
virtual void ReadFromXML(void *trfnode)
Read the transformation matrices from the xml node.
virtual void AttachXMLTo(void *parent)
create XML description of Rearrange transformation
virtual const Event * Transform(const Event *const, Int_t cls) const
virtual void PrintTransformation(std::ostream &o)
prints the transformation ranges
virtual void MakeFunction(std::ostream &fout, const TString &fncName, Int_t part, UInt_t trCounter, Int_t cls)
creates a normalizing function
virtual const Event * InverseTransform(const Event *const, Int_t cls) const
void ReadTransformationFromStream(std::istream &, const TString &)
Bool_t PrepareTransformation(const std::vector< Event * > &)
prepare transformation --> (nothing to do)
void WriteTransformationToStream(std::ostream &) const
std::vector< TString > * GetTransformationStrings(Int_t cls) const
creates string with variable transformations applied
void Initialize()
initialization of the rearrangement transformation (nothing to do)
Linear interpolation class.
Basic string class.
Definition TString.h:139
create variable transformations