#include <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) | |
VariableInfo () | |
VariableInfo (const VariableInfo &other) | |
~VariableInfo () | |
const TString & | GetExpression () const |
const TString & | GetInternalName () const |
const TString & | GetLabel () const |
const TString & | GetTitle () const |
const TString & | GetUnit () 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 |
void | ReadFromStream (std::istream &istr) |
void | ReadFromXML (void *varnode) |
void | AddToXML (void *varnode) |
void * | GetExternalLink () const |
VariableInfo & | operator= (const TMVA::VariableInfo &rhs) |
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) | |
VariableInfo () | |
VariableInfo (const VariableInfo &other) | |
~VariableInfo () | |
const TString & | GetExpression () const |
const TString & | GetInternalName () const |
const TString & | GetLabel () const |
const TString & | GetTitle () const |
const TString & | GetUnit () 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 |
void | ReadFromStream (std::istream &istr) |
void | ReadFromXML (void *varnode) |
void | AddToXML (void *varnode) |
void * | GetExternalLink () const |
VariableInfo & | operator= (const TMVA::VariableInfo &rhs) |
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) |
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) | |
TString | fLabel |
internal variable name (needs to be regular expression) | |
TString | fTitle |
variable label, set by "mylabel := var1 + var2", this is a shortcut | |
TString | fUnit |
title for axis labels in plots; set by second string in AddVariable | |
Char_t | fVarType |
unit for axis labels in plots; set by third string in AddVariable | |
Double_t | fXminNorm |
the variable type to be used internally ('F'-default or 'I') | |
Double_t | fXmaxNorm |
minimum value for correlated/decorrelated/PCA variable | |
Double_t | fXmeanNorm |
maximum value for correlated/decorrelated/PCA variable | |
Double_t | fXrmsNorm |
mean value for correlated/decorrelated/PCA variable | |
Bool_t | fNormalized |
rms value for correlated/decorrelated/PCA variable | |
void * | fExternalData |
variable gets normalized | |
TString | fExternalDataType |
if the variable content is linked to an external pointer | |
Int_t | fVarCounter |
type of external variable (int, long, double, float) - to be done JS | |
void * | fExternalData |
variable gets normalized |
Definition at line 52 of file VariableInfo.h.
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 | |||
) |
Definition at line 38 of file VariableInfo.cxx.
References TMath::Abs(), TString::Contains(), fExpression, fInternalName, fLabel, fTitle, fXmaxNorm, fXminNorm, GetExpression(), TMVA::gTools(), TString::Index(), TMVA::Tools::ReplaceRegularExpressions(), and TString::Sizeof().
TMVA::VariableInfo::VariableInfo | ( | ) |
Definition at line 77 of file VariableInfo.cxx.
References fInternalName, fLabel, fTitle, fUnit, fXmaxNorm, fXminNorm, GetExpression(), TMVA::gTools(), and TMVA::Tools::ReplaceRegularExpressions().
TMVA::VariableInfo::VariableInfo | ( | const VariableInfo & | other | ) |
Definition at line 96 of file VariableInfo.cxx.
TMVA::VariableInfo::~VariableInfo | ( | ) | [inline] |
Definition at line 61 of file VariableInfo.h.
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 | |||
) |
TMVA::VariableInfo::VariableInfo | ( | ) |
TMVA::VariableInfo::VariableInfo | ( | const VariableInfo & | other | ) |
TMVA::VariableInfo::~VariableInfo | ( | ) | [inline] |
Definition at line 61 of file VariableInfo.h.
const TString& TMVA::VariableInfo::GetExpression | ( | ) | const [inline] |
Definition at line 62 of file VariableInfo.h.
References fExpression.
Referenced by utVariableInfo::_testConstructor1(), utVariableInfo::_testConstructor2(), utVariableInfo::_testConstructor3(), TMVA::TransformationHandler::AddStats(), AddToXML(), TMVA::DataSetFactory::CalcMinMax(), TMVA::DataSetFactory::ChangeToNewTree(), TMVA::MethodBase::GetOriginalVarName(), TMVA::MethodBase::ReadSpectatorsFromXML(), TMVA::MethodBase::ReadVariablesFromXML(), TMVA::MethodBase::ReadVarsFromStream(), VariableInfo(), WriteToStream(), and TMVA::RuleFitAPI::WriteVarNames().
const TString& TMVA::VariableInfo::GetInternalName | ( | ) | const [inline] |
Definition at line 63 of file VariableInfo.h.
References fInternalName.
Referenced by AddToXML(), TMVA::DataSetFactory::ChangeToNewTree(), TMVA::DataSetInfo::FindVarIndex(), TMVA::MethodBase::GetInputVar(), TMVA::DataSet::GetTree(), TMVA::MethodTMlpANN::ReadWeightsFromXML(), and WriteToStream().
const TString& TMVA::VariableInfo::GetLabel | ( | ) | const [inline] |
Definition at line 64 of file VariableInfo.h.
References fLabel.
Referenced by AddToXML(), TMVA::TransformationHandler::CalcStats(), TMVA::Factory::EvaluateAllVariables(), TMVA::MethodBase::GetInputLabel(), TMVA::TransformationHandler::PlotVariables(), TMVA::MethodTMlpANN::ReadWeightsFromStream(), and WriteToStream().
const TString& TMVA::VariableInfo::GetTitle | ( | ) | const [inline] |
Definition at line 65 of file VariableInfo.h.
References fTitle.
Referenced by utVariableInfo::_testConstructor1(), utVariableInfo::_testConstructor2(), utVariableInfo::_testConstructor3(), AddToXML(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), TMVA::MethodBase::GetInputTitle(), and WriteToStream().
const TString& TMVA::VariableInfo::GetUnit | ( | ) | const [inline] |
Definition at line 66 of file VariableInfo.h.
References fUnit.
Referenced by utVariableInfo::_testConstructor1(), utVariableInfo::_testConstructor2(), utVariableInfo::_testConstructor3(), AddToXML(), and WriteToStream().
char TMVA::VariableInfo::GetVarType | ( | ) | const [inline] |
Definition at line 67 of file VariableInfo.h.
References fVarType.
Referenced by utVariableInfo::_testConstructor1(), utVariableInfo::_testConstructor2(), utVariableInfo::_testConstructor3(), AddToXML(), TMVA::MethodBase::MakeClass(), and TMVA::MethodLikelihood::MakeClassSpecific().
Double_t TMVA::VariableInfo::GetMin | ( | ) | const [inline] |
Definition at line 69 of file VariableInfo.h.
References fXminNorm.
Referenced by utVariableInfo::_testConstructor1(), utVariableInfo::_testConstructor2(), utVariableInfo::_testConstructor3(), utVariableInfo::_testMethods(), AddToXML(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), and WriteToStream().
Double_t TMVA::VariableInfo::GetMax | ( | ) | const [inline] |
Definition at line 70 of file VariableInfo.h.
References fXmaxNorm.
Referenced by utVariableInfo::_testConstructor1(), utVariableInfo::_testConstructor2(), utVariableInfo::_testConstructor3(), utVariableInfo::_testMethods(), AddToXML(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), and WriteToStream().
Double_t TMVA::VariableInfo::GetMean | ( | void | ) | const [inline] |
Definition at line 71 of file VariableInfo.h.
References fXmeanNorm.
Referenced by utVariableInfo::_testMethods().
Double_t TMVA::VariableInfo::GetRMS | ( | void | ) | const [inline] |
Definition at line 72 of file VariableInfo.h.
References fXrmsNorm.
Referenced by utVariableInfo::_testMethods().
void TMVA::VariableInfo::SetMin | ( | Double_t | v | ) | [inline] |
Definition at line 74 of file VariableInfo.h.
References fXminNorm.
Referenced by utVariableInfo::_testMethods(), TMVA::DataSetFactory::CalcMinMax(), and ReadFromStream().
void TMVA::VariableInfo::SetMax | ( | Double_t | v | ) | [inline] |
Definition at line 75 of file VariableInfo.h.
References fXmaxNorm.
Referenced by utVariableInfo::_testMethods(), TMVA::DataSetFactory::CalcMinMax(), and ReadFromStream().
void TMVA::VariableInfo::SetMean | ( | Double_t | v | ) | [inline] |
Definition at line 76 of file VariableInfo.h.
References fXmeanNorm.
Referenced by utVariableInfo::_testMethods().
void TMVA::VariableInfo::SetRMS | ( | Double_t | v | ) | [inline] |
Definition at line 77 of file VariableInfo.h.
References fXrmsNorm.
Referenced by utVariableInfo::_testMethods().
void TMVA::VariableInfo::SetExternalLink | ( | void * | p | ) | [inline] |
Definition at line 78 of file VariableInfo.h.
References fExternalData.
Referenced by utVariableInfo::_testMethods(), TMVA::MethodBase::ReadSpectatorsFromXML(), TMVA::MethodBase::ReadVariablesFromXML(), and TMVA::MethodBase::ReadVarsFromStream().
void TMVA::VariableInfo::ResetMinMax | ( | ) | [inline] |
Definition at line 79 of file VariableInfo.h.
References fXmaxNorm, and fXminNorm.
Referenced by utVariableInfo::_testMethods().
void TMVA::VariableInfo::WriteToStream | ( | std::ostream & | o | ) | const |
Definition at line 129 of file VariableInfo.cxx.
References Form(), fVarType, GetExpression(), GetInternalName(), GetLabel(), GetMax(), GetMin(), GetTitle(), GetUnit(), TMath::Max(), and nc.
void TMVA::VariableInfo::ReadFromStream | ( | std::istream & | istr | ) |
Definition at line 144 of file VariableInfo.cxx.
References TString::Data(), exp(), TString::kBoth, TString::kLeading, TString::kTrailing, max, min, SetExpression(), SetInternalVarName(), SetLabel(), SetMax(), SetMin(), SetTitle(), SetUnit(), and SetVarType().
Referenced by TMVA::MethodBase::ReadVarsFromStream().
void TMVA::VariableInfo::ReadFromXML | ( | void * | varnode | ) |
Definition at line 190 of file VariableInfo.cxx.
References fExpression, fInternalName, fLabel, fTitle, fUnit, fXmaxNorm, fXminNorm, TMVA::gTools(), TMVA::Tools::ReadAttr(), SetVarType(), and type.
Referenced by TMVA::MethodBase::ReadSpectatorsFromXML(), and TMVA::MethodBase::ReadVariablesFromXML().
void TMVA::VariableInfo::AddToXML | ( | void * | varnode | ) |
Definition at line 173 of file VariableInfo.cxx.
References TMVA::Tools::AddAttr(), GetExpression(), GetInternalName(), GetLabel(), GetMax(), GetMin(), GetTitle(), GetUnit(), GetVarType(), and TMVA::gTools().
void* TMVA::VariableInfo::GetExternalLink | ( | ) | const [inline] |
Definition at line 85 of file VariableInfo.h.
References fExternalData.
Referenced by utVariableInfo::_testConstructor1(), utVariableInfo::_testConstructor3(), TMVA::MethodBase::ReadSpectatorsFromXML(), and TMVA::MethodBase::ReadVariablesFromXML().
TMVA::VariableInfo & TMVA::VariableInfo::operator= | ( | const TMVA::VariableInfo & | rhs | ) |
Definition at line 115 of file VariableInfo.cxx.
References fExpression, fInternalName, fVarType, fXmaxNorm, and fXminNorm.
void TMVA::VariableInfo::SetExpression | ( | const TString & | s | ) | [inline, private] |
Definition at line 93 of file VariableInfo.h.
References fExpression, and s.
Referenced by ReadFromStream().
void TMVA::VariableInfo::SetLabel | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetTitle | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetUnit | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetInternalVarName | ( | const TString & | s | ) | [inline, private] |
Definition at line 97 of file VariableInfo.h.
References fInternalName, and s.
Referenced by ReadFromStream().
void TMVA::VariableInfo::SetVarType | ( | char | c | ) | [inline, private] |
Definition at line 98 of file VariableInfo.h.
References fVarType.
Referenced by ReadFromStream(), and ReadFromXML().
const TString& TMVA::VariableInfo::GetExpression | ( | ) | const [inline] |
const TString& TMVA::VariableInfo::GetInternalName | ( | ) | const [inline] |
const TString& TMVA::VariableInfo::GetLabel | ( | ) | const [inline] |
const TString& TMVA::VariableInfo::GetTitle | ( | ) | const [inline] |
const TString& TMVA::VariableInfo::GetUnit | ( | ) | const [inline] |
char TMVA::VariableInfo::GetVarType | ( | ) | const [inline] |
Double_t TMVA::VariableInfo::GetMin | ( | ) | const [inline] |
Double_t TMVA::VariableInfo::GetMax | ( | ) | const [inline] |
Double_t TMVA::VariableInfo::GetMean | ( | void | ) | const [inline] |
Double_t TMVA::VariableInfo::GetRMS | ( | void | ) | const [inline] |
void TMVA::VariableInfo::SetMin | ( | Double_t | v | ) | [inline] |
void TMVA::VariableInfo::SetMax | ( | Double_t | v | ) | [inline] |
void TMVA::VariableInfo::SetMean | ( | Double_t | v | ) | [inline] |
void TMVA::VariableInfo::SetRMS | ( | Double_t | v | ) | [inline] |
void TMVA::VariableInfo::SetExternalLink | ( | void * | p | ) | [inline] |
void TMVA::VariableInfo::ResetMinMax | ( | ) | [inline] |
void TMVA::VariableInfo::WriteToStream | ( | std::ostream & | o | ) | const |
void TMVA::VariableInfo::ReadFromStream | ( | std::istream & | istr | ) |
void TMVA::VariableInfo::ReadFromXML | ( | void * | varnode | ) |
void TMVA::VariableInfo::AddToXML | ( | void * | varnode | ) |
void* TMVA::VariableInfo::GetExternalLink | ( | ) | const [inline] |
VariableInfo& TMVA::VariableInfo::operator= | ( | const TMVA::VariableInfo & | rhs | ) |
void TMVA::VariableInfo::SetExpression | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetLabel | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetTitle | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetUnit | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetInternalVarName | ( | const TString & | s | ) | [inline, private] |
void TMVA::VariableInfo::SetVarType | ( | char | c | ) | [inline, private] |
TString TMVA::VariableInfo::fExpression [private] |
Definition at line 100 of file VariableInfo.h.
Referenced by GetExpression(), operator=(), ReadFromXML(), SetExpression(), and VariableInfo().
TString TMVA::VariableInfo::fInternalName [private] |
original variable expression (can be a formula)
Definition at line 101 of file VariableInfo.h.
Referenced by GetInternalName(), operator=(), ReadFromXML(), 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(), ReadFromXML(), SetLabel(), and VariableInfo().
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(), ReadFromXML(), 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(), ReadFromXML(), SetUnit(), and VariableInfo().
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=(), SetVarType(), and WriteToStream().
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=(), ReadFromXML(), ResetMinMax(), SetMin(), and VariableInfo().
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=(), ReadFromXML(), 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.
Double_t TMVA::VariableInfo::fXrmsNorm [private] |
Bool_t TMVA::VariableInfo::fNormalized [private] |
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.
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.
void* TMVA::VariableInfo::fExternalData [private] |