mathStudent.C: tutorial illustrating the use of the Student and F distributions | Math tutorials | mathcoreGenVector.C: Example macro testing available methods and operation of the GenVector classes. |
// Example describing how to use the different cumulative distribution functions in ROOT. // The macro shows four of them with // respect to their two variables. In order to run the macro type: // // root [0] .x mathcoreCDF.C //Author: Lorenzo Moneta #include "TSystem.h" #include "TF2.h" #include "TCanvas.h" void mathcoreCDF(){ gSystem->Load("libMathCore"); TF2 *f1a = new TF2("f1a","ROOT::Math::breitwigner_cdf_c(x, y)",-10,10,0,10); TF2 *f2a = new TF2("f2a","ROOT::Math::cauchy_cdf(x,y)",0,20, 0,20); TF2 *f3a = new TF2("f3a","ROOT::Math::normal_cdf(x,y)",-10,10,0,5); TF2 *f4a = new TF2("f4a","ROOT::Math::exponential_cdf_c(x,y)",0,10,0,5); TCanvas *c1 = new TCanvas("c1","c1",1000,750); c1->Divide(2,2); c1->cd(1); f1a->Draw("surf1"); c1->cd(2); f2a->Draw("surf1"); c1->cd(3); f3a->Draw("surf1"); c1->cd(4); f4a->Draw("surf1"); } mathcoreCDF.C:1 mathcoreCDF.C:2 mathcoreCDF.C:3 mathcoreCDF.C:4 mathcoreCDF.C:5 mathcoreCDF.C:6 mathcoreCDF.C:7 mathcoreCDF.C:8 mathcoreCDF.C:9 mathcoreCDF.C:10 mathcoreCDF.C:11 mathcoreCDF.C:12 mathcoreCDF.C:13 mathcoreCDF.C:14 mathcoreCDF.C:15 mathcoreCDF.C:16 mathcoreCDF.C:17 mathcoreCDF.C:18 mathcoreCDF.C:19 mathcoreCDF.C:20 mathcoreCDF.C:21 mathcoreCDF.C:22 mathcoreCDF.C:23 mathcoreCDF.C:24 mathcoreCDF.C:25 mathcoreCDF.C:26 mathcoreCDF.C:27 mathcoreCDF.C:28 mathcoreCDF.C:29 mathcoreCDF.C:30 mathcoreCDF.C:31 mathcoreCDF.C:32 mathcoreCDF.C:33 mathcoreCDF.C:34 mathcoreCDF.C:35 mathcoreCDF.C:36 mathcoreCDF.C:37 mathcoreCDF.C:38 mathcoreCDF.C:39 mathcoreCDF.C:40 mathcoreCDF.C:41 mathcoreCDF.C:42 mathcoreCDF.C:43 |
|