Test the TMath::BetaDist and TMath::BetaDistI functions
TF1 *
fbeta =
new TF1(
"fbeta",
"TMath::BetaDist(x, [0], [1])", 0, 1);
fbeta->SetParameters(0.5, 0.5);
fbeta->SetParameters(0.5, 2);
fbeta->SetParameters(2, 0.5);
fbeta->SetParameters(2, 2);
legend1->AddEntry(f2,
"p=0.5 q=2",
"l");
legend1->AddEntry(f3,
"p=2 q=0.5",
"l");
legend1->AddEntry(f4,
"p=2 q=2",
"l");
TF1 *
fbetai=
new TF1(
"fbetai",
"TMath::BetaDistI(x, [0], [1])", 0, 1);
fbetai->SetParameters(0.5, 0.5);
fbetai->SetParameters(0.5, 2);
fbetai->SetParameters(2, 0.5);
legend2->AddEntry(f2,
"p=0.5 q=2",
"l");
legend2->AddEntry(f3,
"p=2 q=0.5",
"l");
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.
- Author
- Anna Kreshuk
Definition in file mathBeta.C.