[root] / trunk / math / minuit / src / TLinearFitter.cxx Repository:
ViewVC logotype

Log of /trunk/math/minuit/src/TLinearFitter.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 25486 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 12:43:03 2008 UTC (6 years, 4 months ago) by moneta
File length: 76609 byte(s)
Diff to previous 23471
import changes from math development branches for subdirectory math. List of changes in detail: 

mathcore: 
---------
  MinimizerOptions: 
	new  class for storing Minimizer option, with static default values that can be 
	changed by the user

  FitConfig: 
   	- use default values from MinimizerOption class
   	- rename method to create parameter settings from a function

  FitUtil.cxx:   
    	improve the derivative calculations used in the effective chi2 and in Fumili and 
	fix a bug for evaluation of likelihood or chi2 terms. 
	In  EvaluatePdf() work and return  the log of the pdf. 
      
  FitResult:
	- improve the class by adding extra information like, num. of free parameters, 
	minimizer status, global correlation coefficients, information about fixed 
	and bound parameters. 
   	- add method for getting fit confidence intervals 
  	- improve print method   

  DataRange: 
	add method SetRange to distinguish from AddRange. SetRange deletes the existing 
	ranges. 

  ParamsSettings: make few methods const

  FCN functions (Chi2FCN, LogLikelihoodFCN, etc..) 
	move some common methods and data members in base class (FitMethodFunction)

  RootFinder: add template Solve() for any callable function.  

mathmore:
--------
  minimizer classes: fill status information
  GSLNLSMinimizer: return error and covariance matrix 

minuit2: 
-------
  Minuit2Minimizer: fill  status information 
  DavidonErrorUpdator: check that delgam or gvg are not zero ( can happen when dg = 0)
  FumiliFCNAdapter: work on the log of pdf

minuit:
------- 
  TLinearMinimizer: add support for robust fitting
  TMinuitMinimizer: fill status information and fix a bug in filling the correlation matrix. 
 fumili:
 ------ 
  add TFumiliMinimizer: 
	wrapper class for TFumili using Minimizer interface

Revision 23471 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 14:12:22 2008 UTC (6 years, 9 months ago) by brun
File length: 76607 byte(s)
Diff to previous 22885
Fix a shadowed variable

Revision 22885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 28 13:57:25 2008 UTC (6 years, 9 months ago) by rdm
File length: 76637 byte(s)
Diff to previous 22564
move the following directories under the new "math" meta directory:
   mathcore
   mathmore
   fftw
   foam
   fumili
   genvector
   matrix
   minuit
   minuit2
   mlp
   physics
   smatrix
   splot
   unuran
   quadp

Revision 22564 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 10 14:01:37 2008 UTC (6 years, 10 months ago) by moneta
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 76637 byte(s)
Diff to previous 22225
- fix coding convention violations (mainly change name of RootFinder enumeration)
- fix warning observed on the Windows nightly (avid generating the dictionary for fit method functions for all platforms, it is not needed) 
- add implementation of  Minimizer interface using TMinuit and the linear fitter
- add method SetBasisFunctions in TLinearFitter class to set the linear terms  
- add some optimization of wrapped functions and improve doc

Revision 22225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 19 10:54:50 2008 UTC (6 years, 11 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 75649 byte(s)
Diff to previous 22157
Fix coding conventions.

Revision 22157 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 15 15:09:07 2008 UTC (6 years, 11 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 75578 byte(s)
Diff to previous 21713
From Anna:
- in TLinearFitter::AddToDesign(), change the temporary parameter array size from 100 to 1000.
- Add a function TLinearFitter::GetNpoints() to return the number of points.
- Add functions TLinearFitter::GetDesignMatrix() and TLinearFitter::GetAtbVector() to return the corresponding internal structures of the fitter.

Revision 21713 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 15 11:12:38 2008 UTC (7 years ago) by moneta
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 75028 byte(s)
Diff to previous 20882
- fix a bug in getting the confidence intervals in an histogram of TGraph2D
- use the 2-side confidence interval for the passed values in the methods not the 1 side.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 75004 byte(s)
Diff to previous 20608
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 2 07:56:45 2007 UTC (7 years, 2 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 75004 byte(s)
Diff to previous 20405
Fix compiler warning.

Revision 20405 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 19 07:48:56 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 75005 byte(s)
Diff to previous 20201
Add support for fitting with a function dimension less than the histogram dimension.
//     It is possible to fit a TH2 with a TF1 or a TH3 with a TF2.
//     In this case the option "Integral" is not allowed and each cell has
//     equal weight.

Revision 20201 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 4 07:59:28 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 74795 byte(s)
Diff to previous 19826
Fix coding conventions.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 74768 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 74824 byte(s)
Diff to previous 19823
remove :$ from tag line

Revision 19823 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 15:11:34 2007 UTC (7 years, 4 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 74834 byte(s)
Diff to previous 19482
From Anna:
Following a user request, functions Add() and Merge() for TLinearFitter were implemented. Also, its streamer now works correctly and pre-fixed parameters are only checked for in case of a TF1 (or TF2, TF3) function, not TFormula.

Revision 19482 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 27 18:03:55 2007 UTC (7 years, 5 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 72521 byte(s)
Diff to previous 17673
From Lorenzo:
fix bug

https://savannah.cern.ch/bugs/?27999

by setting the parameters to zero when the fit fails

Revision 17673 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 3 19:36:16 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 72009 byte(s)
Diff to previous 17663
add missing includes required on some systems

Revision 17663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 3 18:07:29 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71992 byte(s)
Diff to previous 17648
Use forward declarations of classes TAxis, TF2, TH2 and TList.
Fix consequences.

Revision 17648 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 3 06:40:26 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71973 byte(s)
Diff to previous 16756
From Eddy:
Remove the inclusion of TMath.h in TMatrixTUtils.h and fix all the consequences

Revision 16756 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 13 11:24:15 2006 UTC (8 years, 2 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71954 byte(s)
Diff to previous 16470
When the option "W" is specified when calling TH1::Fit, the bins with
no contents are excluded by default. To also include the bins with no contents
and force all weights to be equal, specify the option "WW"

Revision 16470 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 7 05:38:16 2006 UTC (8 years, 3 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71834 byte(s)
Diff to previous 16279
From Eddy Offermann:
 A clear Error message has been added when a matrix inversion fails .

Revision 16279 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 15 15:16:57 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71740 byte(s)
Diff to previous 15972
From Anna:
- TFormula::EvalPar() is not changing parameters (the fParams data member) when a user passes his own uparams array as a second argument. Before - sometimes it did, sometimes it didn't.
- TF1::GradientPar() is now 0 on fixed parameters
- TFitter::GetConfidenceIntervals() is now taking the fixed parameters into account
- TLinearFitter::GetConfidenceIntervals()  is now taking the fixed parameters into account
- TLinearFitter::FixParameter() can now be called before a first fit is performed (an accidently found bug :))
- TLinearFitter::Eval() now returns 1 if there are errors in the fit. According changes in:
  --TH1
  --TGraph
  --TGraph2D
  --TMultiGraph

Revision 15972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 10 10:33:04 2006 UTC (8 years, 5 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71141 byte(s)
Diff to previous 15950
Fix coding conventions.

Revision 15950 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 8 16:02:44 2006 UTC (8 years, 5 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71098 byte(s)
Diff to previous 15849
From Federico:
Implement more copy constructors for the collection classes
such that copy constructors of classes embedding ROOT collections
can be implemented.

Revision 15849 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 13:36:44 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 68633 byte(s)
Diff to previous 15489
Instead of providing default implementations for copy ctor's and assignment
operators we better make them private (and not implemented) to avoid people
from accidentally using them. Especially the collections classes and the
TQObject derived classes. In these classes the default implementations would
cause havoc due to multiple deletions of the same objects and other
potential memory corruptions.

Revision 15489 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 20 16:01:16 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 70875 byte(s)
Diff to previous 15181
Improve precision when printing results of fit in TLinearFitter::PrintResults

Revision 15181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 15:13:03 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 70876 byte(s)
Diff to previous 15168
one more round of code cleanup: change NULL by 0 in all C++ code.

Revision 15168 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 24 15:10:47 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 71013 byte(s)
Diff to previous 15134
Fix coding conventions violations

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 70890 byte(s)
Diff to previous 15033
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

Revision 15033 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 14 07:43:40 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 68768 byte(s)
Diff to previous 15030
Fix coding conventions violations

Revision 15030 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 13 21:49:17 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 68745 byte(s)
Diff to previous 14320
Fix coding conventions violations

Revision 14320 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 16:15:40 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 68697 byte(s)
Diff to previous 14310
From Anna:
implementation of the GetParName() and GetParameter(Int_t ipar, char
*name,...) functions for TLinearFitter

Revision 14310 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 08:22:40 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 68094 byte(s)
Diff to previous 13739
Add new function
const char *TVirtualFitter::GetParName(Int_t ipar) const
and the concrete implementation in all the fitter classes.

Revision 13739 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 20 15:09:17 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 67785 byte(s)
Diff to previous 13734
From Anna:
Fix an exceptionally stupid bug. There was an array allocation with ()
instead of [].

Revision 13734 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 19 17:40:36 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 67750 byte(s)
Diff to previous 13652
From Anna:
I found a bug in the robust part of the linear fitter.

Revision 13652 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 12 14:39:15 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 69790 byte(s)
Diff to previous 13412
From Anna:
here are the changes in TFormula::ProcessLinear and in TLinearFitter to make them
both accept "x[i]" kind of functions. I've changed the comments to describe this new
syntax only, but the old "xi" kind of functions can still be processed by the linear
fitter.

Revision 13412 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 29 19:02:58 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 69949 byte(s)
Diff to previous 13399
From Anna:
 I was a little careless with memory in TF1::GradientPar, and now
I've changed it. There are also the "constness" changes.

Revision 13399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 29 14:43:59 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 69943 byte(s)
Diff to previous 13347
From Anna:
Implement new functions in the TVirtualFitter and corresponding
implementations to compute the confidence intervals.
Two kinds of interfaces are implemented, eg

void TFitter::GetConfidenceIntervals(Int_t n, Int_t ndim, Double_t *x, Double_t *ci, Double_t cl)
//Computes point-by-point confidence intervals for the fitted function
//Parameters:
//n - number of points
//ndim - dimensions of points
//x - points, at which to compute the intervals, for ndim > 1
//    should be in order: (x0,y0, x1, y1, ... xn, yn)
//ci - computed intervals are returned in this array
//cl - confidence level, default=0.95
//NOTE, that the intervals are approximate for nonlinear(in parameters) models


void TFitter::GetConfidenceIntervals(TObject *obj, Double_t cl)
//Computes confidence intervals at level cl. Default is 0.95
//The TObject parameter can be a TGraphErrors, a TGraph2DErrors or a TH1,2,3.
//For Graphs, confidence intervals are computed for each point,
//the value of the graph at that point is set to the function value at that
//point, and the graph y-errors (or z-errors) are set to the value of
//the confidence interval at that point.
//For Histograms, confidence intervals are computed for each bin center
//The bin content of this bin is then set to the function value at the bin
//center, and the bin error is set to the confidence interval value.
//NOTE: confidence intervals are approximate for nonlinear models!
//
//Allowed combinations:
//Fitted object               Passed object
//TGraph                      TGraphErrors, TH1
//TGraphErrors, AsymmErrors   TGraphErrors, TH1
//TH1                         TGraphErrors, TH1
//TGraph2D                    TGraph2DErrors, TH2
//TGraph2DErrors              TGraph2DErrors, TH2
//TH2                         TGraph2DErrors, TH2
//TH3                         TH3

Revision 13347 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 24 16:17:16 2005 UTC (9 years, 2 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 60530 byte(s)
Diff to previous 12623
From Anna:
the corrected TLinearFitter::GetCovarianceMatrix, that returned 0 before.

Revision 12623 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 4 10:40:24 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 60309 byte(s)
Diff to previous 12622
Fix coding conventions violations.

Revision 12622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 4 10:38:41 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 58195 byte(s)
Diff to previous 12378
Fix coding conventions violations.

Revision 12378 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 25 10:22:47 2005 UTC (9 years, 6 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 58147 byte(s)
Diff to previous 12136
From Anna Kreshuk:
This patch deals with the crash if no points are fitted. now parameters
values, errros and all other fit information are set to zero.

Revision 12136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 23 10:04:08 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 57638 byte(s)
Diff to previous 11979
From Anna Kreshuk:
Methods to compute Least trimmed squares regression coefficients
were added to the TLinearFitter class.

Now robust linear fitting can be performed for the datasets, in which
outliers influence the ordinary least-squares fit. The maximal breakdown
point of the algorithm is |(floor((n-p)/2) +1)/n, which means that
LTS fit stays in a bounded region whenever floor((n-p)/2) or fewer
observations are replaced by arbitary points.

The implementation is based on the article "Computing LTS regression
for Large Data Sets" by Peter J. Rousseeuw and Katrien Van Driessen.

Revision 11979 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 6 13:44:10 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 37285 byte(s)
Diff to previous 11923
In TLinearFitter::Eval set the number of points used during the fit

Revision 11923 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 31 18:49:25 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 37225 byte(s)
Diff to previous 11692
From Philippe:
This patch fixes a fatal typo in LinearFitter.cxx
Replace new Bool_t(size) with new Bool_t[size]

Revision 11692 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 29 16:10:42 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 37225 byte(s)
Diff to previous 11605
From Anna Kreshuk:
Some additional comments into TH1, TGraph and TGraph2D Fit
functions and also some changes of the linear fitter.

Revision 11605 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 17 14:12:50 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 37508 byte(s)
Diff to previous 11346
From Anna Kreshuk:
Some fixes for the linear fitter, some cosmetic changes in the
TH1, TGraph, TMultigraph and TGraph2D, and also the new fitting option
"F", which allows to switch to minuit when fitting a polN.

Revision 11346 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 15 12:13:16 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 37462 byte(s)
Diff to previous 11233
From Anna kreshuk:
some changes in the TLinearFitter class for the case of hyperplane fitting.

Revision 11233 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 4 15:32:26 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 37532 byte(s)
Diff to previous 11229
the header was lacking multiple inclusion protection ifdef's and the
source was full of <TABS>.

Revision 11229 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 4 09:24:52 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 36019 byte(s)
Diff to previous 11228
Fix a portability problem on Solaris

Revision 11228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 4 09:21:07 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 36005 byte(s)
Diff to previous 11227
Fix a portability problem on Windows.
Add library dependency of Minuit on libMatrix

Revision 11227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 4 09:14:26 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 36004 byte(s)
Diff to previous 11226
Fix portability problems

Revision 11226 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Mar 4 09:06:37 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/minuit/src/TLinearFitter.cxx
File length: 36009 byte(s)
From Anna Kreshuk:
- TLinearFitter class: Linear fitter is used to fit a set of data points with a linear
  combination of specified functions (with or without weights). The "linear" in the name
  stands for "linear in parameters", not variables. The main advantages,
  compared to a general non-linear fitter, is that the linear fitter is considerably
  faster and doesn't require setting the initial values of parameters.
  The linear fitter can be used directly or through TH1::Fit and TGraph::Fit functions
  When it's used directly, functions of more than 3 dimensions can be fitted.

- TFormula: a new data member fLinearParts and methods to process it are added. Now
  one can create a function of the type that can be fit by the linear fitter.
  Example: TFormula f("f", "x++sin(x)") is equivalent to
  TFormula f("f","[0]*x + [1]*sin(x)"), but if a TH1::Fit or a TGraph::Fit is performed
  with the 1st formula, it goes through the linear fitter, if it's performed with the
  2nd formula, it goes through Minuit.

- TMultiGraph class: the Fit method is implemented, allowing to fit all the graphs
  of a multigraph simultaneously

- TGraph, TGraphErrors, TGraphAsymmErrors, TGraphBentErrors - functions GetEXhigh(),
  GetEXlow(), GetEYhigh(), GetEYlow() implemented to simplify the GraphFitChisquare()
  function of the TFitter class

- TH1, TGraph, TGraph2D, TMultiGraph - changes in the Fit functions, allowing to use
  the linear fitter. Fitting with "polN" functions redirected to use the linear fitter,
  in cases where no options, except "range", are specified.

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9