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

Hyperbolic metric object. More...

#include <CMetric.h>

Inheritance diagram for CHyperbolicMetric< Type >:
CMetric< Type > CObject< Type >

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)
 
- 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 CHyperbolicMetric< Type >

Hyperbolic metric object.

Template class for hyperbolic metric.

Member Function Documentation

template<class Type >
void CHyperbolicMetric< Type >::adaptVec ( CVector< Type > &  rtVec1,
const CVector< Type > &  rtVec2,
float  fEps 
)
virtual

Reimplemented from CMetric< Type >.

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

Returns the class name.

Reimplemented from CMetric< Type >.

Referenced by CHyperbolicMetric< Type >::isA().

template<class Type >
Type CHyperbolicMetric< Type >::distance ( const CVector< Type > &  rtVec1,
const CVector< Type > &  rtVec2 
) const
virtual

Calculates the distance of two points in the hyperbolic plane H2

Parameters
rtVec1First input Vector.
rtVec2Second input Vector.
Returns
hyperbolic distance.

Reimplemented from CMetric< Type >.

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

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

Reimplemented from CMetric< Type >.

References CHyperbolicMetric< Type >::className(), and CMetric< Type >::isA().


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