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 (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 ( int32_t  cache,
float64_t  width,
CDistance dist 
)

constructor

参数:
cache cache size
width width
dist distance

在文件DistanceKernel.cpp20行定义。

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

constructor

参数:
l features of left-hand side
r features of right-hand side
width width
dist distance

在文件DistanceKernel.cpp27行定义。

~CDistanceKernel (  )  [virtual]

在文件DistanceKernel.cpp36行定义。


成员函数文档

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_a index a
idx_b index b
返回:
computed kernel function at indices a,b

实现了CKernel

在文件DistanceKernel.cpp52行定义。

virtual EFeatureClass get_feature_class (  )  [virtual]

return feature class the kernel can deal with

返回:
feature class of distance used

实现了CKernel

在文件DistanceKernel.h79行定义。

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

返回:
feature type of distance used

实现了CKernel

在文件DistanceKernel.h73行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type DISTANCE

实现了CKernel

在文件DistanceKernel.h68行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name Distance

实现了CSGObject

在文件DistanceKernel.h85行定义。

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

initialize kernel

参数:
l features of left-hand side
r features of right-hand side
返回:
if initializing was successful

重载CKernel

在文件DistanceKernel.cpp44行定义。


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

SHOGUN Machine Learning Toolbox - Documentation