Test the TMath::BetaDist and TMath::BetaDistI functions
void mathBeta() {
TF1 *fbeta =
new TF1(
"fbeta",
"TMath::BetaDist(x, [0], [1])", 0, 1);
legend1->
AddEntry(f1,
"p=0.5 q=0.5",
"l");
TF1 *fbetai=
new TF1(
"fbetai",
"TMath::BetaDistI(x, [0], [1])", 0, 1);
legend2->
AddEntry(f1,
"p=0.5 q=0.5",
"l");
}
- Author
- Anna Kreshuk
Definition in file mathBeta.C.