29 #ifndef ROOT_TMVA_Tools 30 #define ROOT_TMVA_Tools 44 #if __cplusplus > 199711L 97 template <
typename Iterator,
typename WeightIterator>
Double_t Mean ( Iterator
first, Iterator last, WeightIterator w);
100 template <
typename Iterator,
typename WeightIterator>
Double_t RMS(Iterator first, Iterator last, WeightIterator w);
104 void ComputeStat(
const std::vector<TMVA::Event*>&,
105 std::vector<Float_t>*,
126 std::vector<Int_t>* nodes );
151 std::vector<Double_t>
MVADiff( std::vector<Double_t>&, std::vector<Double_t>& );
157 void UsefulSortDescending( std::vector< std::vector<Double_t> >&, std::vector<TString>* vs = 0 );
158 void UsefulSortAscending ( std::vector< std::vector<Double_t> >&, std::vector<TString>* vs = 0 );
171 void FormattedOutput(
const std::vector<Double_t>&,
const std::vector<TString>&,
227 std::vector<TString>
SplitString(
const TString& theOpt,
const char separator )
const;
233 #if __cplusplus > 199711L 234 static std::atomic<Tools*>
fgTools;
251 inline void ReadAttr (
void* node,
const char* ,
T& value );
253 void ReadAttr(
void *node,
const char *,
float &value);
254 void ReadAttr(
void *node,
const char *,
int &value);
255 void ReadAttr(
void *node,
const char *,
short &value);
258 void AddAttr (
void* node,
const char* ,
const T& value,
Int_t precision = 16 );
259 void AddAttr (
void* node,
const char* attrname,
const char* value );
260 void*
AddChild (
void* parent,
const char* childname,
const char* content = 0,
bool isRootNode =
false );
265 void*
GetChild (
void* parent,
const char* childname=0 );
266 void*
GetNextChild(
void* prevchild,
const char* childname=0 );
268 const char*
GetName (
void* node );
296 Log() << kFATAL <<
"Trying to read non-existing attribute '" << attrname <<
"' from xml node '" << nodename <<
"'" 299 std::stringstream s(val);
311 s.precision( precision );
312 s << std::scientific << value;
313 AddAttr( node, attrname, s.str().c_str() );
322 return (sumx2 - ((sumx*sumx)/static_cast<Double_t>(nx)))/
static_cast<Double_t>(nx-1);
MsgLogger & Endl(MsgLogger &ml)
Base class for spline implementation containing the Draw/Paint methods.
static std::string format(double x, double y, int digits, int width)
PDF wrapper for histograms; uses user-defined spline interpolation.
const char * GetNodeName(XMLNodePointer_t xmlnode)
returns name of xmlnode
RooArgSet S(const RooAbsArg &v1)
Service class for 2-Dim histogram classes.
tomato 2-D histogram with a float per channel (see TH1 documentation)}
const char * GetAttr(XMLNodePointer_t xmlnode, const char *name)
returns value of attribute for xmlnode
ostringstream derivative to redirect and format output
Abstract ClassifierFactory template that handles arbitrary types.
A TTree object has a header with a name and a title.
double norm(double *x, double *p)