13 #ifndef ROOT_TLinearMinimizer
14 #define ROOT_TLinearMinimizer
16 #ifndef ROOT_Math_Minimizer
75 virtual bool SetVariable(
unsigned int ,
const std::string & ,
double ,
double ) {
return false; }
87 virtual double Edm()
const {
return 0; }
90 virtual const double *
X()
const {
return &
fParams.front(); }
96 virtual unsigned int NCalls()
const {
return 0; }
116 virtual double CovMatrix(
unsigned int i,
unsigned int j)
const {
122 if (
fCovar.size() == 0)
return 0;
virtual const double * Errors() const
return errors at the minimum
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
std::vector< double > fErrors
virtual unsigned int NCalls() const
number of function calls to reach the minimum
The Linear Fitter - For fitting functions that are LINEAR IN PARAMETERS.
std::vector< double > fParams
virtual const double * MinGradient() const
return pointer to gradient values at the minimum
TLinearMinimizer class: minimizer implementation based on TMinuit.
#define ClassDef(name, id)
TLinearMinimizer & operator=(const TLinearMinimizer &rhs)
Assignment operator.
std::vector< double > fCovar
Abstract Minimizer class, defining the interface for the various minimizer (like Minuit2, Minuit, GSL, etc..) Plug-in's exist in ROOT to be able to instantiate the derived classes like ROOT::Math::GSLMinimizer or ROOT::Math::Minuit2Minimizer via the plug-in manager.
virtual void SetFunction(const ROOT::Math::IMultiGenFunction &func)
set the fit model function
virtual bool SetVariable(unsigned int, const std::string &, double, double)
set free variable (dummy impl. )
virtual const double * X() const
return pointer to X values at the minimum
const ROOT::Math::IMultiGradFunction * fObjFunc
virtual unsigned int NFree() const
number of free variables (real dimension of the problem) this is <= Function().NDim() which is the to...
virtual double MinValue() const
return minimum function value
virtual bool ProvidesError() const
minimizer provides error and error matrix
TLinearMinimizer(int type=0)
Default constructor.
virtual unsigned int NDim() const
this is <= Function().NDim() which is the total number of variables (free+ constrained ones) ...
double func(double *x, double *p)
virtual bool Minimize()
method to perform the minimization
virtual double CovMatrix(unsigned int i, unsigned int j) const
return covariance matrices elements if the variable is fixed the matrix is zero The ordering of the v...
bool fRobust
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const;...
virtual int CovMatrixStatus() const
return covariance matrix status
virtual ~TLinearMinimizer()
Destructor (no operations)
Documentation for the abstract class IBaseFunctionMultiDim.
virtual double Edm() const
return expected distance reached from the minimum
virtual bool SetFixedVariable(unsigned int, const std::string &, double)
set fixed variable (override if minimizer supports them )