44 char varType,
void* external,
47 fExpression ( expression ),
53 fNormalized ( normalized ),
54 fExternalData ( external ),
55 fVarCounter ( varCounter )
69 fLabel = expression(0,index);
70 fLabel = fLabel.ReplaceAll(
" ",
"");
106 fExpression ( other.fExpression ),
107 fInternalName ( other.fInternalName ),
108 fLabel ( other.fLabel ),
109 fUnit ( other.fUnit ),
110 fVarType ( other.fVarType ),
111 fXminNorm ( other.fXminNorm ),
112 fXmaxNorm ( other.fXmaxNorm ),
113 fXmeanNorm ( other.fXmeanNorm ),
114 fXrmsNorm ( other.fXrmsNorm ),
115 fXvarianceNorm( other.fXvarianceNorm ),
116 fNormalized ( other.fNormalized ),
117 fExternalData ( other.fExternalData ),
118 fVarCounter ( other.fVarCounter )
146 o << std::setw(nc) << GetExpression();
147 o << std::setw(nc) << GetInternalName();
148 o << std::setw(nc) << GetLabel();
149 o << std::setw(nc) << GetTitle();
150 o << std::setw(nc) << GetUnit();
151 o <<
" \'" << fVarType <<
"\' ";
152 o <<
"[" << std::setprecision(12) << GetMin() <<
"," << std::setprecision(12) << GetMax() <<
"]" << std::endl;
163 TString exp, varname, vartype, minmax, minstr, maxstr;
164 istr >> exp >> varname >> vartype >> minmax;
168 minstr = minmax(0,minmax.First(
','));
169 maxstr = minmax(1+minmax.First(
','),minmax.Length());
171 std::stringstream strmin(minstr.
Data());
172 std::stringstream strmax(maxstr.Data());
175 SetExpression ( exp );
176 SetInternalVarName( varname );
177 SetLabel ( varname );
178 SetTitle ( varname );
180 SetVarType ( vartype[1] );
197 typeStr[0] = GetVarType();
const TString & GetExpression() const
VariableInfo & operator=(const TMVA::VariableInfo &rhs)
comparison operator
const char * Data() const
The TNamed class is the base class for all named ROOT classes.
std::vector< std::vector< double > > Data
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
void WriteToStream(std::ostream &o) const
write VariableInfo to stream
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