Machine Learning Library
|
Base class for metrix objects. More...
#include <CMetric.h>
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) |
![]() | |
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 | |
![]() | |
unsigned char | ucVerbose |
Base class for metrix objects.
Template base class for all metrics (virtual).
|
inlinevirtual |
Returns the class name.
Reimplemented from CObject< Type >.
Reimplemented in CHyperbolicMetric< Type >, CAngleMetric< Type >, CCoCosineMetric< Type >, CScalarMetric< Type >, CMaximumMetric< Type >, CManhattenMetric< Type >, CEuclideanMetric2< Type >, and CEuclideanMetric< Type >.
Referenced by CMetric< double >::isA().
|
inlinevirtual |
Calculates the distance between rtVec1 and rtVec2 (virtual);
Reimplemented in CHyperbolicMetric< Type >, CAngleMetric< Type >, CCoCosineMetric< Type >, CScalarMetric< Type >, CMaximumMetric< Type >, CManhattenMetric< Type >, CEuclideanMetric2< Type >, and CEuclideanMetric< Type >.
Referenced by CDataset< Type >::bestMatchIDInput(), CDataset< Type >::bestMatchIDOutput(), CDataset< Type >::bestMatchInput(), CDataset< Type >::bestMatchOutput(), CDataset< Type >::getBestMatchIDInput(), CDataset< Type >::getBestMatchIDOutput(), CDataset< Type >::getBestMatchInput(), and CDataset< Type >::getBestMatchOutput().
|
inlinevirtual |
Check if the object is an instance of the class with given name.
Reimplemented from CObject< Type >.
Reimplemented in CHyperbolicMetric< Type >, CAngleMetric< Type >, CCoCosineMetric< Type >, CScalarMetric< Type >, CMaximumMetric< Type >, CManhattenMetric< Type >, CEuclideanMetric2< Type >, and CEuclideanMetric< Type >.
Referenced by CEuclideanMetric< Type >::isA(), CEuclideanMetric2< Type >::isA(), CManhattenMetric< Type >::isA(), CMaximumMetric< Type >::isA(), CScalarMetric< Type >::isA(), CCoCosineMetric< Type >::isA(), CAngleMetric< Type >::isA(), and CHyperbolicMetric< Type >::isA().