ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
tmva
tmva
inc
TMVA
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
* Web : http://tmva.sourceforge.net *
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
* (http://tmva.sourceforge.net/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
37
#ifndef ROOT_TMVA_VariableTransformBase
38
#include "
TMVA/VariableTransformBase.h
"
39
#endif
40
41
namespace
TMVA
{
42
43
class
VariableRearrangeTransform
:
public
VariableTransformBase
{
44
45
public
:
46
47
typedef
std::vector<Float_t>
FloatVector
;
48
49
VariableRearrangeTransform
(
DataSetInfo
& dsi );
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
TMVA::VariableRearrangeTransform
Definition:
VariableRearrangeTransform.h:43
TMVA::VariableRearrangeTransform::Initialize
void Initialize()
initialization of the rearrangement transformation (nothing to do)
Definition:
VariableRearrangeTransform.cxx:61
TMVA::VariableTransformBase::SetCreated
void SetCreated(Bool_t c=kTRUE)
Definition:
VariableTransformBase.h:135
TMVA::VariableRearrangeTransform::ReadTransformationFromStream
void ReadTransformationFromStream(std::istream &, const TString &)
Definition:
VariableRearrangeTransform.h:59
TMVA::VariableRearrangeTransform::MakeFunction
virtual void MakeFunction(std::ostream &fout, const TString &fncName, Int_t part, UInt_t trCounter, Int_t cls)
creates a normalizing function
Definition:
VariableRearrangeTransform.cxx:168
TMVA::VariableRearrangeTransform::InverseTransform
virtual const Event * InverseTransform(const Event *const, Int_t cls) const
Definition:
VariableRearrangeTransform.cxx:101
TString
Basic string class.
Definition:
TString.h:137
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
TMVA::VariableRearrangeTransform::FloatVector
std::vector< Float_t > FloatVector
Definition:
VariableRearrangeTransform.h:47
TMVA::VariableRearrangeTransform::PrepareTransformation
Bool_t PrepareTransformation(const std::vector< Event * > &)
prepare transformation –> (nothing to do)
Definition:
VariableRearrangeTransform.cxx:68
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TMVA::VariableRearrangeTransform::Transform
virtual const Event * Transform(const Event *const, Int_t cls) const
Definition:
VariableRearrangeTransform.cxx:82
TMVA::VariableRearrangeTransform::PrintTransformation
virtual void PrintTransformation(std::ostream &o)
prints the transformation ranges
Definition:
VariableRearrangeTransform.cxx:161
TMVA::VariableRearrangeTransform::GetTransformationStrings
std::vector< TString > * GetTransformationStrings(Int_t cls) const
creates string with variable transformations applied
Definition:
VariableRearrangeTransform.cxx:122
TMVA::DataSetInfo
Definition:
DataSetInfo.h:78
TMVA::VariableTransformBase
Definition:
VariableTransformBase.h:67
TMVA::VariableRearrangeTransform::ReadFromXML
virtual void ReadFromXML(void *trfnode)
// Read the transformation matrices from the xml node
Definition:
VariableRearrangeTransform.cxx:144
TMVA::Event
Definition:
Event.h:57
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
TMVA::VariableRearrangeTransform::WriteTransformationToStream
void WriteTransformationToStream(std::ostream &) const
Definition:
VariableRearrangeTransform.h:58
TMVA::VariableRearrangeTransform::VariableRearrangeTransform
VariableRearrangeTransform(DataSetInfo &dsi)
TMVA
Abstract ClassifierFactory template that handles arbitrary types.
Definition:
MethodPyAdaBoost.h:29
VariableTransformBase.h
TMVA::VariableRearrangeTransform::AttachXMLTo
virtual void AttachXMLTo(void *parent)
// create XML description of Rearrange transformation
Definition:
VariableRearrangeTransform.cxx:133
TMVA::VariableRearrangeTransform::~VariableRearrangeTransform
virtual ~VariableRearrangeTransform(void)
Definition:
VariableRearrangeTransform.cxx:54