Machine Learning Library
|
Euclidean metric object. More...
#include <CMetric.h>
Public Member Functions | |
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... | |
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 |
Euclidean metric object.
Template class for euclidean metric.
|
virtual |
Reimplemented from CMetric< Type >.
|
inlinevirtual |
Returns the class name.
Reimplemented from CMetric< Type >.
Referenced by CEuclideanMetric< Type >::isA().
|
virtual |
Calculates the euclidean distance between rtVec1 and rtVec2.
rtVec1 | First input Vector. |
rtVec2 | Second input Vector. |
Reimplemented from CMetric< Type >.
|
inlinevirtual |
Check if the object is an instance of the class with given name.
Reimplemented from CMetric< Type >.
References CEuclideanMetric< Type >::className(), and CMetric< Type >::isA().