Execution Time0.74s

Test: mathcore-testFit (Passed)
Build: v6-18-00-patches-x86_64-ubuntu16-gcc54-opt (sft-ubuntu-1604-4) on 2019-11-14 00:46:47
Repository revision: 869553a4dd0f00a0fc618d6e9d1fbdd66c820707

Test Timing: Passed
Processors1

Show Command Line
Display graphs:

Test output
Histogram1D Fit
		TH1.Print Name  = h1, Entries= 1000, Total sum= 1000
Bin data, data dimension is 1 type is 1
-3.83333   1 +/-  1
-2.83333   1 +/-  1
-2.5   9 +/-  3
-2.16667   16 +/-  4
-1.83333   23 +/-  4.79583
-1.5   46 +/-  6.78233
-1.16667   60 +/-  7.74597
-0.833333   91 +/-  9.53939
-0.5   114 +/-  10.6771
-0.166667   143 +/-  11.9583
0.166667   123 +/-  11.0905
0.5   102 +/-  10.0995
0.833333   90 +/-  9.48683
1.16667   76 +/-  8.7178
1.5   42 +/-  6.48074
1.83333   33 +/-  5.74456
2.16667   18 +/-  4.24264
2.5   7 +/-  2.64575
2.83333   4 +/-  2
3.5   1 +/-  1

data size is 20

****************************************
Minimizer is Minuit / Migrad
Chi2                      =       12.827
NDf                       =           17
Edm                       =  3.43204e-07
NCalls                    =           83
Constant                  =      127.212   +/-   4.99919     
Mean                      =    0.0390628   +/-   0.0337131   
Sigma                     =      1.03507   +/-   0.0245353   

******************************
	 TH1::Fit Result 

Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1

****************************************
Minimizer is Minuit2
Chi2                      =       12.827
NDf                       =           17
Edm                       =  6.32785e-06
NCalls                    =           53
Constant                  =      127.217   +/-   4.99932     
Mean                      =    0.0389937   +/-   0.0337108   
Sigma                     =      1.03508   +/-   0.0245341    	 (limited)


Test Binned Likelihood Fit

****************************************
Minimizer is Minuit / Migrad
MinFCN                    =      9.72249
Chi2                      =      16.4983
NDf                       =           27
Edm                       =  3.62731e-10
NCalls                    =           63
Constant                  =      127.704   +/-   4.94626     
Mean                      =    0.0283337   +/-   0.03293     
Sigma                     =      1.04132   +/-   0.0232896   

******************************
	 TH1::Fit Result 


****************************************
Minimizer is Minuit2
MinFCN                    =      9.72249
Chi2                      =      16.4986
NDf                       =           27
Edm                       =  5.99899e-07
NCalls                    =           52
Constant                  =      127.709   +/-   4.94654     
Mean                      =    0.0283343   +/-   0.0329298   
Sigma                     =      1.04131   +/-   0.0232894    	 (limited)


Test Chi2 Fit using integral option

****************************************
Minimizer is Minuit / Migrad
Chi2                      =      12.8266
NDf                       =           17
Edm                       =  7.37686e-07
NCalls                    =           87
Constant                  =      127.764   +/-   3.56132     
Mean                      =    0.0390768   +/-   0.0238385   
Sigma                     =      1.03059   +/-   0.0174244   

******************************
	 TH1::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =      12.8266
NDf                       =           17
Edm                       =  5.98454e-08
NCalls                    =           69
Constant                  =      127.766   +/-   5.03653     
Mean                      =    0.0390544   +/-   0.0337127   
Sigma                     =      1.03058   +/-   0.0246418    	 (limited)

****************************************
Minimizer is Minuit / Migrad
MinFCN                    =      9.72236
Chi2                      =      16.4966
NDf                       =           27
Edm                       =  6.30859e-07
NCalls                    =           78
Constant                  =      128.251   +/-   4.98167     
Mean                      =    0.0283549   +/-   0.0329301   
Sigma                     =      1.03687   +/-   0.0233892   

******************************
	 TH1::Fit Result 


****************************************
Minimizer is Minuit2
MinFCN                    =      9.72236
Chi2                      =       16.497
NDf                       =           27
Edm                       =  2.56244e-08
NCalls                    =           58
Constant                  =      128.252   +/-   4.98177     
Mean                      =      0.02833   +/-   0.03293     
Sigma                     =      1.03686   +/-   0.023389     	 (limited)


Redo Chi2 Hist Fit

****************************************
Minimizer is Minuit / Migrad
Chi2                      =       12.827
NDf                       =           17
Edm                       =  5.21212e-07
NCalls                    =           87
Constant                  =      127.211   +/-   3.53495     
Mean                      =    0.0390739   +/-   0.0238386   
Sigma                     =      1.03508   +/-   0.017349    


Test Same Fit from a TGraphErrors - no coord errors

****************************************
Minimizer is Minuit / Migrad
Chi2                      =       12.827
NDf                       =           17
Edm                       =  5.21212e-07
NCalls                    =           87
Constant                  =      127.211   +/-   3.53495     
Mean                      =    0.0390739   +/-   0.0238386   
Sigma                     =      1.03508   +/-   0.017349    


Test Same Fit from a TGraphErrors - use coord errors

****************************************
Minimizer is Minuit / Migrad
Chi2                      =      9.29054
NDf                       =           27
Edm                       =  1.05935e-11
NCalls                    =          164
Constant                  =      129.867   +/-   4.58177     
Mean                      =     0.021329   +/-   0.0369604   
Sigma                     =      1.02295   +/-   0.0238293   

******************************
	 TGraphErrors::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =      9.29054
NDf                       =           27
Edm                       =  2.37611e-08
NCalls                    =           52
Constant                  =      129.868   +/-   6.47962     
Mean                      =    0.0213362   +/-   0.0522698   
Sigma                     =      1.02294   +/-   0.0336991    	 (limited)
Ndf of TGraphErrors::Fit  = 27


Test Same Fit from a TGraph

****************************************
Minimizer is Minuit / Migrad
Chi2                      =      657.173
NDf                       =           27
Edm                       =  1.45234e-10
NCalls                    =           95
Constant                  =      128.172   +/-   1.83623     
Mean                      =   0.00787337   +/-   0.01699     
Sigma                     =      1.03378   +/-   0.0173561   

******************************
	 TGraph::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =      657.173
NDf                       =           27
Edm                       =  2.83715e-07
NCalls                    =           60
Constant                  =      128.172   +/-   2.59684     
Mean                      =   0.00787157   +/-   0.0240275   
Sigma                     =      1.03378   +/-   0.0245453    	 (limited)
Ndf of TGraph::Fit = 27


Redo Chi2 Hist Fit using FUMILI2

****************************************
Minimizer is Minuit2 / Fumili
Chi2                      =       12.827
NDf                       =           17
Edm                       =  3.52106e-07
NCalls                    =           64
Constant                  =      127.213   +/-   3.07116     
Mean                      =    0.0390748   +/-   0.0207068   
Sigma                     =      1.03507   +/-   0.0150723   


Redo Chi2 Hist Fit using FUMILI

****************************************
Minimizer is Fumili
Chi2                      =       12.827
NDf                       =           17
NCalls                    =           28
Constant                  =      127.215   +/-   4.35118     
Mean                      =    0.0389919   +/-   0.0290866   
Sigma                     =      1.03505   +/-   0.0214378   


Redo Chi2 Hist Fit using GSLMultiFit

****************************************
Minimizer is GSLMultiFit
Chi2                      =       12.827
NDf                       =           17
Edm                       =  0.000485127
NCalls                    =           41
Constant                  =      127.213   +/-   4.35092     
Mean                      =    0.0390668   +/-   0.0290867   
Sigma                     =      1.03507   +/-   0.0214354   


Redo Chi2 Hist Fit using GSLMultiMin

****************************************
Minimizer is GSLMultiMin / BFGS2
Chi2                      =      12.8271
NDf                       =           17
Edm                       =            0
NCalls                    =           77
Constant                  =      127.148   +/-   3.77939     
Mean                      =    0.0390939   +/-   0.0252659   
Sigma                     =     -1.03526   +/-   0.0186197   

Histogram1D Fit:		OK
Histogram1D Polynomial Fit
		Bin data, data dimension is 1 type is 1
-0.833333   121 +/-  11
-0.5   63 +/-  7.93725
-0.166667   62 +/-  7.87401
0.166667   113 +/-  10.6301
0.5   231 +/-  15.1987
0.833333   410 +/-  20.2485

data size is 6


Test histo polynomial fit using Fitter

****************************************
Minimizer is Minuit2
Chi2                      =     0.263851
NDf                       =            3
Edm                       =   1.5678e-22
NCalls                    =           55
Par_0                     =      263.461   +/-   18.442      
Par_1                     =      169.922   +/-   10.3132     
Par_2                     =      81.2419   +/-   5.91858     

Covariance Matrix:

            	       Par_0       Par_1       Par_2
Par_0       	      340.11      65.545      -66.31
Par_1       	      65.545      106.36      7.0788
Par_2       	      -66.31      7.0788       35.03

Correlation Matrix:

            	       Par_0       Par_1       Par_2
Par_0       	           1     0.34462    -0.60751
Par_1       	     0.34462           1     0.11597
Par_2       	    -0.60751     0.11597           1

******************************
	 TH1::Fit(pol2) Result   


****************************************
Minimizer is Minuit2
Chi2                      =     0.263851
NDf                       =            3
Edm                       =  5.87569e-22
NCalls                    =           57
p0                        =      81.2419   +/-   5.91858     
p1                        =      169.922   +/-   10.3132     
p2                        =      263.461   +/-   18.442      


Test histo polynomial linear fit 

****************************************
Minimizer is Linear
Chi2                      =     0.263851
NDf                       =            3
Par_0                     =      81.2419   +/-   5.91858     
Par_1                     =      169.922   +/-   10.3132     
Par_2                     =      263.461   +/-   18.442      

Covariance Matrix:

            	       Par_0       Par_1       Par_2
Par_0       	      340.11      65.545      -66.31
Par_1       	      65.545      106.36      7.0788
Par_2       	      -66.31      7.0788       35.03

Correlation Matrix:

            	       Par_0       Par_1       Par_2
Par_0       	           1     0.34462    -0.60751
Par_1       	     0.34462           1     0.11597
Par_2       	    -0.60751     0.11597           1

******************************
	 TH1::Fit(pol2) Result with TLinearFitter 


****************************************
Minimizer is Linear
Chi2                      =     0.263851
NDf                       =            3
p0                        =      81.2419   +/-   5.91858     
p1                        =      169.922   +/-   10.3132     
p2                        =      263.461   +/-   18.442      

Histogram1D Polynomial Fit:		OK
Histogram2D Gradient Fit
		
test 2D histo fit using gradient

****************************************
Minimizer is Minuit2
Chi2                      =      1016.77
NDf                       =          871
Edm                       =  3.90829e-16
NCalls                    =           72
Par_0                     =     0.224233   +/-   0.0123057   
Par_1                     =    -0.252461   +/-   0.108787    
Par_2                     =    0.0809774   +/-   0.0120748   
Par_3                     =    0.0805599   +/-   0.114465    
Par_4                     =     0.705521   +/-   0.279504    

test result without using gradient

****************************************
Minimizer is Minuit2
Chi2                      =      1016.77
NDf                       =          871
Edm                       =  6.59587e-13
NCalls                    =          126
Par_0                     =     0.224233   +/-   0.0123057   
Par_1                     =    -0.252461   +/-   0.108787    
Par_2                     =    0.0809774   +/-   0.0120748   
Par_3                     =    0.0805599   +/-   0.114465    
Par_4                     =     0.705521   +/-   0.279504    

test result without gradient and binned likelihood

****************************************
Minimizer is Minuit2
MinFCN                    =      442.003
Chi2                      =      1189.01
NDf                       =          871
Edm                       =  1.55131e-05
NCalls                    =          305
Par_0                     =     0.187375   +/-   0.0133505    	 (limited)
Par_1                     =     0.151223   +/-   0.121276     	 (limited)
Par_2                     =    0.0845527   +/-   0.0127252    	 (limited)
Par_3                     =    0.0885271   +/-   0.122343     	 (limited)
Par_4                     =     0.903528   +/-   0.303018     	 (limited)

test result using gradient and binned likelihood

****************************************
Minimizer is Minuit2
MinFCN                    =      442.003
Chi2                      =      1189.03
NDf                       =          871
Edm                       =  8.38567e-07
NCalls                    =           60
Par_0                     =     0.187351   +/-   0.0131042    	 (limited)
Par_1                     =     0.151436   +/-   0.118948     	 (limited)
Par_2                     =    0.0846267   +/-   0.0123475    	 (limited)
Par_3                     =     0.087775   +/-   0.118559     	 (limited)
Par_4                     =     0.904536   +/-   0.297934     	 (limited)

test result using linear fitter

****************************************
Minimizer is Linear
Chi2                      =      1016.77
NDf                       =          871
Par_0                     =     0.224233   +/-   0.0123057    	 (limited)
Par_1                     =    -0.252461   +/-   0.108787     	 (limited)
Par_2                     =    0.0809774   +/-   0.0120748    	 (limited)
Par_3                     =    0.0805599   +/-   0.114465     	 (limited)
Par_4                     =     0.705521   +/-   0.279504     	 (limited)

test using TGraph2D
data size from graph 876

****************************************
Minimizer is Minuit2
Chi2                      =      9970.86
NDf                       =          871
Edm                       =  3.75629e-16
NCalls                    =          162
Par_0                     =      0.20161   +/-   0.0032393    	 (limited)
Par_1                     =      0.01784   +/-   0.0337927    	 (limited)
Par_2                     =    0.0863294   +/-   0.00324209   	 (limited)
Par_3                     =    0.0766721   +/-   0.0338137    	 (limited)
Par_4                     =      1.09731   +/-   0.105955     	 (limited)

******************************
	 TGraph::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =      9970.86
NDf                       =          871
Edm                       =  1.18243e-15
NCalls                    =          162
p0                        =      0.20161   +/-   0.0154997   
p1                        =      0.01784   +/-   0.161694    
p2                        =    0.0863294   +/-   0.0155131   
p3                        =    0.0766721   +/-   0.161795    
p4                        =      1.09731   +/-   0.506981    

test using TGraph2D and gradient function

****************************************
Minimizer is Minuit2
Chi2                      =      9970.86
NDf                       =          871
Edm                       =  5.39619e-11
NCalls                    =           75
Par_0                     =      0.20161   +/-   0.0032393    	 (limited)
Par_1                     =    0.0178403   +/-   0.0337927    	 (limited)
Par_2                     =    0.0863294   +/-   0.00324209   	 (limited)
Par_3                     =    0.0766721   +/-   0.0338137    	 (limited)
Par_4                     =      1.09731   +/-   0.105955     	 (limited)

test using TGraph2DErrors -  error only in Z

****************************************
Minimizer is Minuit2
Chi2                      =      1016.77
NDf                       =          871
Edm                       =   1.1641e-19
NCalls                    =           73
Par_0                     =     0.224233   +/-   0.00870144   	 (limited)
Par_1                     =    -0.252461   +/-   0.0769243    	 (limited)
Par_2                     =    0.0809774   +/-   0.0085382    	 (limited)
Par_3                     =    0.0805599   +/-   0.0809389    	 (limited)
Par_4                     =     0.705521   +/-   0.197639     	 (limited)

test using TGraph2DErrors -  with error  in X,Y,Z

******************************
	 TGraph2DErrors::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =      991.115
NDf                       =          871
Edm                       =  9.06378e-08
NCalls                    =          481
p0                        =     0.225554   +/-   0.0125386   
p1                        =    -0.248719   +/-   0.110757    
p2                        =    0.0832423   +/-   0.0123591   
p3                        =    0.0611916   +/-   0.116951    
p4                        =      0.72083   +/-   0.284106    

Histogram2D Gradient Fit:		OK
Unbin 1D Fit
		fix parameter 0  to value 1
set lower range to 0 for sigma 

****************************************
Minimizer is Minuit2
MinFCN                    =      138.433
NDf                       =           98
Edm                       =  5.99989e-08
NCalls                    =          101
Constant                  =            1                      	 (fixed)
Mean                      =   -0.0352787   +/-   0.0965962   
Sigma                     =     0.965962   +/-   0.0682871    	 (limited)


Redo Fit using FUMILI2

****************************************
Minimizer is Fumili2
MinFCN                    =      138.433
NDf                       =           98
Edm                       =  2.48982e-08
NCalls                    =           82
Constant                  =            1                      	 (fixed)
Mean                      =   -0.0352693   +/-   0.0965973   
Sigma                     =     0.965973   +/-   0.0682889    	 (limited)


Redo Fit using FUMILI

****************************************
Minimizer is Fumili
MinFCN                    =      138.433
NDf                       =           98
NCalls                    =           28
Constant                  =            1                      	 (fixed)
Mean                      =   -0.0352989   +/-   0.0971056   
Sigma                     =     0.965832   +/-   0.0725474    	 (limited)

Unbin 1D Fit:		OK
Graph 1D Fit
		
********************************************************
Test simple fit of Tgraph of 5 points

********************************************************

test TGraph (no errors) 

****************************************
Minimizer is Minuit2
Chi2                      =        1.367
NDf                       =            3
Edm                       =  8.77851e-24
NCalls                    =           32
p0                        =         0.05   +/-   1.04881     
p1                        =         2.01   +/-   0.316228    

******************************
	 TGraph::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =        1.367
NDf                       =            3
Edm                       =  8.77851e-24
NCalls                    =           32
p0                        =         0.05   +/-   0.707978    
p1                        =         2.01   +/-   0.213464    

test TGraphErrors  

****************************************
Minimizer is Minuit2
Chi2                      =      2.20143
NDf                       =            3
Edm                       =  3.49269e-07
NCalls                    =           53
p0                        =    -0.072247   +/-   0.838048    
p1                        =      2.05077   +/-   0.253144    

******************************
	 TGraphErrors::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =      2.20143
NDf                       =            3
Edm                       =  3.49268e-07
NCalls                    =           53
p0                        =    -0.072247   +/-   0.838049    
p1                        =      2.05077   +/-   0.253144    

test TGraphAsymmErrors  

****************************************
Minimizer is Minuit2
Chi2                      =      1.88608
NDf                       =            3
Edm                       =  2.46747e-06
NCalls                    =           68
p0                        =   -0.0471118   +/-   0.789649    
p1                        =      2.10566   +/-   0.242767    

******************************
	 TGraphAsymmErrors::Fit Result 


****************************************
Minimizer is Minuit2
Chi2                      =      1.88608
NDf                       =            3
Edm                       =   2.4676e-06
NCalls                    =           68
p0                        =   -0.0471118   +/-   0.789648    
p1                        =      2.10566   +/-   0.242767    

Graph 1D Fit:		OK

******************************

	 testFit all OK