20 TF1 *pdfunc =
new TF1(
"pdf",
"ROOT::Math::normal_pdf(x, [0],[1])",-5,5);
21 TF1 *cdfunc =
new TF1(
"cdf",
"ROOT::Math::normal_cdf(x, [0],[1])",-5,5);
22 TF1 *ccdfunc =
new TF1(
"cdf_c",
"ROOT::Math::normal_cdf_c(x, [0])",-5,5);
23 TF1 *qfunc =
new TF1(
"quantile",
"ROOT::Math::normal_quantile(x, [0])",0,1);
24 TF1 *cqfunc =
new TF1(
"quantile_c",
"ROOT::Math::normal_quantile_c(x, [0])",0,1);
79 TLegend *legend1 =
new TLegend(0.583893,0.601973,0.885221,0.854151);
80 legend1->
AddEntry(pdfunc,
"normal_pdf",
"l");
85 ccdfunc->
Draw(
"same");
86 TLegend *legend2 =
new TLegend(0.585605,0.462794,0.886933,0.710837);
87 legend2->
AddEntry(cdfunc,
"normal_cdf",
"l");
88 legend2->
AddEntry(ccdfunc,
"normal_cdf_c",
"l");
94 TLegend *legend3 =
new TLegend(0.315094,0.633668,0.695179,0.881711);
95 legend3->
AddEntry(qfunc,
"normal_quantile",
"l");
96 legend3->
AddEntry(cqfunc,
"normal_quantile_c",
"l");
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual void SetParameters(const Double_t *params)
virtual void SetNpx(Int_t npx=100)
Set the number of points used to draw the function.
This class displays a legend box (TPaveText) containing several legend entries.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
TAxis * GetXaxis() const
Get x axis of the function.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
TAxis * GetYaxis() const
Get y axis of the function.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title The size is expressed in per cent of the pad width.
virtual void SetTitle(const char *title="")
Set function title if title has the form "fffffff;xxxx;yyyy", it is assumed that the function title i...
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
virtual void SetParameter(Int_t param, Double_t value)
virtual void SetTitle(const char *title="")
Set the title of the TNamed.