Log of /trunk/hist/hist/inc/TBackCompFitter.h
Parent Directory
Revision
35643 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 23 12:48:32 2010 UTC (4 years, 4 months ago) by
moneta
File length: 5942 byte(s)
Diff to
previous 34809
fix a conflict between using at the same time TFitter (and TMinuit) and TMinuitMinimizer (i.e. when doing TH1::Fit)
- by default TMinuitMinimizer uses global instance of TMinuit (gMinuit). Add a check now if this has been deleted or if it has been re-created outside
- when fitting with TH1::Fit delete the TBackCompFitter object only if it has been created before from a previos TH1::Fit. This avoids deleting an external TMinuit instance
This patch should fix https://savannah.cern.ch/bugs/index.php?72909
Revision
31873 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 14 10:05:39 2009 UTC (5 years, 1 month ago) by
brun
File length: 5685 byte(s)
Diff to
previous 28022
From Lorenzo:
a patch fixing some comments in the TBackCompFitter and Fitter class and adding
missing GetMinimizer() and GetObjFunction() methods.
Revision
28022 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 1 14:41:58 2009 UTC (5 years, 9 months ago) by
moneta
File length: 5438 byte(s)
Diff to
previous 26866
merge changes from math development branch.
In details the changes are
TH1
-----
add new functions IsBinUnderflow(bin), IsBinOverflow(bin) using global bin number
- fix a problem in TH1::Sumw2() when called from constructor of TProfile()
TProfile,TProfile2D and TProfile3D
----------------------------------
- add a new data member (TArrayD fBinSumw2) for storing the sum of weight square per bin. This is needed for correct error calculation in case of profile filled with weights different than 1. The new structure is filled only when TProfile::Sumw2() is called or when TH1::SetDefaultSumw2() is set.
- at the same time the TProfile classes have been improved by factoring out some common implementations of some methods like Add and Merge
TH2, TH3
------------------
change projection into TProfile's in case Sumw2() is set to correctly project the
errors.
Revision
26866 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 12 10:50:07 2008 UTC (6 years, 1 month ago) by
moneta
File length: 5277 byte(s)
Diff to
previous 26541
import lates changes from math development branch
(from rev 26842)
The main changes are:
- add support for drawing Scan and Contour plot from FitPanel
- improve Minimizer interface by adding methods for contours and scan.
implement them using Minuit and Minuit2
Mathcore:
- improve Fitter class
mantain now after fitting a reference to the Minimizer and Objective funciton which can be used later for performing the contour and scans
- avoid a copy of FitResult class
- add new methods in Minimizer for re-setting the variable values
- fix the bin fitting using the bin function integral in combination with the gradient or with Fumili
- add dictionary for Fit method functions
Minuit2:
remove limit on number of scan points
implement scan and contour in Minuit2Minimizer
Minuit
implement scan and contour in TMinuitMinimizer
SMatrix:
Change implementation of SMatrix::Invert (and Inverse) to use the
direct Cramer method only for 2x2 (not up to 5x5)
Add SMatrix::InvertFast using Cramer method up to 5x5
(this is having now same behavior as before)
hist:
TBackCompFitter:
improve class due to change in Fitter. Use now the minimizer reference and
there is no need to re-create it
Add interface for scan and contour in TBackCompFitter
Add methods to retrieve FitResult and FitConfig
mathmore
fix a memory leak
implement changes in Minimizer
fitpanel
new dialog for the advanced drawing option with two tabs one for
drawing contour the other for drawing scan plots
fixed some meory leaks and other small problems
Revision
25876 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Oct 18 09:35:00 2008 UTC (6 years, 3 months ago) by
moneta
File length: 3810 byte(s)
Diff to
previous 25529
import changes in dev branch in hist from revision 25740 to HEAD
import also changes in DataVector and BinData due to a missing virtual destructor
These changes do:
- fix a bug in using Error and More option.
- fix return code returned from Fit method
- add UnBinFit method for fitting unbinned data ( will be used later for TTree::Unbinned::Fit)
- improve treatment of strings in TBackCompFitter::ExecuteCommand
(now command is case unsensitive)
- add support for unbin data in TBackCompFitter
- forward declare BinData in HFitInterface.h ( this required to change also TFitEditor)
Revision
25529 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 25 09:53:11 2008 UTC (6 years, 3 months ago) by
moneta
File length: 3891 byte(s)
Diff to
previous 25507
- fix support for option "U" in Fit() method. Add in Fitter class method to fit FCN with Minuit-like type FCN.
Add method to retrieve FCN function pointer from static instance of TVirtualFitter.
Revision
25501 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 22 20:55:57 2008 UTC (6 years, 4 months ago) by
moneta
File length: 3759 byte(s)
Diff to
previous 25487
- fix a problem in using gMinuit after having called TH1::Fit. Now in the class TMinuitMinimizer a static TMinuit is not deleted and the static instance is used.
- for Minuit provide printing of results in the old way
- use MinimizerOptions class for default parameter of TVirtualFitter
Revision
25487 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 22 12:44:13 2008 UTC (6 years, 4 months ago) by
moneta
File length: 3446 byte(s)
Copied from:
branches/dev/mathDev/hist/hist/inc/TBackCompFitter.h revision 25468
Diff to
previous 25222
Import changes from math development branch, in particular a re-implementation of
fitting methods for the histogram and graph objects.
NOTE: Since some files are removed, a make clean-hist is needed in order to be able
to compile hist after an svn update.
The implementation of TH1::Fit, TGraph::Fit, TGraph2D::Fit and TMultiGraph::Fit is
done in a common function implemented in HFitImpl.cxx (HFit::Fit).
In addition the file HFitInterface.h define ROOT::Fit::FitObject functions passing
option directly via Foption class and not by a string. They are used by the FitPanel.
Remove previously existing files THistFitInterface.cxx (and *.h) and
TGraphFitInterface.cxx (and *.h). The code is now in the HFitInterface.cxx (and *.h)
files.
Use plugin manager directly to open the Fit Panel. Do not pass anymore via the THistPainter.
Changes in TH1::FitPanel, TGraph::FitPanel.
Add FitPanel() method for TGraph2D and TMultiGraph.
Add new class TBackCompFitter, providing a backward compatible implementation of
TVirtualFitter using the new fitting class. It is constructed from the fitter class
and can be used to retrieve the fit information (result and configuration) via the
TVirtualFitter API from FitConfig and FitResult. A static istance is created after
calling the Fit method.
Other changes are:
TGraph:
- when creating a graph from an histogram, don't use the same name.
Otherwise it will conflict later with histogram created internally by the TGraph.
TH2:
add protected method TH2::DoFitSlices and TH2::DoProfile as common implementations
for (FitSlicesX,FitSclicesY) and (ProfileX, ProfileY).
pass the global statistics in DoProjection when range is (1,NBIN)
TBinimialEfficiencyFit:
add possibility to set verbose option, and set different precision and
max iterations for minimizing.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.