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

Base class for metrix objects. More...

#include <CMetric.h>

Inheritance diagram for CMetric< Type >:
CObject< Type > CAngleMetric< Type > CCoCosineMetric< Type > CEuclideanMetric< Type > CEuclideanMetric2< Type > CHyperbolicMetric< Type > CManhattenMetric< Type > CMaximumMetric< Type > CScalarMetric< Type >

Public Member Functions

virtual Type distance (const CVector< Type > &rtVec1, const CVector< Type > &rtVec2) const
 
virtual string className () const
 Returns the class name. More...
 
virtual bool isA (const char *acClass) const
 Check if the object is an instance of the class with given name. More...
 
virtual void adaptVec (CVector< Type > &rtVec1, const CVector< Type > &rtVec2, float fEps)
 
- 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...
 
virtual bool serialize2 (CArchiv &tArchiv)
 
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 CMetric< Type >

Base class for metrix objects.

Template base class for all metrics (virtual).

Member Function Documentation

template<class Type>
virtual void CMetric< Type >::adaptVec ( CVector< Type > &  rtVec1,
const CVector< Type > &  rtVec2,
float  fEps 
)
inlinevirtual
template<class Type>
virtual string CMetric< Type >::className ( ) const
inlinevirtual
template<class Type>
virtual Type CMetric< Type >::distance ( const CVector< Type > &  rtVec1,
const CVector< Type > &  rtVec2 
) const
inlinevirtual
template<class Type>
virtual bool CMetric< Type >::isA ( const char *  acClass) const
inlinevirtual

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