Tutorial illustrating the use of TMath::GammaDist and TMath::LogNormal
void mathGammaNormal(){
TF1 *fgamma =
new TF1(
"fgamma",
"TMath::GammaDist(x, [0], [1], [2])", 0, 10);
legend1->
AddEntry(f1,
"gamma = 0.5 mu = 0 beta = 1",
"l");
legend1->
AddEntry(f2,
"gamma = 1 mu = 0 beta = 1",
"l");
legend1->
AddEntry(f3,
"gamma = 2 mu = 0 beta = 1",
"l");
legend1->
AddEntry(f4,
"gamma = 5 mu = 0 beta = 1",
"l");
TF1 *
flog =
new TF1(
"flog",
"TMath::LogNormal(x, [0], [1], [2])", 0, 5);
legend2->
AddEntry(g1,
"sigma = 0.5 theta = 0 m = 1",
"l");
legend2->
AddEntry(g2,
"sigma = 1 theta = 0 m = 1",
"l");
legend2->
AddEntry(g3,
"sigma = 2 theta = 0 m = 1",
"l");
legend2->
AddEntry(g4,
"sigma = 5 theta = 0 m = 1",
"l");
}
- Author
- Anna Kreshuk
Definition in file mathGammaNormal.C.