Machine Learning Library
Public Member Functions | List of all members
COptimizer< Type > Class Template Referenceabstract

Base class for optimisation techniques; ... More...

#include <COptimizer.h>

Inheritance diagram for COptimizer< Type >:
CObject< Type >

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)
 
- Public Member Functions inherited from CObject< Type >
 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

- Protected Attributes inherited from CObject< Type >
unsigned char ucVerbose
 

Detailed Description

template<class Type>
class COptimizer< Type >

Base class for optimisation techniques; ...

Constructor & Destructor Documentation

template<class Type >
COptimizer< Type >::COptimizer ( )
template<class Type >
virtual COptimizer< Type >::~COptimizer ( )
virtual

Member Function Documentation

template<class Type >
string COptimizer< Type >::className ( ) const
inlinevirtual

Returns the class name.

Reimplemented from CObject< Type >.

template<class Type >
virtual Type COptimizer< Type >::functionValueAt ( CDenseVector< Type > &  tPos)
pure virtual
template<class Type >
CDenseVector<Type> COptimizer< Type >::getPosition ( ) const

Return current parameterisation.

template<class Type >
bool COptimizer< Type >::isA ( const char *  acClass) const
virtual

Check if the object is an instance of the class with given name.

Reimplemented from CObject< Type >.

template<class Type >
bool COptimizer< Type >::isMaximize ( ) const
inline
template<class Type >
virtual Type COptimizer< Type >::optimize ( )
pure virtual
template<class Type >
virtual CDenseVector<Type> COptimizer< Type >::partialDerivativeAt ( CDenseVector< Type > &  tPos)
pure virtual
template<class Type >
CDenseVector<Type>& COptimizer< Type >::position ( )
template<class Type >
bool COptimizer< Type >::serialize2 ( CArchiv tA)
virtual

Reimplemented from CObject< Type >.

template<class Type >
void COptimizer< Type >::setMaximize ( bool  bValue)

Set optimisation sense.

Specifes whether the function should be maximized or minimized

Parameters
bValueIf true function will be maximized
template<class Type >
void COptimizer< Type >::setPosition ( CDenseVector< Type >  tPos)

Set initial parameterisation.

Set initial position in the parameter space

Parameters
tPosInitial position
template<class Type >
Type COptimizer< Type >::sign ( ) const
inline

The documentation for this class was generated from the following file: