Tutorial illustrating the new statistical distributions functions (pdf, cdf and quantile)
TF1 *pdfunc =
new TF1(
"pdf",
"ROOT::Math::normal_pdf(x, [0],[1])",-5,5);
TF1 *cdfunc =
new TF1(
"cdf",
"ROOT::Math::normal_cdf(x, [0],[1])",-5,5);
TF1 *ccdfunc =
new TF1(
"cdf_c",
"ROOT::Math::normal_cdf_c(x, [0])",-5,5);
TF1 *qfunc =
new TF1(
"quantile",
"ROOT::Math::normal_quantile(x, [0])",0,1);
TF1 *cqfunc =
new TF1(
"quantile_c",
"ROOT::Math::normal_quantile_c(x, [0])",0,1);
TCanvas * c1 =
new TCanvas(
"c1",
"Normal Distributions",100,10,600,800);
legend1->
AddEntry(pdfunc,
"normal_pdf",
"l");
legend2->
AddEntry(cdfunc,
"normal_cdf",
"l");
legend2->
AddEntry(ccdfunc,
"normal_cdf_c",
"l");
legend3->
AddEntry(qfunc,
"normal_quantile",
"l");
legend3->
AddEntry(cqfunc,
"normal_quantile_c",
"l");
}
- Author
- Anna Kreshuk
Definition in file normalDist.C.