SHOGUN v0.9.0
公有成员 | 保护成员
CRealDistance类参考

详细描述

class RealDistance

在文件RealDistance.h20行定义。

继承图,类CRealDistance
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CRealDistance ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual EFeatureType get_feature_type ()
virtual const char * get_name (void) const
virtual void cleanup ()=0
virtual EDistanceType get_distance_type ()=0

保护成员

virtual float64_t compute (int32_t x, int32_t y)=0

构造及析构函数文档

default constructor

在文件RealDistance.h24行定义。


成员函数文档

virtual void cleanup ( ) [pure virtual]

cleanup distance

abstract base method

实现了CSimpleDistance< float64_t >

CEuclidianDistance内被实现。

virtual float64_t compute ( int32_t  x,
int32_t  y 
) [protected, pure virtual]

compute distance function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object

实现了CDistance

CEuclidianDistance内被实现。

virtual EDistanceType get_distance_type ( ) [pure virtual]

get distance type we are

abstrace base method

返回:
distance type

实现了CSimpleDistance< float64_t >

CEuclidianDistance内被实现。

virtual EFeatureType get_feature_type ( ) [virtual]

get feature type the distance can deal with

返回:
feature type DREAL

重载CSimpleDistance< float64_t >

CEuclidianDistance重载。

在文件RealDistance.h46行定义。

virtual const char* get_name ( void  ) const [virtual]

Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.

返回:
name of the SGSerializable

重载CSimpleDistance< float64_t >

CEuclidianDistance重载。

在文件RealDistance.h53行定义。

virtual bool init ( CFeatures l,
CFeatures r 
) [virtual]

init distance

参数:
lfeatures of left-hand side
rfeatures of right-hand side
返回:
if init was successful

重载CSimpleDistance< float64_t >

CEuclidianDistance重载。

在文件RealDistance.h32行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation