#include <TLinearMinimizer.h>
Inheritance diagram for TLinearMinimizer:

Public Member Functions | |
| TLinearMinimizer (int type=0) | |
| TLinearMinimizer (const char *type) | |
| virtual | ~TLinearMinimizer () |
| virtual void | SetFunction (const ROOT::Math::IMultiGenFunction &func) |
| set the fit model function | |
| virtual void | SetFunction (const ROOT::Math::IMultiGradFunction &func) |
| set the function to minimize | |
| virtual bool | SetVariable (unsigned int, const std::string &, double, double) |
| set free variable (dummy impl. ) | |
| virtual bool | SetFixedVariable (unsigned int, const std::string &, double) |
| set fixed variable (override if minimizer supports them ) | |
| virtual bool | Minimize () |
| method to perform the minimization | |
| virtual double | MinValue () const |
| return minimum function value | |
| virtual double | Edm () const |
| return expected distance reached from the minimum | |
| virtual const double * | X () const |
| return pointer to X values at the minimum | |
| virtual const double * | MinGradient () const |
| return pointer to gradient values at the minimum | |
| virtual unsigned int | NCalls () const |
| number of function calls to reach the minimum | |
| virtual unsigned int | NDim () const |
| virtual unsigned int | NFree () const |
| virtual bool | ProvidesError () const |
| minimizer provides error and error matrix | |
| virtual const double * | Errors () const |
| return errors at the minimum | |
| virtual double | CovMatrix (unsigned int i, unsigned int j) const |
| virtual int | CovMatrixStatus () const |
| return covariance matrix status | |
| TLinearMinimizer (int type=0) | |
| TLinearMinimizer (const char *type) | |
| virtual | ~TLinearMinimizer () |
| virtual void | SetFunction (const ROOT::Math::IMultiGenFunction &func) |
| set the fit model function | |
| virtual void | SetFunction (const ROOT::Math::IMultiGradFunction &func) |
| set the function to minimize | |
| virtual bool | SetVariable (unsigned int, const std::string &, double, double) |
| set free variable (dummy impl. ) | |
| virtual bool | SetFixedVariable (unsigned int, const std::string &, double) |
| set fixed variable (override if minimizer supports them ) | |
| virtual bool | Minimize () |
| method to perform the minimization | |
| virtual double | MinValue () const |
| return minimum function value | |
| virtual double | Edm () const |
| return expected distance reached from the minimum | |
| virtual const double * | X () const |
| return pointer to X values at the minimum | |
| virtual const double * | MinGradient () const |
| return pointer to gradient values at the minimum | |
| virtual unsigned int | NCalls () const |
| number of function calls to reach the minimum | |
| virtual unsigned int | NDim () const |
| virtual unsigned int | NFree () const |
| virtual bool | ProvidesError () const |
| minimizer provides error and error matrix | |
| virtual const double * | Errors () const |
| return errors at the minimum | |
| virtual double | CovMatrix (unsigned int i, unsigned int j) const |
| virtual int | CovMatrixStatus () const |
| return covariance matrix status | |
Private Member Functions | |
| TLinearMinimizer (const TLinearMinimizer &) | |
| TLinearMinimizer & | operator= (const TLinearMinimizer &rhs) |
| TLinearMinimizer (const TLinearMinimizer &) | |
| TLinearMinimizer & | operator= (const TLinearMinimizer &rhs) |
Private Attributes | |
| bool | fRobust |
| unsigned int | fDim |
| unsigned int | fNFree |
| double | fMinVal |
| std::vector< double > | fParams |
| std::vector< double > | fErrors |
| std::vector< double > | fCovar |
| const ROOT::Math::IMultiGradFunction * | fObjFunc |
| TLinearFitter * | fFitter |
| std::vector< double > | fParams |
| std::vector< double > | fErrors |
| std::vector< double > | fCovar |
| const ROOT::Math::IMultiGradFunction * | fObjFunc |
| TLinearFitter * | fFitter |
Definition at line 34 of file TLinearMinimizer.h.
| TLinearMinimizer::TLinearMinimizer | ( | int | type = 0 |
) |
Default constructor
| TLinearMinimizer::TLinearMinimizer | ( | const char * | type | ) |
Constructor from a char * (used by PM)
Definition at line 80 of file TLinearMinimizer.cxx.
| TLinearMinimizer::~TLinearMinimizer | ( | ) | [virtual] |
| TLinearMinimizer::TLinearMinimizer | ( | const TLinearMinimizer & | ) | [private] |
Copy constructor
Definition at line 104 of file TLinearMinimizer.cxx.
| TLinearMinimizer::TLinearMinimizer | ( | int | type = 0 |
) |
Default constructor
| TLinearMinimizer::TLinearMinimizer | ( | const char * | type | ) |
Constructor from a char * (used by PM)
| virtual TLinearMinimizer::~TLinearMinimizer | ( | ) | [virtual] |
Destructor (no operations)
| TLinearMinimizer::TLinearMinimizer | ( | const TLinearMinimizer & | ) | [private] |
Copy constructor
| TLinearMinimizer & TLinearMinimizer::operator= | ( | const TLinearMinimizer & | rhs | ) | [private] |
Assignment operator
Definition at line 110 of file TLinearMinimizer.cxx.
| void TLinearMinimizer::SetFunction | ( | const ROOT::Math::IMultiGenFunction & | func | ) | [virtual] |
set the fit model function
Implements ROOT::Math::Minimizer.
Definition at line 118 of file TLinearMinimizer.cxx.
References Error.
| void TLinearMinimizer::SetFunction | ( | const ROOT::Math::IMultiGradFunction & | func | ) | [virtual] |
set the function to minimize
Reimplemented from ROOT::Math::Minimizer.
Definition at line 125 of file TLinearMinimizer.cxx.
References TObjArray::Add(), TLinearFitter::AddPoint(), data, Error, fDim, fFitter, fNFree, fObjFunc, fRobust, TROOT::GetListOfFunctions(), gROOT, i, NDim(), TCollection::Remove(), TLinearFitter::SetBasisFunctions(), TLinearFitter::StoreData(), u, x, and y.
| virtual bool TLinearMinimizer::SetVariable | ( | unsigned int | , | |
| const std::string & | , | |||
| double | , | |||
| double | ||||
| ) | [inline, virtual] |
set free variable (dummy impl. )
Implements ROOT::Math::Minimizer.
Definition at line 75 of file TLinearMinimizer.h.
| bool TLinearMinimizer::SetFixedVariable | ( | unsigned | int, | |
| const std::string & | , | |||
| double | ||||
| ) | [virtual] |
set fixed variable (override if minimizer supports them )
Reimplemented from ROOT::Math::Minimizer.
Definition at line 185 of file TLinearMinimizer.cxx.
References fFitter, and TLinearFitter::FixParameter().
| bool TLinearMinimizer::Minimize | ( | ) | [virtual] |
method to perform the minimization
Implements ROOT::Math::Minimizer.
Definition at line 192 of file TLinearMinimizer.cxx.
References copy(), TLinearFitter::Eval(), TLinearFitter::EvalRobust(), fCovar, fDim, fErrors, fFitter, fMinVal, fObjFunc, fParams, fRobust, ROOT::Math::Minimizer::fStatus, TLinearFitter::GetCovarianceMatrix(), TLinearFitter::GetParameter(), TLinearFitter::GetParError(), h, i, ROOT::Math::Minimizer::PrintLevel(), ROOT::Math::Minimizer::Tolerance(), and Warning().
| virtual double TLinearMinimizer::MinValue | ( | ) | const [inline, virtual] |
return minimum function value
Implements ROOT::Math::Minimizer.
Definition at line 84 of file TLinearMinimizer.h.
References fMinVal.
| virtual double TLinearMinimizer::Edm | ( | ) | const [inline, virtual] |
return expected distance reached from the minimum
Implements ROOT::Math::Minimizer.
Definition at line 87 of file TLinearMinimizer.h.
| virtual const double* TLinearMinimizer::X | ( | ) | const [inline, virtual] |
return pointer to X values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 90 of file TLinearMinimizer.h.
References fParams.
| virtual const double* TLinearMinimizer::MinGradient | ( | ) | const [inline, virtual] |
return pointer to gradient values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 93 of file TLinearMinimizer.h.
| virtual unsigned int TLinearMinimizer::NCalls | ( | ) | const [inline, virtual] |
number of function calls to reach the minimum
Implements ROOT::Math::Minimizer.
Definition at line 96 of file TLinearMinimizer.h.
| virtual unsigned int TLinearMinimizer::NDim | ( | ) | const [inline, virtual] |
this is <= Function().NDim() which is the total number of variables (free+ constrained ones)
Implements ROOT::Math::Minimizer.
Definition at line 100 of file TLinearMinimizer.h.
References fDim.
Referenced by SetFunction().
| virtual unsigned int TLinearMinimizer::NFree | ( | ) | const [inline, virtual] |
number of free variables (real dimension of the problem) this is <= Function().NDim() which is the total
Implements ROOT::Math::Minimizer.
Definition at line 104 of file TLinearMinimizer.h.
References fNFree.
| virtual bool TLinearMinimizer::ProvidesError | ( | ) | const [inline, virtual] |
minimizer provides error and error matrix
Implements ROOT::Math::Minimizer.
Definition at line 107 of file TLinearMinimizer.h.
| virtual const double* TLinearMinimizer::Errors | ( | ) | const [inline, virtual] |
return errors at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 110 of file TLinearMinimizer.h.
References fErrors.
| virtual double TLinearMinimizer::CovMatrix | ( | unsigned int | i, | |
| unsigned int | j | |||
| ) | const [inline, virtual] |
return covariance matrices elements if the variable is fixed the matrix is zero The ordering of the variables is the same as in errors
Implements ROOT::Math::Minimizer.
Definition at line 116 of file TLinearMinimizer.h.
| virtual int TLinearMinimizer::CovMatrixStatus | ( | ) | const [inline, virtual] |
return covariance matrix status
Reimplemented from ROOT::Math::Minimizer.
Definition at line 121 of file TLinearMinimizer.h.
References fCovar, and ROOT::Math::Minimizer::fStatus.
| TLinearMinimizer& TLinearMinimizer::operator= | ( | const TLinearMinimizer & | rhs | ) | [private] |
Assignment operator
| virtual void TLinearMinimizer::SetFunction | ( | const ROOT::Math::IMultiGenFunction & | func | ) | [virtual] |
| virtual void TLinearMinimizer::SetFunction | ( | const ROOT::Math::IMultiGradFunction & | func | ) | [virtual] |
| virtual bool TLinearMinimizer::SetVariable | ( | unsigned int | , | |
| const std::string & | , | |||
| double | , | |||
| double | ||||
| ) | [inline, virtual] |
set free variable (dummy impl. )
Implements ROOT::Math::Minimizer.
Definition at line 75 of file TLinearMinimizer.h.
| virtual bool TLinearMinimizer::SetFixedVariable | ( | unsigned | int, | |
| const std::string & | , | |||
| double | ||||
| ) | [virtual] |
| virtual bool TLinearMinimizer::Minimize | ( | ) | [virtual] |
| virtual double TLinearMinimizer::MinValue | ( | ) | const [inline, virtual] |
return minimum function value
Implements ROOT::Math::Minimizer.
Definition at line 84 of file TLinearMinimizer.h.
References fMinVal.
| virtual double TLinearMinimizer::Edm | ( | ) | const [inline, virtual] |
return expected distance reached from the minimum
Implements ROOT::Math::Minimizer.
Definition at line 87 of file TLinearMinimizer.h.
| virtual const double* TLinearMinimizer::X | ( | ) | const [inline, virtual] |
return pointer to X values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 90 of file TLinearMinimizer.h.
References fParams.
| virtual const double* TLinearMinimizer::MinGradient | ( | ) | const [inline, virtual] |
return pointer to gradient values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 93 of file TLinearMinimizer.h.
| virtual unsigned int TLinearMinimizer::NCalls | ( | ) | const [inline, virtual] |
number of function calls to reach the minimum
Implements ROOT::Math::Minimizer.
Definition at line 96 of file TLinearMinimizer.h.
| virtual unsigned int TLinearMinimizer::NDim | ( | ) | const [inline, virtual] |
this is <= Function().NDim() which is the total number of variables (free+ constrained ones)
Implements ROOT::Math::Minimizer.
Definition at line 100 of file TLinearMinimizer.h.
References fDim.
| virtual unsigned int TLinearMinimizer::NFree | ( | ) | const [inline, virtual] |
number of free variables (real dimension of the problem) this is <= Function().NDim() which is the total
Implements ROOT::Math::Minimizer.
Definition at line 104 of file TLinearMinimizer.h.
References fNFree.
| virtual bool TLinearMinimizer::ProvidesError | ( | ) | const [inline, virtual] |
minimizer provides error and error matrix
Implements ROOT::Math::Minimizer.
Definition at line 107 of file TLinearMinimizer.h.
| virtual const double* TLinearMinimizer::Errors | ( | ) | const [inline, virtual] |
return errors at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 110 of file TLinearMinimizer.h.
References fErrors.
| virtual double TLinearMinimizer::CovMatrix | ( | unsigned int | i, | |
| unsigned int | j | |||
| ) | const [inline, virtual] |
return covariance matrices elements if the variable is fixed the matrix is zero The ordering of the variables is the same as in errors
Implements ROOT::Math::Minimizer.
Definition at line 116 of file TLinearMinimizer.h.
| virtual int TLinearMinimizer::CovMatrixStatus | ( | ) | const [inline, virtual] |
return covariance matrix status
Reimplemented from ROOT::Math::Minimizer.
Definition at line 121 of file TLinearMinimizer.h.
References fCovar, and ROOT::Math::Minimizer::fStatus.
bool TLinearMinimizer::fRobust [private] |
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const;
Definition at line 136 of file TLinearMinimizer.h.
Referenced by Minimize(), SetFunction(), and TLinearMinimizer().
unsigned int TLinearMinimizer::fDim [private] |
Definition at line 137 of file TLinearMinimizer.h.
Referenced by CovMatrix(), Minimize(), NDim(), and SetFunction().
unsigned int TLinearMinimizer::fNFree [private] |
double TLinearMinimizer::fMinVal [private] |
std::vector<double> TLinearMinimizer::fParams [private] |
std::vector<double> TLinearMinimizer::fErrors [private] |
std::vector<double> TLinearMinimizer::fCovar [private] |
Definition at line 142 of file TLinearMinimizer.h.
Referenced by CovMatrix(), CovMatrixStatus(), and Minimize().
const ROOT::Math::IMultiGradFunction* TLinearMinimizer::fObjFunc [private] |
TLinearFitter* TLinearMinimizer::fFitter [private] |
Definition at line 145 of file TLinearMinimizer.h.
Referenced by Minimize(), SetFixedVariable(), SetFunction(), and ~TLinearMinimizer().
std::vector<double> TLinearMinimizer::fParams [private] |
Definition at line 140 of file TLinearMinimizer.h.
std::vector<double> TLinearMinimizer::fErrors [private] |
Definition at line 141 of file TLinearMinimizer.h.
std::vector<double> TLinearMinimizer::fCovar [private] |
Definition at line 142 of file TLinearMinimizer.h.
const ROOT::Math::IMultiGradFunction* TLinearMinimizer::fObjFunc [private] |
Definition at line 144 of file TLinearMinimizer.h.
TLinearFitter* TLinearMinimizer::fFitter [private] |
Definition at line 145 of file TLinearMinimizer.h.
1.5.1