GClasses
|
#include <GLearnerLib.h>
Public Member Functions | |
OptimizerTargetFunc (GMatrix *pIn, GMatrix *pOut, GFunction *pFunc, GFunctionParser *pParser) | |
virtual | ~OptimizerTargetFunc () |
virtual double | computeError (const GVec &pVector) |
Computes the error of the given vector using all patterns. More... | |
virtual void | initVector (GVec &pVector) |
Sets pVector to an initial guess. The default behavior is to initialize the vector to all zeros. You should override this method if different behavior is desired. More... | |
virtual bool | isConstrained () |
virtual bool | isStable () |
This method should return true if computeError is deterministic with respect to the vector being optimized. It should return false if the error depends on some state other than the vector being optimized. This mostly affects whether the optimization algorithms are permitted to remember old error values for efficiency purposes. Stable is assumed, so you should override this method if your target function is not stable. More... | |
Public Member Functions inherited from GClasses::GTargetFunction | |
GTargetFunction (GRelation *pRelation) | |
Takes ownership of pRelation. More... | |
GTargetFunction (size_t dims) | |
virtual | ~GTargetFunction () |
GRelation * | relation () |
Returns a (smart) pointer to the relation, which specifies the type (discrete or real) of each element in the vector that is being optimized. More... | |
Public Attributes | |
GFunction * | m_pFunc |
GMatrix * | m_pIn |
GMatrix * | m_pOut |
GFunctionParser * | m_pParser |
Additional Inherited Members | |
Protected Attributes inherited from GClasses::GTargetFunction | |
GRelation * | m_pRelation |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Computes the error of the given vector using all patterns.
Implements GClasses::GTargetFunction.
|
inlinevirtual |
Sets pVector to an initial guess. The default behavior is to initialize the vector to all zeros. You should override this method if different behavior is desired.
Reimplemented from GClasses::GTargetFunction.
|
inlinevirtual |
|
inlinevirtual |
This method should return true if computeError is deterministic with respect to the vector being optimized. It should return false if the error depends on some state other than the vector being optimized. This mostly affects whether the optimization algorithms are permitted to remember old error values for efficiency purposes. Stable is assumed, so you should override this method if your target function is not stable.
Reimplemented from GClasses::GTargetFunction.
GFunction* GClasses::OptimizerTargetFunc::m_pFunc |
GMatrix* GClasses::OptimizerTargetFunc::m_pIn |
GMatrix* GClasses::OptimizerTargetFunc::m_pOut |
GFunctionParser* GClasses::OptimizerTargetFunc::m_pParser |