49 char varType,
void* external,
52 fExpression ( expression ),
58 fNormalized ( normalized ),
59 fExternalData ( external ),
60 fVarCounter ( varCounter )
74 fLabel = expression(0,index);
75 fLabel = fLabel.ReplaceAll(
" ",
"");
155 o << std::setw(nc) <<
GetUnit();
157 o <<
"[" << std::setprecision(12) <<
GetMin() <<
"," << std::setprecision(12) <<
GetMax() <<
"]" << std::endl;
167 TString exp, varname, vartype, minmax, minstr, maxstr;
168 istr >> exp >> varname >> vartype >> minmax;
172 minstr = minmax(0,minmax.First(
','));
173 maxstr = minmax(1+minmax.First(
','),minmax.Length());
175 std::stringstream strmin(minstr.
Data());
176 std::stringstream strmax(maxstr.Data());
const TString & GetInternalName() const
void SetUnit(const TString &s)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
VariableInfo & operator=(const TMVA::VariableInfo &rhs)
comparison operator
const TString & GetUnit() const
const TString & GetLabel() const
void SetLabel(const TString &s)
const TString & GetExpression() const
The TNamed class is the base class for all named ROOT classes.
std::vector< std::vector< double > > Data
void SetInternalVarName(const TString &s)
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
virtual Int_t Sizeof() const
Returns size string will occupy on I/O buffer.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void SetExpression(const TString &s)
void ReadFromStream(std::istream &istr)
read VariableInfo from stream
Short_t Max(Short_t a, Short_t b)
void AddToXML(void *varnode)
write class to XML
void WriteToStream(std::ostream &o) const
write VariableInfo to stream
Class for type info of MVA input variable.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const