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(
" ",
"");
142 o << std::setw(nc) <<
GetUnit();
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());
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
const TString & GetInternalName() const
TString fInternalName
original variable expression (can be a formula)
void SetUnit(const TString &s)
Bool_t fNormalized
rms value for correlated/decorrelated/PCA variable
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
void SetTitle(const TString &s)
VariableInfo & operator=(const TMVA::VariableInfo &rhs)
comparison operator
const TString & GetUnit() const
Double_t fXmeanNorm
maximum value for correlated/decorrelated/PCA variable
const TString & GetLabel() const
void SetLabel(const TString &s)
const TString & GetExpression() 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
void SetInternalVarName(const TString &s)
void * fExternalData
variable gets normalized
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
Int_t fVarCounter
type of external variable (int, long, double, float) - to be done JS
Double_t fXrmsNorm
mean value for correlated/decorrelated/PCA variable
TString fLabel
internal variable name (needs to be regular expression)
const TString & GetTitle() const
virtual Int_t Sizeof() const
Returns size string will occupy on I/O buffer.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
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 SetExpression(const TString &s)
void ReadFromStream(std::istream &istr)
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
const char * Data() const