21 TF1 *
fbeta =
new TF1(
"fbeta",
"TMath::BetaDist(x, [0], [1])", 0, 1);
22 fbeta->SetParameters(0.5, 0.5);
26 fbeta->SetParameters(0.5, 2);
30 fbeta->SetParameters(2, 0.5);
34 fbeta->SetParameters(2, 2);
40 legend1->AddEntry(f2,
"p=0.5 q=2",
"l");
41 legend1->AddEntry(f3,
"p=2 q=0.5",
"l");
42 legend1->AddEntry(f4,
"p=2 q=2",
"l");
47 TF1 *
fbetai=
new TF1(
"fbetai",
"TMath::BetaDistI(x, [0], [1])", 0, 1);
48 fbetai->SetParameters(0.5, 0.5);
52 fbetai->SetParameters(0.5, 2);
56 fbetai->SetParameters(2, 0.5);
60 fbetai->SetParameters(2, 2);
67 legend2->AddEntry(f2,
"p=0.5 q=2",
"l");
68 legend2->AddEntry(f3,
"p=2 q=0.5",
"l");
69 legend2->AddEntry(f4,
"p=2 q=2",
"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.
This class displays a legend box (TPaveText) containing several legend entries.
TVirtualPad is an abstract base class for the Pad and Canvas classes.