5 #ifndef ROOT_Math_RMinimizer 6 #define ROOT_Math_RMinimizer 55 virtual unsigned int NCalls()
const;
57 double HessMatrix(
unsigned int i,
unsigned int j)
const;
61 virtual const double *
Errors()
const {
return fErrors.data(); }
66 virtual double CovMatrix(
unsigned int ivar ,
unsigned int jvar )
const {
79 if (fCovMatrix.
GetNrows() != ndim || fCovMatrix.
GetNcols() != ndim )
return false;
Namespace for new ROOT classes and functions.
RMinimizer(Option_t *method)
Default constructor.
virtual const double * Errors() const
return errors at the minimum
virtual const Element * GetMatrixArray() const
virtual bool ProvidesError() const
minimizer provides error and error matrix
TMatrixD fCovMatrix
covariant matrix
std::string fMethod
minimizer method to be used, must be of a type listed in R optim or optimx descriptions ...
std::vector< double > fErrors
vector of parameter errors
Base Minimizer class, which defines the basic funcionality of various minimizer implementations (apar...
virtual ~RMinimizer()
Destructor.
virtual bool Minimize()
Function to find the minimum.
virtual unsigned int NCalls() const
Returns the number of function calls.
double HessMatrix(unsigned int i, unsigned int j) const
Returns the ith jth component of the Hessian matrix.
virtual unsigned int NDim() const
number of dimensions
virtual double CovMatrix(unsigned int ivar, unsigned int jvar) const
return covariance matrices element for variables ivar,jvar if the variable is fixed the return value ...
virtual bool GetCovMatrix(double *covMat) const
Fill the passed array with the covariance matrix elements if the variable is fixed or const the value...
TMatrixD fHessMatrix
Hessian matrix.
Namespace for new Math classes and functions.