96 for (
UInt_t i=0; i<sizeofarray; i++) {
97 for (
UInt_t j=sizeofarray-1; j>i; j--) {
113 for (std::vector<Rank>::const_iterator ir =
fRanking.begin(); ir !=
fRanking.end(); ++ir )
114 if ((*ir).GetVariable().Length() > maxL) maxL = (*ir).GetVariable().Length();
118 Log() << kHEADER <<
"Ranking result (top variable is best ranked)" <<
Endl;
119 Log() << kINFO << hline <<
Endl;
120 Log() << kINFO << std::setiosflags(std::ios::left)
121 << std::setw(5) <<
"Rank : "
122 << std::setw(maxL+0) <<
"Variable "
123 << std::resetiosflags(std::ios::right)
125 Log() << kINFO << hline <<
Endl;
126 for (std::vector<Rank>::const_iterator ir =
fRanking.begin(); ir !=
fRanking.end(); ++ir ) {
129 << std::setw(std::max(maxL+0,9)) << (*ir).GetVariable().
Data()
132 Log() << kINFO << hline <<
Endl;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
ostringstream derivative to redirect and format output
virtual ~Rank()
destructor
Rank(const TString &variable, Double_t rankValue)
constructor
Bool_t operator>(const Rank &other) const
comparison operator >
Bool_t operator<(const Rank &other) const
comparison operator <
virtual void AddRank(const Rank &rank)
Add a new rank take ownership of it.
virtual void Print() const
get maximum length of variable names
TString fRankingDiscriminatorName
the name of the ranking discriminator
MsgLogger * fLogger
! message logger
TString fContext
the ranking context
std::vector< TMVA::Rank > fRanking
vector of ranks
void SetContext(const TString &context)
virtual ~Ranking()
destructor
Ranking()
default constructor
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
MsgLogger & Endl(MsgLogger &ml)