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

详细描述

The Kernel distance takes a distance as input.

It turns a kernel into something distance like by computing

\[ d({\bf x}, {\bf x'}) = e^{-\frac{k({\bf x}, {\bf x'})}{width}} \]

在文件KernelDistance.h33行定义。

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

所有成员的列表。

公有成员

 CKernelDistance (void)
 CKernelDistance (float64_t width, CKernel *k)
 CKernelDistance (CFeatures *l, CFeatures *r, float64_t width, CKernel *k)
virtual ~CKernelDistance ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual EDistanceType get_distance_type ()
virtual EFeatureType get_feature_type ()
virtual EFeatureClass get_feature_class ()
virtual const char * get_name () const
virtual void cleanup ()

保护成员

float64_t compute (int32_t idx_a, int32_t idx_b)

构造及析构函数文档

CKernelDistance ( void  )

default constructor

在文件KernelDistance.cpp20行定义。

CKernelDistance ( float64_t  width,
CKernel k 
)

constructor

参数:
cachecache size
widthwidth
distdistance

在文件KernelDistance.cpp25行定义。

CKernelDistance ( CFeatures l,
CFeatures r,
float64_t  width,
CKernel k 
)

constructor

参数:
lfeatures of left-hand side
rfeatures of right-hand side
widthwidth
distdistance

在文件KernelDistance.cpp36行定义。

~CKernelDistance ( ) [virtual]

在文件KernelDistance.cpp50行定义。


成员函数文档

virtual void cleanup ( ) [virtual]

clean up kernel

实现了CDistance

在文件KernelDistance.h93行定义。

float64_t compute ( int32_t  idx_a,
int32_t  idx_b 
) [protected, virtual]

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

参数:
idx_aindex a
idx_bindex b
返回:
computed kernel function at indices a,b

实现了CDistance

在文件KernelDistance.cpp65行定义。

virtual EDistanceType get_distance_type ( ) [virtual]

return what type of kernel we are

返回:
distance type DISTANCE

实现了CDistance

在文件KernelDistance.h71行定义。

virtual EFeatureClass get_feature_class ( ) [virtual]

return feature class the distance can deal with

返回:
feature class of distance used

实现了CDistance

在文件KernelDistance.h82行定义。

virtual EFeatureType get_feature_type ( ) [virtual]

return feature type the distance can deal with

返回:
feature type of distance used

实现了CDistance

在文件KernelDistance.h76行定义。

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

return the distances's name

返回:
name Distance

实现了CSGObject

在文件KernelDistance.h88行定义。

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

initialize kernel

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

重载CDistance

在文件KernelDistance.cpp58行定义。


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

SHOGUN Machine Learning Toolbox - Documentation