Tutorial illustrating the use of the Student and F distributions
void mathStudent()
{
TCanvas *DistCanvas =
new TCanvas(
"DistCanvas",
"Distribution graphs", 10, 10, 800, 650);
gPad->SetFrameFillColor(19);
TF1* fgaus =
new TF1(
"gaus",
"TMath::Gaus(x, [0], [1], [2])", -5, 5);
TF1* student =
new TF1(
"student",
"TMath::Student(x,[0])", -5, 5);
gPad->SetFrameFillColor(19);
TF1 *studentI =
new TF1(
"studentI",
"TMath::StudentI(x, [0])", -5, 5);
studentI->
SetTitle(
"Student cumulative dist.");
TF1* fDist =
new TF1(
"fDist",
"TMath::FDist(x, [0], [1])", 0, 2);
gPad->SetFrameFillColor(19);
TF1* fDistI =
new TF1(
"fDist",
"TMath::FDistI(x, [0], [1])", 0, 2);
fDistI->
SetTitle(
"Cumulative dist. function for F");
gPad->SetFrameFillColor(19);
}
- Author
- Anna Kreshuk
Definition in file mathStudent.C.