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

详细描述

The Distance kernel takes a distance as input.

It turns a distance into something kernel like by computing

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

在文件DistanceKernel.h33行定义。

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

所有成员的列表。

公有成员

 CDistanceKernel (void)
 CDistanceKernel (int32_t cache, float64_t width, CDistance *dist)
 CDistanceKernel (CFeatures *l, CFeatures *r, float64_t width, CDistance *dist)
virtual ~CDistanceKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual EKernelType get_kernel_type ()
virtual EFeatureType get_feature_type ()
virtual EFeatureClass get_feature_class ()
virtual const char * get_name () const

保护成员

float64_t compute (int32_t idx_a, int32_t idx_b)

构造及析构函数文档

CDistanceKernel ( void  )

default constructor

在文件DistanceKernel.cpp20行定义。

CDistanceKernel ( int32_t  cache,
float64_t  width,
CDistance dist 
)

constructor

参数:
cachecache size
widthwidth
distdistance

在文件DistanceKernel.cpp26行定义。

CDistanceKernel ( CFeatures l,
CFeatures r,
float64_t  width,
CDistance dist 
)

constructor

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

在文件DistanceKernel.cpp33行定义。

~CDistanceKernel ( ) [virtual]

在文件DistanceKernel.cpp42行定义。


成员函数文档

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

实现了CKernel

在文件DistanceKernel.cpp58行定义。

virtual EFeatureClass get_feature_class ( ) [virtual]

return feature class the kernel can deal with

返回:
feature class of distance used

实现了CKernel

在文件DistanceKernel.h82行定义。

virtual EFeatureType get_feature_type ( ) [virtual]

return feature type the kernel can deal with

返回:
feature type of distance used

实现了CKernel

在文件DistanceKernel.h76行定义。

virtual EKernelType get_kernel_type ( ) [virtual]

return what type of kernel we are

返回:
kernel type DISTANCE

实现了CKernel

在文件DistanceKernel.h71行定义。

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

return the kernel's name

返回:
name Distance

实现了CSGObject

在文件DistanceKernel.h88行定义。

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

initialize kernel

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

重载CKernel

在文件DistanceKernel.cpp50行定义。


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

SHOGUN Machine Learning Toolbox - Documentation