#include <TMinuitMinimizer.h>
Inheritance diagram for TMinuitMinimizer:
Public Member Functions | |
TMinuitMinimizer (ROOT::Minuit::EMinimizerType type=ROOT::Minuit::kMigrad, unsigned int ndim=0) | |
TMinuitMinimizer (const char *type, unsigned int ndim=0) | |
~TMinuitMinimizer () | |
virtual void | SetFunction (const ROOT::Math::IMultiGenFunction &func) |
set the function to minimize | |
virtual void | SetFunction (const ROOT::Math::IMultiGradFunction &func) |
set the function to minimize | |
virtual bool | SetVariable (unsigned int ivar, const std::string &name, double val, double step) |
set free variable | |
virtual bool | SetLimitedVariable (unsigned int ivar, const std::string &name, double val, double step, double, double) |
set upper/lower limited variable (override if minimizer supports them ) | |
virtual bool | SetFixedVariable (unsigned int, const std::string &, double) |
set fixed variable (override if minimizer supports them ) | |
virtual bool | SetVariableValue (unsigned int, double) |
set the value of an existing variable | |
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 status of covariance matrix | |
virtual double | GlobalCC (unsigned int) const |
global correlation coefficient for variable i | |
virtual bool | GetMinosError (unsigned int i, double &errLow, double &errUp, int=0) |
minos error for variable i, return false if Minos failed | |
virtual bool | Hesse () |
virtual bool | Scan (unsigned int i, unsigned int &nstep, double *x, double *y, double xmin=0, double xmax=0) |
virtual bool | Contour (unsigned int i, unsigned int j, unsigned int &npoints, double *xi, double *xj) |
virtual void | PrintResults () |
print the result according to set level (implemented for TMinuit for mantaining Minuit-style printing) | |
virtual std::string | VariableName (unsigned int ivar) const |
get name of variables (override if minimizer support storing of variable names) | |
virtual int | VariableIndex (const std::string &name) const |
TMinuitMinimizer (ROOT::Minuit::EMinimizerType type=ROOT::Minuit::kMigrad, unsigned int ndim=0) | |
TMinuitMinimizer (const char *type, unsigned int ndim=0) | |
~TMinuitMinimizer () | |
virtual void | SetFunction (const ROOT::Math::IMultiGenFunction &func) |
set the function to minimize | |
virtual void | SetFunction (const ROOT::Math::IMultiGradFunction &func) |
set the function to minimize | |
virtual bool | SetVariable (unsigned int ivar, const std::string &name, double val, double step) |
set free variable | |
virtual bool | SetLimitedVariable (unsigned int ivar, const std::string &name, double val, double step, double, double) |
set upper/lower limited variable (override if minimizer supports them ) | |
virtual bool | SetFixedVariable (unsigned int, const std::string &, double) |
set fixed variable (override if minimizer supports them ) | |
virtual bool | SetVariableValue (unsigned int, double) |
set the value of an existing variable | |
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 status of covariance matrix | |
virtual double | GlobalCC (unsigned int) const |
global correlation coefficient for variable i | |
virtual bool | GetMinosError (unsigned int i, double &errLow, double &errUp, int=0) |
minos error for variable i, return false if Minos failed | |
virtual bool | Hesse () |
virtual bool | Scan (unsigned int i, unsigned int &nstep, double *x, double *y, double xmin=0, double xmax=0) |
virtual bool | Contour (unsigned int i, unsigned int j, unsigned int &npoints, double *xi, double *xj) |
virtual void | PrintResults () |
print the result according to set level (implemented for TMinuit for mantaining Minuit-style printing) | |
virtual std::string | VariableName (unsigned int ivar) const |
get name of variables (override if minimizer support storing of variable names) | |
virtual int | VariableIndex (const std::string &name) const |
Static Public Member Functions | |
static bool | UseStaticMinuit (bool on=true) |
static bool | UseStaticMinuit (bool on=true) |
Protected Member Functions | |
void | InitTMinuit (int ndim) |
initialize the TMinuit instance | |
void | DoClear () |
reset | |
void | DoReleaseFixParameter (int ivar) |
release a parameter that is fixed when it is redefined | |
void | RetrieveParams () |
retrieve minimum parameters and errors from TMinuit | |
void | RetrieveErrorMatrix () |
retrieve error matrix from TMinuit | |
void | InitTMinuit (int ndim) |
initialize the TMinuit instance | |
void | DoClear () |
reset | |
void | DoReleaseFixParameter (int ivar) |
release a parameter that is fixed when it is redefined | |
void | RetrieveParams () |
retrieve minimum parameters and errors from TMinuit | |
void | RetrieveErrorMatrix () |
retrieve error matrix from TMinuit | |
Static Protected Member Functions | |
static void | Fcn (int &, double *, double &f, double *, int) |
implementation of FCN for Minuit | |
static void | FcnGrad (int &, double *g, double &f, double *, int) |
implementation of FCN for Minuit when user provided gradient is used | |
static void | Fcn (int &, double *, double &f, double *, int) |
implementation of FCN for Minuit | |
static void | FcnGrad (int &, double *g, double &f, double *, int) |
implementation of FCN for Minuit when user provided gradient is used | |
Private Member Functions | |
TMinuitMinimizer (const TMinuitMinimizer &) | |
TMinuitMinimizer & | operator= (const TMinuitMinimizer &rhs) |
TMinuitMinimizer (const TMinuitMinimizer &) | |
TMinuitMinimizer & | operator= (const TMinuitMinimizer &rhs) |
Private Attributes | |
bool | fUsed |
bool | fMinosRun |
unsigned int | fDim |
unsigned int | fStrategy |
std::vector< double > | fParams |
std::vector< double > | fErrors |
std::vector< double > | fCovar |
ROOT::Minuit::EMinimizerType | fType |
TMinuit * | fMinuit |
std::vector< double > | fParams |
std::vector< double > | fErrors |
std::vector< double > | fCovar |
TMinuit * | fMinuit |
Static Private Attributes | |
static ROOT::Math::IMultiGenFunction * | fgFunc |
static TMinuit * | fgMinuit |
static bool | fgUsed |
static bool | fgUseStaticMinuit |
static ROOT::Math::IMultiGenFunction * | fgFunc |
static TMinuit * | fgMinuit |
Definition at line 51 of file TMinuitMinimizer.h.
TMinuitMinimizer::TMinuitMinimizer | ( | ROOT::Minuit::EMinimizerType | type = ROOT::Minuit::kMigrad , |
|
unsigned int | ndim = 0 | |||
) |
Default constructor
TMinuitMinimizer::TMinuitMinimizer | ( | const char * | type, | |
unsigned int | ndim = 0 | |||
) |
Constructor from a char * (used by PM)
Definition at line 66 of file TMinuitMinimizer.cxx.
References fDim, fType, InitTMinuit(), int, ROOT::Minuit::kCombined, ROOT::Minuit::kMigrad, ROOT::Minuit::kMigradImproved, ROOT::Minuit::kScan, ROOT::Minuit::kSeek, ROOT::Minuit::kSimplex, and transform.
TMinuitMinimizer::~TMinuitMinimizer | ( | ) |
Destructor (no operations)
Definition at line 95 of file TMinuitMinimizer.cxx.
References fgMinuit, fgUseStaticMinuit, and fMinuit.
TMinuitMinimizer::TMinuitMinimizer | ( | const TMinuitMinimizer & | ) | [private] |
Copy constructor
Definition at line 104 of file TMinuitMinimizer.cxx.
TMinuitMinimizer::TMinuitMinimizer | ( | ROOT::Minuit::EMinimizerType | type = ROOT::Minuit::kMigrad , |
|
unsigned int | ndim = 0 | |||
) |
Default constructor
TMinuitMinimizer::TMinuitMinimizer | ( | const char * | type, | |
unsigned int | ndim = 0 | |||
) |
Constructor from a char * (used by PM)
TMinuitMinimizer::~TMinuitMinimizer | ( | ) |
Destructor (no operations)
TMinuitMinimizer::TMinuitMinimizer | ( | const TMinuitMinimizer & | ) | [private] |
Copy constructor
TMinuitMinimizer & TMinuitMinimizer::operator= | ( | const TMinuitMinimizer & | rhs | ) | [private] |
Assignment operator
Definition at line 110 of file TMinuitMinimizer.cxx.
void TMinuitMinimizer::SetFunction | ( | const ROOT::Math::IMultiGenFunction & | func | ) | [virtual] |
set the function to minimize
Implements ROOT::Math::Minimizer.
Definition at line 198 of file TMinuitMinimizer.cxx.
References Fcn(), fDim, fgFunc, fMinuit, func(), InitTMinuit(), TMinuit::mnexcm(), and TMinuit::SetFCN().
void TMinuitMinimizer::SetFunction | ( | const ROOT::Math::IMultiGradFunction & | func | ) | [virtual] |
set the function to minimize
Reimplemented from ROOT::Math::Minimizer.
Definition at line 220 of file TMinuitMinimizer.cxx.
References FcnGrad(), fDim, fgFunc, fMinuit, func(), InitTMinuit(), TMinuit::mnexcm(), and TMinuit::SetFCN().
bool TMinuitMinimizer::SetVariable | ( | unsigned int | ivar, | |
const std::string & | name, | |||
double | val, | |||
double | step | |||
) | [virtual] |
set free variable
Implements ROOT::Math::Minimizer.
Definition at line 262 of file TMinuitMinimizer.cxx.
References TMinuit::DefineParameter(), DoClear(), DoReleaseFixParameter(), Error, fgUsed, fMinuit, and fUsed.
bool TMinuitMinimizer::SetLimitedVariable | ( | unsigned int | ivar, | |
const std::string & | name, | |||
double | val, | |||
double | step, | |||
double | , | |||
double | ||||
) | [virtual] |
set upper/lower limited variable (override if minimizer supports them )
Reimplemented from ROOT::Math::Minimizer.
Definition at line 281 of file TMinuitMinimizer.cxx.
References TMinuit::DefineParameter(), DoClear(), DoReleaseFixParameter(), Error, fgUsed, fMinuit, and fUsed.
bool TMinuitMinimizer::SetFixedVariable | ( | unsigned | int, | |
const std::string & | , | |||
double | ||||
) | [virtual] |
set fixed variable (override if minimizer supports them )
Reimplemented from ROOT::Math::Minimizer.
Definition at line 324 of file TMinuitMinimizer.cxx.
References TMinuit::DefineParameter(), DoClear(), Error, fgUsed, TMinuit::FixParameter(), fMinuit, and fUsed.
bool TMinuitMinimizer::SetVariableValue | ( | unsigned | int, | |
double | ||||
) | [virtual] |
set the value of an existing variable
Reimplemented from ROOT::Math::Minimizer.
Definition at line 346 of file TMinuitMinimizer.cxx.
References Error, fMinuit, and TMinuit::mnexcm().
bool TMinuitMinimizer::Minimize | ( | ) | [virtual] |
method to perform the minimization
Implements ROOT::Math::Minimizer.
Definition at line 375 of file TMinuitMinimizer.cxx.
References Error, ROOT::Math::Minimizer::ErrorDef(), fDim, fgUsed, fMinosRun, fMinuit, TMinuit::fNu, ROOT::Math::Minimizer::fStatus, fType, fUsed, Info, ROOT::Math::Minimizer::IsValidError(), ROOT::Minuit::kCombined, ROOT::Minuit::kMigrad, ROOT::Minuit::kMigradImproved, ROOT::Minuit::kScan, ROOT::Minuit::kSeek, ROOT::Minuit::kSimplex, ROOT::Math::Minimizer::MaxFunctionCalls(), TMinuit::mnexcm(), ROOT::Math::Minimizer::Precision(), ROOT::Math::Minimizer::PrintLevel(), RetrieveErrorMatrix(), RetrieveParams(), and ROOT::Math::Minimizer::Tolerance().
double TMinuitMinimizer::MinValue | ( | ) | const [virtual] |
return minimum function value
Implements ROOT::Math::Minimizer.
Definition at line 552 of file TMinuitMinimizer.cxx.
References TMinuit::fAmin, fMinuit, and TMinuit::fUndefi.
double TMinuitMinimizer::Edm | ( | ) | const [virtual] |
return expected distance reached from the minimum
Implements ROOT::Math::Minimizer.
Definition at line 562 of file TMinuitMinimizer.cxx.
References TMinuit::fAmin, TMinuit::fBigedm, TMinuit::fEDM, fMinuit, TMinuit::fUndefi, and TMinuit::fUp.
virtual const double* TMinuitMinimizer::X | ( | ) | const [inline, virtual] |
return pointer to X values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 120 of file TMinuitMinimizer.h.
References fParams.
virtual const double* TMinuitMinimizer::MinGradient | ( | ) | const [inline, virtual] |
return pointer to gradient values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 123 of file TMinuitMinimizer.h.
unsigned int TMinuitMinimizer::NCalls | ( | ) | const [virtual] |
number of function calls to reach the minimum
Implements ROOT::Math::Minimizer.
Definition at line 546 of file TMinuitMinimizer.cxx.
References fMinuit, and TMinuit::fNfcn.
virtual unsigned int TMinuitMinimizer::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 130 of file TMinuitMinimizer.h.
References fDim.
unsigned int TMinuitMinimizer::NFree | ( | ) | const [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 571 of file TMinuitMinimizer.cxx.
References fMinuit, and TMinuit::fNpar.
Referenced by RetrieveErrorMatrix().
virtual bool TMinuitMinimizer::ProvidesError | ( | ) | const [inline, virtual] |
minimizer provides error and error matrix
Implements ROOT::Math::Minimizer.
Definition at line 137 of file TMinuitMinimizer.h.
virtual const double* TMinuitMinimizer::Errors | ( | ) | const [inline, virtual] |
return errors at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 140 of file TMinuitMinimizer.h.
References fErrors.
virtual double TMinuitMinimizer::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 146 of file TMinuitMinimizer.h.
int TMinuitMinimizer::CovMatrixStatus | ( | ) | const [virtual] |
return status of covariance matrix
Reimplemented from ROOT::Math::Minimizer.
Definition at line 578 of file TMinuitMinimizer.cxx.
References TMinuit::fAmin, TMinuit::fISW, fMinuit, and TMinuit::fUndefi.
double TMinuitMinimizer::GlobalCC | ( | unsigned | int | ) | const [virtual] |
global correlation coefficient for variable i
Reimplemented from ROOT::Math::Minimizer.
Definition at line 591 of file TMinuitMinimizer.cxx.
References TMinuit::fGlobcc, fMinuit, TMinuit::fNiofex, and TMinuit::fNu.
bool TMinuitMinimizer::GetMinosError | ( | unsigned int | i, | |
double & | errLow, | |||
double & | errUp, | |||
int | = 0 | |||
) | [virtual] |
minos error for variable i, return false if Minos failed
Reimplemented from ROOT::Math::Minimizer.
Definition at line 603 of file TMinuitMinimizer.cxx.
References Error, ROOT::Math::Minimizer::ErrorDef(), fMinosRun, fMinuit, ROOT::Math::Minimizer::fStatus, ROOT::Math::Minimizer::MaxFunctionCalls(), TMinuit::mnerrs(), TMinuit::mnexcm(), ROOT::Math::Minimizer::Precision(), and ROOT::Math::Minimizer::PrintLevel().
bool TMinuitMinimizer::Hesse | ( | ) | [virtual] |
perform a full calculation of the Hessian matrix for error calculation
Reimplemented from ROOT::Math::Minimizer.
Definition at line 825 of file TMinuitMinimizer.cxx.
References Error, ROOT::Math::Minimizer::ErrorDef(), fMinuit, ROOT::Math::Minimizer::fStatus, ROOT::Math::Minimizer::MaxFunctionCalls(), TMinuit::mnexcm(), ROOT::Math::Minimizer::Precision(), ROOT::Math::Minimizer::PrintLevel(), RetrieveErrorMatrix(), and RetrieveParams().
bool TMinuitMinimizer::Scan | ( | unsigned int | i, | |
unsigned int & | nstep, | |||
double * | x, | |||
double * | y, | |||
double | xmin = 0 , |
|||
double | xmax = 0 | |||
) | [virtual] |
scan a parameter i around the minimum. A minimization must have been done before, return false if it is not the case
Reimplemented from ROOT::Math::Minimizer.
Definition at line 753 of file TMinuitMinimizer.cxx.
References copy(), Error, fMinuit, TGraph::GetN(), TMinuit::GetPlot(), TGraph::GetX(), TGraph::GetY(), gr, int, min, TMinuit::mnexcm(), TMinuit::mnpout(), name, ROOT::Math::Minimizer::Precision(), ROOT::Math::Minimizer::PrintLevel(), and val.
bool TMinuitMinimizer::Contour | ( | unsigned int | i, | |
unsigned int | j, | |||
unsigned int & | npoints, | |||
double * | xi, | |||
double * | xj | |||
) | [virtual] |
find the contour points (xi,xj) of the function for parameter i and j around the minimum The contour will be find for value of the function = Min + ErrorUp();
Reimplemented from ROOT::Math::Minimizer.
Definition at line 704 of file TMinuitMinimizer.cxx.
References Error, ROOT::Math::Minimizer::ErrorDef(), fMinuit, TMinuit::mncont(), TMinuit::mnexcm(), ROOT::Math::Minimizer::Precision(), ROOT::Math::Minimizer::PrintLevel(), and Warning().
void TMinuitMinimizer::PrintResults | ( | ) | [virtual] |
print the result according to set level (implemented for TMinuit for mantaining Minuit-style printing)
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const = 0;
Reimplemented from ROOT::Math::Minimizer.
Definition at line 692 of file TMinuitMinimizer.cxx.
References TMinuit::fAmin, fMinuit, TMinuit::mnprin(), and ROOT::Math::Minimizer::PrintLevel().
std::string TMinuitMinimizer::VariableName | ( | unsigned int | ivar | ) | const [virtual] |
get name of variables (override if minimizer support storing of variable names)
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const;
Reimplemented from ROOT::Math::Minimizer.
Definition at line 363 of file TMinuitMinimizer.cxx.
References TMinuit::fCpnam, fMinuit, and TMinuit::fNu.
int TMinuitMinimizer::VariableIndex | ( | const std::string & | name | ) | const [virtual] |
get index of variable given a variable given a name return always -1 . (It is Not implemented)
Reimplemented from ROOT::Math::Minimizer.
Definition at line 369 of file TMinuitMinimizer.cxx.
References Error.
bool TMinuitMinimizer::UseStaticMinuit | ( | bool | on = true |
) | [static] |
static function to switch on/off usage of static global TMinuit instance (gMinuit) By default it is used (i.e. is on). Method returns the previous state
Definition at line 117 of file TMinuitMinimizer.cxx.
References fgUseStaticMinuit.
Referenced by G__G__Minuit_218_0_31(), and G__setup_memfuncTMinuitMinimizer().
implementation of FCN for Minuit
Definition at line 243 of file TMinuitMinimizer.cxx.
References fgFunc.
Referenced by SetFunction().
void TMinuitMinimizer::FcnGrad | ( | int & | , | |
double * | g, | |||
double & | f, | |||
double * | , | |||
int | ||||
) | [static, protected] |
implementation of FCN for Minuit when user provided gradient is used
Definition at line 249 of file TMinuitMinimizer.cxx.
References fgFunc, and ROOT::Math::IGradientFunctionMultiDim::Gradient().
Referenced by SetFunction().
void TMinuitMinimizer::InitTMinuit | ( | int | ndim | ) | [protected] |
initialize the TMinuit instance
Definition at line 124 of file TMinuitMinimizer.cxx.
References fDim, fgMinuit, fgUsed, fgUseStaticMinuit, TCollection::FindObject(), TMinuit::fMaxpar, fMinuit, TROOT::GetListOfSpecials(), TMinuit::GetNumPars(), gMinuit, gROOT, int, TMinuit::mnexcm(), ROOT::Math::Minimizer::PrintLevel(), and R__ASSERT.
Referenced by SetFunction(), and TMinuitMinimizer().
void TMinuitMinimizer::DoClear | ( | ) | [protected] |
reset
Definition at line 656 of file TMinuitMinimizer.cxx.
References fgUsed, fMinuit, fUsed, TMinuit::mncler(), and TMinuit::mnrn15().
Referenced by SetFixedVariable(), SetLimitedVariable(), and SetVariable().
void TMinuitMinimizer::DoReleaseFixParameter | ( | int | ivar | ) | [protected] |
release a parameter that is fixed when it is redefined
Definition at line 671 of file TMinuitMinimizer.cxx.
References TMinuit::fIpfix, fMinuit, TMinuit::fNpfix, TMinuit::GetNumFixedPars(), TMinuit::GetNumPars(), i, and TMinuit::Release().
Referenced by SetLimitedVariable(), and SetVariable().
void TMinuitMinimizer::RetrieveParams | ( | ) | [protected] |
retrieve minimum parameters and errors from TMinuit
Definition at line 495 of file TMinuitMinimizer.cxx.
References fDim, fErrors, fMinuit, fParams, TMinuit::GetParameter(), and i.
Referenced by Hesse(), and Minimize().
void TMinuitMinimizer::RetrieveErrorMatrix | ( | ) | [protected] |
retrieve error matrix from TMinuit
Definition at line 509 of file TMinuitMinimizer.cxx.
References fCovar, fDim, fMinuit, TMinuit::fNiofex, for(), i, j, l, m, TMinuit::mnemat(), and NFree().
Referenced by Hesse(), and Minimize().
TMinuitMinimizer& TMinuitMinimizer::operator= | ( | const TMinuitMinimizer & | rhs | ) | [private] |
Assignment operator
virtual void TMinuitMinimizer::SetFunction | ( | const ROOT::Math::IMultiGenFunction & | func | ) | [virtual] |
virtual void TMinuitMinimizer::SetFunction | ( | const ROOT::Math::IMultiGradFunction & | func | ) | [virtual] |
virtual bool TMinuitMinimizer::SetVariable | ( | unsigned int | ivar, | |
const std::string & | name, | |||
double | val, | |||
double | step | |||
) | [virtual] |
virtual bool TMinuitMinimizer::SetLimitedVariable | ( | unsigned int | ivar, | |
const std::string & | name, | |||
double | val, | |||
double | step, | |||
double | , | |||
double | ||||
) | [virtual] |
set upper/lower limited variable (override if minimizer supports them )
Reimplemented from ROOT::Math::Minimizer.
virtual bool TMinuitMinimizer::SetFixedVariable | ( | unsigned | int, | |
const std::string & | , | |||
double | ||||
) | [virtual] |
virtual bool TMinuitMinimizer::SetVariableValue | ( | unsigned | int, | |
double | ||||
) | [virtual] |
virtual bool TMinuitMinimizer::Minimize | ( | ) | [virtual] |
virtual double TMinuitMinimizer::MinValue | ( | ) | const [virtual] |
virtual double TMinuitMinimizer::Edm | ( | ) | const [virtual] |
virtual const double* TMinuitMinimizer::X | ( | ) | const [inline, virtual] |
return pointer to X values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 120 of file TMinuitMinimizer.h.
References fParams.
virtual const double* TMinuitMinimizer::MinGradient | ( | ) | const [inline, virtual] |
return pointer to gradient values at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 123 of file TMinuitMinimizer.h.
virtual unsigned int TMinuitMinimizer::NCalls | ( | ) | const [virtual] |
virtual unsigned int TMinuitMinimizer::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 130 of file TMinuitMinimizer.h.
References fDim.
virtual unsigned int TMinuitMinimizer::NFree | ( | ) | const [virtual] |
number of free variables (real dimension of the problem) this is <= Function().NDim() which is the total
Implements ROOT::Math::Minimizer.
virtual bool TMinuitMinimizer::ProvidesError | ( | ) | const [inline, virtual] |
minimizer provides error and error matrix
Implements ROOT::Math::Minimizer.
Definition at line 137 of file TMinuitMinimizer.h.
virtual const double* TMinuitMinimizer::Errors | ( | ) | const [inline, virtual] |
return errors at the minimum
Implements ROOT::Math::Minimizer.
Definition at line 140 of file TMinuitMinimizer.h.
References fErrors.
virtual double TMinuitMinimizer::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 146 of file TMinuitMinimizer.h.
virtual int TMinuitMinimizer::CovMatrixStatus | ( | ) | const [virtual] |
virtual double TMinuitMinimizer::GlobalCC | ( | unsigned | int | ) | const [virtual] |
virtual bool TMinuitMinimizer::Hesse | ( | ) | [virtual] |
perform a full calculation of the Hessian matrix for error calculation
Reimplemented from ROOT::Math::Minimizer.
virtual bool TMinuitMinimizer::Scan | ( | unsigned int | i, | |
unsigned int & | nstep, | |||
double * | x, | |||
double * | y, | |||
double | xmin = 0 , |
|||
double | xmax = 0 | |||
) | [virtual] |
scan a parameter i around the minimum. A minimization must have been done before, return false if it is not the case
Reimplemented from ROOT::Math::Minimizer.
virtual bool TMinuitMinimizer::Contour | ( | unsigned int | i, | |
unsigned int | j, | |||
unsigned int & | npoints, | |||
double * | xi, | |||
double * | xj | |||
) | [virtual] |
find the contour points (xi,xj) of the function for parameter i and j around the minimum The contour will be find for value of the function = Min + ErrorUp();
Reimplemented from ROOT::Math::Minimizer.
virtual void TMinuitMinimizer::PrintResults | ( | ) | [virtual] |
print the result according to set level (implemented for TMinuit for mantaining Minuit-style printing)
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const = 0;
Reimplemented from ROOT::Math::Minimizer.
virtual std::string TMinuitMinimizer::VariableName | ( | unsigned int | ivar | ) | const [virtual] |
get name of variables (override if minimizer support storing of variable names)
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const;
Reimplemented from ROOT::Math::Minimizer.
virtual int TMinuitMinimizer::VariableIndex | ( | const std::string & | name | ) | const [virtual] |
get index of variable given a variable given a name return always -1 . (It is Not implemented)
Reimplemented from ROOT::Math::Minimizer.
static bool TMinuitMinimizer::UseStaticMinuit | ( | bool | on = true |
) | [static] |
static function to switch on/off usage of static global TMinuit instance (gMinuit) By default it is used (i.e. is on). Method returns the previous state
static void TMinuitMinimizer::Fcn | ( | int & | , | |
double * | , | |||
double & | f, | |||
double * | , | |||
int | ||||
) | [static, protected] |
implementation of FCN for Minuit
static void TMinuitMinimizer::FcnGrad | ( | int & | , | |
double * | g, | |||
double & | f, | |||
double * | , | |||
int | ||||
) | [static, protected] |
implementation of FCN for Minuit when user provided gradient is used
void TMinuitMinimizer::InitTMinuit | ( | int | ndim | ) | [protected] |
initialize the TMinuit instance
void TMinuitMinimizer::DoClear | ( | ) | [protected] |
reset
void TMinuitMinimizer::DoReleaseFixParameter | ( | int | ivar | ) | [protected] |
release a parameter that is fixed when it is redefined
void TMinuitMinimizer::RetrieveParams | ( | ) | [protected] |
retrieve minimum parameters and errors from TMinuit
void TMinuitMinimizer::RetrieveErrorMatrix | ( | ) | [protected] |
retrieve error matrix from TMinuit
bool TMinuitMinimizer::fUsed [private] |
Definition at line 218 of file TMinuitMinimizer.h.
Referenced by DoClear(), Minimize(), SetFixedVariable(), SetLimitedVariable(), and SetVariable().
bool TMinuitMinimizer::fMinosRun [private] |
unsigned int TMinuitMinimizer::fDim [private] |
Definition at line 220 of file TMinuitMinimizer.h.
Referenced by CovMatrix(), InitTMinuit(), Minimize(), NDim(), RetrieveErrorMatrix(), RetrieveParams(), SetFunction(), and TMinuitMinimizer().
unsigned int TMinuitMinimizer::fStrategy [private] |
std::vector<double> TMinuitMinimizer::fParams [private] |
std::vector<double> TMinuitMinimizer::fErrors [private] |
std::vector<double> TMinuitMinimizer::fCovar [private] |
Definition at line 224 of file TMinuitMinimizer.h.
Referenced by CovMatrix(), and RetrieveErrorMatrix().
Definition at line 226 of file TMinuitMinimizer.h.
Referenced by Minimize(), and TMinuitMinimizer().
TMinuit* TMinuitMinimizer::fMinuit [private] |
Definition at line 227 of file TMinuitMinimizer.h.
Referenced by Contour(), CovMatrixStatus(), DoClear(), DoReleaseFixParameter(), Edm(), GetMinosError(), GlobalCC(), Hesse(), InitTMinuit(), Minimize(), MinValue(), NCalls(), NFree(), PrintResults(), RetrieveErrorMatrix(), RetrieveParams(), Scan(), SetFixedVariable(), SetFunction(), SetLimitedVariable(), SetVariable(), SetVariableValue(), VariableName(), and ~TMinuitMinimizer().
ROOT::Math::IMultiGenFunction * TMinuitMinimizer::fgFunc [static, private] |
Definition at line 231 of file TMinuitMinimizer.h.
Referenced by Fcn(), FcnGrad(), and SetFunction().
TMinuit * TMinuitMinimizer::fgMinuit [static, private] |
Definition at line 233 of file TMinuitMinimizer.h.
Referenced by InitTMinuit(), and ~TMinuitMinimizer().
bool TMinuitMinimizer::fgUsed [static, private] |
Definition at line 235 of file TMinuitMinimizer.h.
Referenced by DoClear(), InitTMinuit(), Minimize(), SetFixedVariable(), SetLimitedVariable(), and SetVariable().
bool TMinuitMinimizer::fgUseStaticMinuit [static, private] |
Definition at line 236 of file TMinuitMinimizer.h.
Referenced by InitTMinuit(), UseStaticMinuit(), and ~TMinuitMinimizer().
std::vector<double> TMinuitMinimizer::fParams [private] |
Definition at line 222 of file TMinuitMinimizer.h.
std::vector<double> TMinuitMinimizer::fErrors [private] |
Definition at line 223 of file TMinuitMinimizer.h.
std::vector<double> TMinuitMinimizer::fCovar [private] |
Definition at line 224 of file TMinuitMinimizer.h.
TMinuit* TMinuitMinimizer::fMinuit [private] |
Definition at line 227 of file TMinuitMinimizer.h.
ROOT::Math::IMultiGenFunction* TMinuitMinimizer::fgFunc [static, private] |
Definition at line 231 of file TMinuitMinimizer.h.
TMinuit* TMinuitMinimizer::fgMinuit [static, private] |
Definition at line 233 of file TMinuitMinimizer.h.