42 char varType,
void* external,
44 : fExpression ( expression ),
50 fNormalized ( normalized ),
51 fExternalData( external ),
52 fVarCounter ( varCounter )
67 fLabel = expression(0,index);
68 fLabel = fLabel.ReplaceAll(
" ",
"");
100 : fExpression ( other.fExpression ),
101 fInternalName( other.fInternalName ),
102 fLabel ( other.fLabel ),
103 fTitle ( other.fTitle ),
104 fUnit ( other.fUnit ),
105 fVarType ( other.fVarType ),
106 fXminNorm ( other.fXminNorm ),
107 fXmaxNorm ( other.fXmaxNorm ),
108 fXmeanNorm ( other.fXmeanNorm ),
109 fXrmsNorm ( other.fXrmsNorm ),
110 fNormalized ( other.fNormalized ),
111 fExternalData( other.fExternalData ),
112 fVarCounter ( other.fVarCounter )
138 o << std::setw(nc) << GetExpression();
139 o << std::setw(nc) << GetInternalName();
140 o << std::setw(nc) << GetLabel();
141 o << std::setw(nc) << GetTitle();
142 o << std::setw(nc) << GetUnit();
143 o <<
" \'" << fVarType <<
"\' ";
144 o <<
"[" << std::setprecision(12) << GetMin() <<
"," << std::setprecision(12) << GetMax() <<
"]" << std::endl;
155 TString exp, varname, vartype, minmax, minstr, maxstr;
156 istr >> exp >> varname >> vartype >> minmax;
160 minstr = minmax(0,minmax.First(
','));
161 maxstr = minmax(1+minmax.First(
','),minmax.Length());
163 std::stringstream strmin(minstr.
Data());
164 std::stringstream strmax(maxstr.Data());
167 SetExpression ( exp );
168 SetInternalVarName( varname );
169 SetLabel ( varname );
170 SetTitle ( varname );
172 SetVarType ( vartype[1] );
189 typeStr[0] = GetVarType();
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
TString fInternalName
original variable expression (can be a formula)
const TString & GetExpression() const
VariableInfo & operator=(const TMVA::VariableInfo &rhs)
comparison operator
const char * Data() const
std::vector< std::vector< double > > Data
Double_t fXminNorm
the variable type to be used internally ('F'-default or 'I')
Double_t fXmaxNorm
minimum value for correlated/decorrelated/PCA variable
TString fTitle
variable label, set by "mylabel := var1 + var2", this is a shortcut
Char_t fVarType
unit for axis labels in plots; set by third string in AddVariable
char * Form(const char *fmt,...)
void ReadFromXML(void *varnode)
read VariableInfo from stream
TSubString Strip(EStripType s=kTrailing, char c= ' ') const
Return a substring of self stripped at beginning and/or end.
VariableInfo()
default constructor
TString fLabel
internal variable name (needs to be regular expression)
void WriteToStream(std::ostream &o) const
write VariableInfo to stream
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
TString fUnit
title for axis labels in plots; set by second string in AddVariable
void ReadFromStream(std::istream &istr)
Short_t Max(Short_t a, Short_t b)
void AddToXML(void *varnode)
write class to XML
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual Int_t Sizeof() const
Returns size string will occupy on I/O buffer.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const