Machine Learning Library
|
Base class for optimisation techniques; ... More...
#include <COptimizer.h>
Public Member Functions | |
COptimizer () | |
string | className () const |
Returns the class name. More... | |
bool | isA (const char *acClass) const |
Check if the object is an instance of the class with given name. More... | |
virtual | ~COptimizer () |
virtual Type | optimize ()=0 |
void | setMaximize (bool bValue) |
Set optimisation sense. More... | |
void | setPosition (CDenseVector< Type > tPos) |
Set initial parameterisation. More... | |
CDenseVector< Type > | getPosition () const |
Return current parameterisation. More... | |
CDenseVector< Type > & | position () |
Type | sign () const |
bool | isMaximize () const |
virtual Type | functionValueAt (CDenseVector< Type > &tPos)=0 |
virtual CDenseVector< Type > | partialDerivativeAt (CDenseVector< Type > &tPos)=0 |
bool | serialize2 (CArchiv &tA) |
![]() | |
CObject () | |
Constructor. More... | |
virtual | ~CObject () |
Destructor. More... | |
virtual bool | serialize (fstream &stream, IO_MODE mode=READ) |
Read/write from binary stream. More... | |
void | setVerbose (VERBOSE_LEVEL tVerbose) |
Set the verbose level. More... | |
VERBOSE_LEVEL | verbose (void) const |
Return current verbose level. More... | |
DATATYPE | dataType () const |
Returns the template data type. More... | |
Additional Inherited Members | |
![]() | |
unsigned char | ucVerbose |
Base class for optimisation techniques; ...
COptimizer< Type >::COptimizer | ( | ) |
|
virtual |
|
inlinevirtual |
Returns the class name.
Reimplemented from CObject< Type >.
|
pure virtual |
CDenseVector<Type> COptimizer< Type >::getPosition | ( | ) | const |
Return current parameterisation.
|
virtual |
Check if the object is an instance of the class with given name.
Reimplemented from CObject< Type >.
|
inline |
|
pure virtual |
|
pure virtual |
CDenseVector<Type>& COptimizer< Type >::position | ( | ) |
|
virtual |
Reimplemented from CObject< Type >.
void COptimizer< Type >::setMaximize | ( | bool | bValue | ) |
Set optimisation sense.
Specifes whether the function should be maximized or minimized
bValue | If true function will be maximized |
void COptimizer< Type >::setPosition | ( | CDenseVector< Type > | tPos | ) |
Set initial parameterisation.
Set initial position in the parameter space
tPos | Initial position |
|
inline |