ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::VariableInfo Class Reference

Definition at line 52 of file VariableInfo.h.

Public Member Functions

 VariableInfo (const TString &expression, const TString &title, const TString &unit, Int_t varCounter, char varType= 'F', void *external=0, Double_t min=0, Double_t max=0, Bool_t normalized=kTRUE)
 constructor More...
 
 VariableInfo ()
 default constructor More...
 
 VariableInfo (const VariableInfo &other)
 copy constructor More...
 
 ~VariableInfo ()
 
const TStringGetExpression () const
 
const TStringGetInternalName () const
 
const TStringGetLabel () const
 
const TStringGetTitle () const
 
const TStringGetUnit () const
 
char GetVarType () const
 
Double_t GetMin () const
 
Double_t GetMax () const
 
Double_t GetMean () const
 
Double_t GetRMS () const
 
void SetMin (Double_t v)
 
void SetMax (Double_t v)
 
void SetMean (Double_t v)
 
void SetRMS (Double_t v)
 
void SetExternalLink (void *p)
 
void ResetMinMax ()
 
void WriteToStream (std::ostream &o) const
 write VariableInfo to stream More...
 
void ReadFromStream (std::istream &istr)
 
void ReadFromXML (void *varnode)
 read VariableInfo from stream More...
 
void AddToXML (void *varnode)
 write class to XML More...
 
voidGetExternalLink () const
 
VariableInfooperator= (const TMVA::VariableInfo &rhs)
 comparison operator More...
 

Private Member Functions

void SetExpression (const TString &s)
 
void SetLabel (const TString &s)
 
void SetTitle (const TString &s)
 
void SetUnit (const TString &s)
 
void SetInternalVarName (const TString &s)
 
void SetVarType (char c)
 

Private Attributes

TString fExpression
 
TString fInternalName
 original variable expression (can be a formula) More...
 
TString fLabel
 internal variable name (needs to be regular expression) More...
 
TString fTitle
 variable label, set by "mylabel := var1 + var2", this is a shortcut More...
 
TString fUnit
 title for axis labels in plots; set by second string in AddVariable More...
 
Char_t fVarType
 unit for axis labels in plots; set by third string in AddVariable More...
 
Double_t fXminNorm
 the variable type to be used internally ('F'-default or 'I') More...
 
Double_t fXmaxNorm
 minimum value for correlated/decorrelated/PCA variable More...
 
Double_t fXmeanNorm
 maximum value for correlated/decorrelated/PCA variable More...
 
Double_t fXrmsNorm
 mean value for correlated/decorrelated/PCA variable More...
 
Bool_t fNormalized
 rms value for correlated/decorrelated/PCA variable More...
 
voidfExternalData
 variable gets normalized More...
 
TString fExternalDataType
 if the variable content is linked to an external pointer More...
 
Int_t fVarCounter
 type of external variable (int, long, double, float) - to be done JS More...
 

#include <TMVA/VariableInfo.h>

Constructor & Destructor Documentation

TMVA::VariableInfo::VariableInfo ( const TString expression,
const TString title,
const TString unit,
Int_t  varCounter,
char  varType = 'F',
void external = 0,
Double_t  min = 0,
Double_t  max = 0,
Bool_t  normalized = kTRUE 
)

constructor

Definition at line 40 of file VariableInfo.cxx.

TMVA::VariableInfo::VariableInfo ( )

default constructor

Definition at line 79 of file VariableInfo.cxx.

TMVA::VariableInfo::VariableInfo ( const VariableInfo other)

copy constructor

Definition at line 99 of file VariableInfo.cxx.

TMVA::VariableInfo::~VariableInfo ( )
inline

Definition at line 61 of file VariableInfo.h.

Member Function Documentation

void TMVA::VariableInfo::AddToXML ( void varnode)
const TString& TMVA::VariableInfo::GetExpression ( ) const
inline
void* TMVA::VariableInfo::GetExternalLink ( ) const
inline
const TString& TMVA::VariableInfo::GetInternalName ( ) const
inline
const TString& TMVA::VariableInfo::GetLabel ( ) const
inline
Double_t TMVA::VariableInfo::GetMax ( ) const
inline

Definition at line 70 of file VariableInfo.h.

Referenced by TMVA::ResultsRegression::DeviationAsAFunctionOf().

Double_t TMVA::VariableInfo::GetMean ( void  ) const
inline

Definition at line 71 of file VariableInfo.h.

Double_t TMVA::VariableInfo::GetMin ( ) const
inline

Definition at line 69 of file VariableInfo.h.

Referenced by TMVA::ResultsRegression::DeviationAsAFunctionOf().

Double_t TMVA::VariableInfo::GetRMS ( void  ) const
inline

Definition at line 72 of file VariableInfo.h.

const TString& TMVA::VariableInfo::GetTitle ( ) const
inline
const TString& TMVA::VariableInfo::GetUnit ( ) const
inline

Definition at line 66 of file VariableInfo.h.

Referenced by TMVA::TransformationHandler::PlotVariables().

char TMVA::VariableInfo::GetVarType ( ) const
inline
TMVA::VariableInfo & TMVA::VariableInfo::operator= ( const TMVA::VariableInfo rhs)

comparison operator

Definition at line 119 of file VariableInfo.cxx.

void TMVA::VariableInfo::ReadFromStream ( std::istream &  istr)

Definition at line 149 of file VariableInfo.cxx.

Referenced by TMVA::MethodBase::ReadVarsFromStream().

void TMVA::VariableInfo::ReadFromXML ( void varnode)
void TMVA::VariableInfo::ResetMinMax ( )
inline

Definition at line 79 of file VariableInfo.h.

void TMVA::VariableInfo::SetExpression ( const TString s)
inlineprivate

Definition at line 93 of file VariableInfo.h.

void TMVA::VariableInfo::SetExternalLink ( void p)
inline
void TMVA::VariableInfo::SetInternalVarName ( const TString s)
inlineprivate

Definition at line 97 of file VariableInfo.h.

void TMVA::VariableInfo::SetLabel ( const TString s)
inlineprivate

Definition at line 94 of file VariableInfo.h.

void TMVA::VariableInfo::SetMax ( Double_t  v)
inline

Definition at line 75 of file VariableInfo.h.

Referenced by TMVA::DataSetFactory::CalcMinMax().

void TMVA::VariableInfo::SetMean ( Double_t  v)
inline

Definition at line 76 of file VariableInfo.h.

void TMVA::VariableInfo::SetMin ( Double_t  v)
inline

Definition at line 74 of file VariableInfo.h.

Referenced by TMVA::DataSetFactory::CalcMinMax().

void TMVA::VariableInfo::SetRMS ( Double_t  v)
inline

Definition at line 77 of file VariableInfo.h.

void TMVA::VariableInfo::SetTitle ( const TString s)
inlineprivate

Definition at line 95 of file VariableInfo.h.

void TMVA::VariableInfo::SetUnit ( const TString s)
inlineprivate

Definition at line 96 of file VariableInfo.h.

void TMVA::VariableInfo::SetVarType ( char  c)
inlineprivate

Definition at line 98 of file VariableInfo.h.

void TMVA::VariableInfo::WriteToStream ( std::ostream &  o) const

write VariableInfo to stream

Definition at line 134 of file VariableInfo.cxx.

Member Data Documentation

TString TMVA::VariableInfo::fExpression
private

Definition at line 100 of file VariableInfo.h.

Referenced by GetExpression(), operator=(), SetExpression(), and VariableInfo().

void* TMVA::VariableInfo::fExternalData
private

variable gets normalized

Definition at line 111 of file VariableInfo.h.

Referenced by GetExternalLink(), and SetExternalLink().

TString TMVA::VariableInfo::fExternalDataType
private

if the variable content is linked to an external pointer

Definition at line 112 of file VariableInfo.h.

TString TMVA::VariableInfo::fInternalName
private

original variable expression (can be a formula)

Definition at line 101 of file VariableInfo.h.

Referenced by GetInternalName(), operator=(), SetInternalVarName(), and VariableInfo().

TString TMVA::VariableInfo::fLabel
private

internal variable name (needs to be regular expression)

Definition at line 102 of file VariableInfo.h.

Referenced by GetLabel(), SetLabel(), and VariableInfo().

Bool_t TMVA::VariableInfo::fNormalized
private

rms value for correlated/decorrelated/PCA variable

Definition at line 110 of file VariableInfo.h.

TString TMVA::VariableInfo::fTitle
private

variable label, set by "mylabel := var1 + var2", this is a shortcut

Definition at line 103 of file VariableInfo.h.

Referenced by GetTitle(), SetTitle(), and VariableInfo().

TString TMVA::VariableInfo::fUnit
private

title for axis labels in plots; set by second string in AddVariable

Definition at line 104 of file VariableInfo.h.

Referenced by GetUnit(), SetUnit(), and VariableInfo().

Int_t TMVA::VariableInfo::fVarCounter
private

type of external variable (int, long, double, float) - to be done JS

Definition at line 113 of file VariableInfo.h.

Char_t TMVA::VariableInfo::fVarType
private

unit for axis labels in plots; set by third string in AddVariable

Definition at line 105 of file VariableInfo.h.

Referenced by GetVarType(), operator=(), and SetVarType().

Double_t TMVA::VariableInfo::fXmaxNorm
private

minimum value for correlated/decorrelated/PCA variable

Definition at line 107 of file VariableInfo.h.

Referenced by GetMax(), operator=(), ResetMinMax(), SetMax(), and VariableInfo().

Double_t TMVA::VariableInfo::fXmeanNorm
private

maximum value for correlated/decorrelated/PCA variable

Definition at line 108 of file VariableInfo.h.

Referenced by GetMean(), and SetMean().

Double_t TMVA::VariableInfo::fXminNorm
private

the variable type to be used internally ('F'-default or 'I')

Definition at line 106 of file VariableInfo.h.

Referenced by GetMin(), operator=(), ResetMinMax(), SetMin(), and VariableInfo().

Double_t TMVA::VariableInfo::fXrmsNorm
private

mean value for correlated/decorrelated/PCA variable

Definition at line 109 of file VariableInfo.h.

Referenced by GetRMS(), and SetRMS().

Collaboration diagram for TMVA::VariableInfo:
[legend]

The documentation for this class was generated from the following files: