15void tmva004_RStandardScaler()
 
   18   ROOT::RDataFrame df(
"TreeS", 
"http://root.cern/files/tmva_class_example.root");
 
   19   auto x = AsTensor<float>(df);
 
   29   TH1F h1(
"h1", 
";x_{4};N_{Events}", 20, -4, 4);
 
   30   TH1F h2(
"h2", 
";x_{4};N_{Events}", 20, -4, 4);
 
   31   for (std::size_t i = 0; i < 
x.GetShape()[0]; i++) {
 
   38   h2.SetLineColor(
kBlue);
 
   41   auto c = 
new TCanvas(
"", 
"", 800, 800);
 
   45   TLegend legend(0.7, 0.7, 0.89, 0.89);
 
   46   legend.SetBorderSize(0);
 
   47   legend.AddEntry(
"h1", 
"Unscaled", 
"l");
 
   48   legend.AddEntry(
"h2", 
"Scaled", 
"l");
 
R__EXTERN TStyle * gStyle
 
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
 
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
 
virtual void SetLineColor(Color_t lcolor)
Set the line color.
 
1-D histogram with a float per channel (see TH1 documentation)}
 
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
This class displays a legend box (TPaveText) containing several legend entries.
 
void Fit(const RTensor< T > &x)
 
std::vector< T > Compute(const std::vector< T > &x)
 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...