Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
mathcoreStatFunc.py File Reference

Detailed Description

View in nbviewer Open in SWAN
Example macro showing some major probability density functions in ROOT.

The macro shows four of them with respect to their two variables. In order to run the macro type:

Original tutorial by Andras Zsenei.

import ROOT
f1a = ROOT.TF2("f1a","ROOT::Math::cauchy_pdf(x, y)",0,10,0,10)
f2a = ROOT.TF2("f2a","ROOT::Math::chisquared_pdf(x,y)",0,20, 0,20)
f3a = ROOT.TF2("f3a","ROOT::Math::gaussian_pdf(x,y)",0,10,0,5)
f4a = ROOT.TF2("f4a","ROOT::Math::tdistribution_pdf(x,y)",0,10,0,5)
c1 = ROOT.TCanvas("c1","c1",800,650)
f1a.Draw("surf1")
f2a.Draw("surf1")
f3a.Draw("surf1")
f4a.Draw("surf1")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Author
Alberto Ferro

Definition in file mathcoreStatFunc.py.