Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 * *
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 * (see tmva/doc/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#include <vector>
42
43namespace TMVA {
44
46
47 public:
48
50 virtual ~VariableIdentityTransform( void ) {}
51
52 void Initialize() override;
53 Bool_t PrepareTransformation (const std::vector<Event*>& ) override;
54
55 void WriteTransformationToStream ( std::ostream& ) const override {}
56 void ReadTransformationFromStream( std::istream&, const TString& ) override { SetCreated(); }
57
58 void AttachXMLTo(void* parent) override;
59 void ReadFromXML( void* trfnode ) override;
60
61 const Event* Transform(const Event* const, Int_t cls ) const override;
62 const Event* InverseTransform(const Event* const ev, Int_t cls ) const override { return Transform( ev, cls ); }
63
64 // writer of function code
65 void MakeFunction(std::ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls ) override;
66
67 ClassDefOverride(VariableIdentityTransform,0); // Variable transformation: identity
68 };
69
70} // namespace TMVA
71
72#endif
bool Bool_t
Boolean (0=false, 1=true) (bool)
Definition RtypesCore.h:77
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
Definition RtypesCore.h:60
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
Class that contains all the data information.
Definition DataSetInfo.h:62
void MakeFunction(std::ostream &fout, const TString &fncName, Int_t part, UInt_t trCounter, Int_t cls) override
creates C++ code fragment of the identity transform for inclusion in standalone C++ class
void WriteTransformationToStream(std::ostream &) const override
void ReadFromXML(void *trfnode) override
reding the identity transformation from XML
Bool_t PrepareTransformation(const std::vector< Event * > &) override
the identity does not need to be prepared, only calculate the normalization
VariableIdentityTransform(DataSetInfo &dsi)
constructor
void Initialize() override
nothing to initialize
const Event * InverseTransform(const Event *const ev, Int_t cls) const override
void AttachXMLTo(void *parent) override
identity transformation to write to XML Log() << kFATAL << "Please implement writing of transformatio...
const Event * Transform(const Event *const, Int_t cls) const override
identity transform returns same event
void ReadTransformationFromStream(std::istream &, const TString &) override
Linear interpolation class.
Basic string class.
Definition TString.h:138
create variable transformations