13 #ifndef ROOT_TLinearMinimizer 14 #define ROOT_TLinearMinimizer 71 virtual bool SetVariable(
unsigned int ,
const std::string & ,
double ,
double ) {
return false; }
83 virtual double Edm()
const {
return 0; }
86 virtual const double *
X()
const {
return &
fParams.front(); }
92 virtual unsigned int NCalls()
const {
return 0; }
96 virtual unsigned int NDim()
const {
return fDim; }
112 virtual double CovMatrix(
unsigned int i,
unsigned int j)
const {
118 if (
fCovar.size() == 0)
return 0;
std::vector< double > fErrors
virtual const double * MinGradient() const
return pointer to gradient values at the minimum
virtual unsigned int NDim() const
this is <= Function().NDim() which is the total number of variables (free+ constrained ones) ...
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
virtual unsigned int NFree() const
number of free variables (real dimension of the problem) this is <= Function().NDim() which is the to...
The Linear Fitter - For fitting functions that are LINEAR IN PARAMETERS.
std::vector< double > fParams
virtual const double * X() const
return pointer to X values at the minimum
TLinearMinimizer class: minimizer implementation based on TMinuit.
virtual double Edm() const
return expected distance reached from the minimum
TLinearMinimizer & operator=(const TLinearMinimizer &rhs)
Assignment operator.
std::vector< double > fCovar
virtual const double * Errors() const
return errors at the minimum
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. )
Documentation for the abstract class IBaseFunctionMultiDim.
const ROOT::Math::IMultiGradFunction * fObjFunc
virtual bool ProvidesError() const
minimizer provides error and error matrix
TLinearMinimizer(int type=0)
Default constructor.
virtual bool Minimize()
method to perform the minimization
virtual int CovMatrixStatus() const
return covariance matrix status
bool fRobust
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const;...
virtual ~TLinearMinimizer()
Destructor (no operations)
virtual unsigned int NCalls() const
number of function calls to reach the minimum
virtual bool SetFixedVariable(unsigned int, const std::string &, double)
set fixed variable (override if minimizer supports them )
virtual double MinValue() const
return minimum function value
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...