#include <ITiglObjectiveFunction.h>
Public Member Functions | |
| virtual TIGL_EXPORT double | getFunctionValue (const double *x) const =0 |
| returns the objective function for the parameter vector x | |
| virtual TIGL_EXPORT void | getGradient (const double *x, double *dx) const |
| returns the gradient dx for the parameter vector x | |
| virtual TIGL_EXPORT void | getGradientHessian (const double *x, double *dx, double *H) const |
| Sometimes it is more efficient to calculate gradient and hessian at once for these cases this function is provided. In the default implementation, it calls getGradient and getHessian succesively. | |
| virtual TIGL_EXPORT void | getHessian (const double *x, double *H) const |
| returns the hessian matrix for the parameter vector x | |
| virtual TIGL_EXPORT void | getNumericalGradient (const double *x, double *dx) const |
| provides a routine for the numerical gradient calculation | |
| virtual TIGL_EXPORT void | getNumericalHessian (const double *x, double *H) const |
| provides a routine for the numerical hessian calculation | |
| virtual TIGL_EXPORT int | getParameterCount () const =0 |
| virtual TIGL_EXPORT bool | hasAnalyticGradient () const =0 |
| virtual TIGL_EXPORT bool | hasAnalyticHessian () const =0 |
| TIGL_EXPORT | ITiglObjectiveFunction () |
| TIGL_EXPORT void | setNumericalStepSize (double h) |
| virtual TIGL_EXPORT | ~ITiglObjectiveFunction () |
Private Attributes | |
| double | h |
| TIGL_EXPORT tigl::ITiglObjectiveFunction::ITiglObjectiveFunction | ( | ) |
|
virtual |
|
pure virtual |
returns the objective function for the parameter vector x
Implemented in tigl::CTiglPointTranslator::SegmentProjection.
|
virtual |
returns the gradient dx for the parameter vector x
Reimplemented in tigl::CTiglPointTranslator::SegmentProjection.
|
virtual |
Sometimes it is more efficient to calculate gradient and hessian at once for these cases this function is provided. In the default implementation, it calls getGradient and getHessian succesively.
Reimplemented in tigl::CTiglPointTranslator::SegmentProjection.
|
virtual |
returns the hessian matrix for the parameter vector x
Reimplemented in tigl::CTiglPointTranslator::SegmentProjection.
|
virtual |
provides a routine for the numerical gradient calculation
|
virtual |
provides a routine for the numerical hessian calculation
|
pure virtual |
Implemented in tigl::CTiglPointTranslator::SegmentProjection.
|
pure virtual |
Implemented in tigl::CTiglPointTranslator::SegmentProjection.
|
pure virtual |
Implemented in tigl::CTiglPointTranslator::SegmentProjection.
| TIGL_EXPORT void tigl::ITiglObjectiveFunction::setNumericalStepSize | ( | double | h | ) |
|
private |