27 gPad->SetFrameFillColor(19);
31 TF1*
fgaus =
new TF1(
"gaus",
"TMath::Gaus(x, [0], [1], [2])", -5, 5);
32 fgaus->SetTitle(
"Student density");
33 fgaus->SetLineStyle(2);
34 fgaus->SetLineWidth(1);
36 leg->AddEntry(
fgaus->DrawCopy(),
"Normal(0,1)",
"l");
38 TF1*
student =
new TF1(
"student",
"TMath::Student(x,[0])", -5, 5);
43 leg->AddEntry(
student->DrawCopy(
"lsame"),
"10 degrees of freedom",
"l");
47 leg->AddEntry(
student->DrawCopy(
"lsame"),
"3 degrees of freedom",
"l");
51 leg->AddEntry(
student->DrawCopy(
"lsame"),
"1 degree of freedom",
"l");
57 gPad->SetFrameFillColor(19);
59 TF1 *
studentI =
new TF1(
"studentI",
"TMath::StudentI(x, [0])", -5, 5);
60 studentI->SetTitle(
"Student cumulative dist.");
66 leg2->AddEntry(
studentI->DrawCopy(),
"10 degrees of freedom",
"l");
70 leg2->AddEntry(
studentI->DrawCopy(
"lsame"),
"3 degrees of freedom",
"l");
74 leg2->AddEntry(
studentI->DrawCopy(
"lsame"),
"1 degree of freedom",
"l");
78 TF1* fDist =
new TF1(
"fDist",
"TMath::FDist(x, [0], [1])", 0, 2);
84 gPad->SetFrameFillColor(19);
106 TF1*
fDistI =
new TF1(
"fDist",
"TMath::FDistI(x, [0], [1])", 0, 2);
107 fDistI->SetTitle(
"Cumulative dist. function for F");
112 gPad->SetFrameFillColor(19);
114 fDistI->SetParameters(1, 1);
116 legF2->AddEntry(
fDistI->DrawCopy(),
"N=1 M=1",
"l");
118 fDistI->SetParameters(1, 10);
120 legF2->AddEntry(
fDistI->DrawCopy(
"lsame"),
"N=1 M=10",
"l");
122 fDistI->SetParameters(10, 1);
124 legF2->AddEntry(
fDistI->DrawCopy(
"lsame"),
"N=10 M=1",
"l");
126 fDistI->SetParameters(10, 10);
128 legF2->AddEntry(
fDistI->DrawCopy(
"lsame"),
"N=10 M=10",
"l");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void SetTitle(const char *title="") override
Set function title if title has the form "fffffff;xxxx;yyyy", it is assumed that the function title i...
virtual TF1 * DrawCopy(Option_t *option="") const
Draw a copy of this function with its current attributes.
virtual void SetParameters(const Double_t *params)
virtual void SetParameter(Int_t param, Double_t value)
This class displays a legend box (TPaveText) containing several legend entries.