Tutorial illustrating the new statistical distributions functions (pdf, cdf and quantile)
based on Anna Kreshuk's normalDist.C
from ROOT import TF1, TCanvas, TSystem, TAxis, TLegend
from ROOT import kRed, kGreen, kBlue
pdfunc =
TF1(
"pdf",
"ROOT::Math::normal_pdf(x, [0],[1])", -5, 5)
cdfunc =
TF1(
"cdf",
"ROOT::Math::normal_cdf(x, [0],[1])", -5, 5)
ccdfunc =
TF1(
"cdf_c",
"ROOT::Math::normal_cdf_c(x, [0])", -5, 5)
qfunc =
TF1(
"quantile",
"ROOT::Math::normal_quantile(x, [0])", 0, 1)
cqfunc =
TF1(
"quantile_c",
"ROOT::Math::normal_quantile_c(x, [0])", 0, 1)
c1 =
TCanvas(
"c1",
"Normal Distributions", 100, 10, 600, 800)
legend1 =
TLegend(0.583893, 0.601973, 0.885221, 0.854151)
legend2 =
TLegend(0.585605, 0.462794, 0.886933, 0.710837)
legend3 =
TLegend(0.315094, 0.633668, 0.695179, 0.881711)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
This class displays a legend box (TPaveText) containing several legend entries.
- Author
- Juan Fernando Jaramillo Botero
Definition in file normalDist.py.