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.
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
TAxis * GetYaxis() const
Get y axis of the function.
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...
virtual void SetNpx(Int_t npx=100)
Set the number of points used to draw the function.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void SetParameters(const Double_t *params)
virtual void SetParameter(Int_t param, Double_t value)
TAxis * GetXaxis() const
Get x axis of the function.
This class displays a legend box (TPaveText) containing several legend entries.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.