37 x[i]=
r.Uniform(-2, 2);
39 y[i]=1 + 2*
x[i] + 3*
x[i]*
x[i] + 4*
x[i]*
x[i]*
x[i] +
e[i]*
r.Gaus();
43 x[i]=
r.Uniform(-1, 1);
45 y[i] = 1 + 2*
x[i] + 3*
x[i]*
x[i] + 4*
x[i]*
x[i]*
x[i] +
r.Landau(10, 5);
59 printf(
"Ordinary least squares:\n");
64 printf(
"Resistant Least trimmed squares fit:\n");
74 leg->AddEntry(
ffit1,
"Ordinary least squares",
"l");
75 leg->AddEntry(
ffit2,
"LTS regression",
"l");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
A TGraphErrors is a TGraph with error bars.
This class displays a legend box (TPaveText) containing several legend entries.
This is the base class for the ROOT Random number generators.