GammaLib
2.0.0
|
Optimizer function abstract base class. More...
#include <GOptimizerFunction.hpp>
Public Member Functions | |
GOptimizerFunction (void) | |
Void constructor. More... | |
GOptimizerFunction (const GOptimizerFunction &fct) | |
Copy constructor. More... | |
virtual | ~GOptimizerFunction (void) |
Destructor. More... | |
virtual GOptimizerFunction & | operator= (const GOptimizerFunction &fct) |
Assignment operator. More... | |
virtual void | eval (const GOptimizerPars &pars)=0 |
virtual double | value (void) const =0 |
virtual GVector * | gradient (void)=0 |
virtual GMatrixSparse * | curvature (void)=0 |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GOptimizerFunction &fct) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Optimizer function abstract base class.
This class provides an abstract interface for the function that is used by the GOptimizer optimization class.
The eval() method returns the function value at a given set of parameters that is defined by an instance of the optimizer parameter container class GOptimizerPars. The value() method returns the actual function value at these parameters, and the gradient() and covar() methods return pointers on the gradient vector and the covariance matrix at the parameter values.
Definition at line 50 of file GOptimizerFunction.hpp.
GOptimizerFunction::GOptimizerFunction | ( | void | ) |
GOptimizerFunction::GOptimizerFunction | ( | const GOptimizerFunction & | fct | ) |
Copy constructor.
[in] | fct | Optimizer function. |
Definition at line 63 of file GOptimizerFunction.cpp.
References copy_members(), and init_members().
|
virtual |
|
protected |
Copy class members.
[in] | fct | Optimizer function. |
Definition at line 149 of file GOptimizerFunction.cpp.
Referenced by GOptimizerFunction(), and operator=().
|
pure virtual |
Implemented in GObservations::likelihood.
Referenced by GOptimizerLM::errors(), GOptimizerLM::iteration(), and GOptimizerLM::optimize().
|
pure virtual |
Implemented in GObservations::likelihood.
Referenced by GOptimizerLM::errors(), GOptimizerLM::iteration(), and GOptimizerLM::optimize().
|
protected |
Delete class members.
Definition at line 159 of file GOptimizerFunction.cpp.
Referenced by operator=(), and ~GOptimizerFunction().
|
pure virtual |
Implemented in GObservations::likelihood.
Referenced by GOptimizerLM::iteration(), and GOptimizerLM::optimize().
|
protected |
Initialise class members.
Definition at line 137 of file GOptimizerFunction.cpp.
Referenced by GOptimizerFunction(), and operator=().
|
virtual |
Assignment operator.
[in] | fct | Optimizer function. |
Definition at line 101 of file GOptimizerFunction.cpp.
References copy_members(), free_members(), and init_members().
Referenced by GObservations::likelihood::operator=().
|
pure virtual |
Implemented in GObservations::likelihood.
Referenced by GOptimizerLM::errors(), GOptimizerLM::iteration(), and GOptimizerLM::optimize().