Test the TMath::LaplaceDist and TMath::LaplaceDistI functions
void mathLaplace(){
TF1 *flaplace =
new TF1(
"flaplace",
"TMath::LaplaceDist(x, [0], [1])", -10, 10);
legend1->
AddEntry(f1,
"alpha=0 beta=1",
"l");
legend1->
AddEntry(f2,
"alpha=0 beta=2",
"l");
legend1->
AddEntry(f3,
"alpha=2 beta=1",
"l");
legend1->
AddEntry(f4,
"alpha=2 beta=2",
"l");
TF1 *flaplacei=
new TF1(
"flaplacei",
"TMath::LaplaceDistI(x, [0], [1])", -10, 10);
legend2->
AddEntry(f1,
"alpha=0 beta=1",
"l");
legend2->
AddEntry(f2,
"alpha=0 beta=2",
"l");
legend2->
AddEntry(f3,
"alpha=2 beta=1",
"l");
legend2->
AddEntry(f4,
"alpha=2 beta=2",
"l");
}
- Author
- Anna Kreshuk
Definition in file mathLaplace.C.