Log of /trunk/hist/hist/inc/TFitResult.h
Parent Directory
Revision
31261 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Nov 18 07:31:51 2009 UTC (5 years, 2 months ago) by
moneta
File length: 2139 byte(s)
Diff to
previous 31208
- remove assert in TFitResultPtr and print instead an error messages
- implement TFitRresult::Print and method to retrieve a covariance and correlation matrix as a TMatrixDSym
FitResult:
- fix a bug in FitResult in returning the correlation matrix for fixed parameters
- improve printout in case of empty classes
Revision
31207 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Nov 16 16:52:00 2009 UTC (5 years, 2 months ago) by
moneta
File length: 2028 byte(s)
Copied from:
branches/dev/mathDev/hist/hist/inc/TFitResult.h revision 31170
Diff to
previous 31159
merge from https://root.cern.ch/svn/root/branches/dev/mathDev/hist/hist up to revision 31170
from David and myself
Summary of major changes:
- TFitResult, TFitResultPtr
- add new class TFitResult which extend FitResult with TNamed for the I/O. The result of the fit , including covariance and correlation matrix, minos errors, etc... can then be stored in a file
- add a class TFitResultPtr which behaves like a pointer to TFitResult and can be converted to an integer. This class is now returned by TH1::Fit and TGraph::Fit. By default the class contains only the returned integer status of the fit. If option "S" is used the class contains a pointer to TFitResult which can be retrieved using the -> or * operators (like a smart pointer)
The conversion to int provides backward compatibility with the old signature ( int TH1::Fit )
- TH1, TGraph, TGraph2D, TMultiGraph
change from int Fit(....) to TFitResultPtr Fit(.....)
remove internal function DoFit
- THnSparse
add functionality for fitting a sparse histogram. Default method is the likelihood one. Chi2 can be used with the new option "X"
- FOption
- add some new options for fitting:
"S" for storing the fit resul
"X" for forcing chi2 fit in case of THnSParse
"EX0" for neglecting errors in X when fitting TGraphErrors
- WrappedMultiTF1
- make the wrapper for TF1 multi-dim function implementing the gradient interface
Minos changes:
TH1:
- add check of compatibility for each bins when using Add on variable bin histograms
TH3:
- fix a bug in setting the entries for a projected 2d profile when using weights
THNSParse:
- set also the entries (and reset statistics) in the projected sparse histogram
TFormula:
- define the number for the 2d function like xygaus or xylandau
HFItInterface:
improve filling data for histograms (add support for bin volume normalization)
add initialization for exponential and 2d gaus functions
Revision
31127 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Thu Nov 12 14:16:09 2009 UTC (5 years, 2 months ago) by
dmgonzal
Original Path:
branches/dev/mathDev/hist/hist/inc/TFitResult.h
File length: 1929 byte(s)
Implemented the new TFitResult class. This is an indirection to
ROOT::Fit::FitResult that inherits from TObject, making it possible to
be stored and read from a TFile.
Also remove the methods DoFit from TH1, TGraph, TMultiGraph and
TGraph2D, that were making an unnecessary indirection.
All the fit methods of the mentioned classes now return a TFitObject
class so that the users can inspect it. This implements a conversor to
int, so that the client's code doesn't need to be changed to continue
working.
The TFitResult will not be filled with a FitResult object unless
option "S" is especified in the Fit method.
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.