49 fRankingDiscriminatorName(
"" ),
97 for (
UInt_t i=0; i<sizeofarray; i++) {
98 for (
UInt_t j=sizeofarray-1; j>i; j--) {
114 for (std::vector<Rank>::const_iterator ir =
fRanking.begin(); ir !=
fRanking.end(); ++ir )
115 if ((*ir).GetVariable().Length() > maxL) maxL = (*ir).GetVariable().Length();
119 Log() << kHEADER <<
"Ranking result (top variable is best ranked)" <<
Endl;
120 Log() << kINFO << hline <<
Endl;
121 Log() << kINFO << std::setiosflags(std::ios::left)
122 << std::setw(5) <<
"Rank : " 123 << std::setw(maxL+0) <<
"Variable " 124 << std::resetiosflags(std::ios::right)
126 Log() << kINFO << hline <<
Endl;
127 for (std::vector<Rank>::const_iterator ir =
fRanking.begin(); ir !=
fRanking.end(); ++ir ) {
129 <<
Form(
"%4i : ",(*ir).GetRank() )
130 << std::setw(
TMath::Max(maxL+0,9)) << (*ir).GetVariable().Data()
131 <<
Form(
" : %3.3e", (*ir).GetRankValue() ) << Endl;
133 Log() << kINFO << hline <<
Endl;
140 : fVariable( variable ),
141 fRankValue( rankValue ),
MsgLogger & Endl(MsgLogger &ml)
Bool_t operator<(const Rank &other) const
comparison operator <
Ranking for variables in method (implementation)
virtual ~Rank()
destructor
void SetContext(const TString &context)
std::vector< TMVA::Rank > fRanking
Rank(const TString &variable, Double_t rankValue)
constructor
char * Form(const char *fmt,...)
virtual void Print() const
get maximum length of variable names
virtual ~Ranking()
destructor
Bool_t operator>(const Rank &other) const
comparison operator >
ostringstream derivative to redirect and format output
void SetSource(const std::string &source)
Ranking()
default constructor
virtual void AddRank(const Rank &rank)
Add a new rank take ownership of it.
Short_t Max(Short_t a, Short_t b)
MsgLogger & Log() const
message logger
const char * Data() const
TString fRankingDiscriminatorName