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

详细描述

The HistogramIntersection kernel operating on realvalued vectors computes the histogram intersection distance between sets of histograms. Note: the current implementation assumes positive values for the histograms, and input vectors should sum to 1.

It is defined as

\[ k({\bf x},({\bf x'})= \sum_{i=0}^{l} min(x_i,x'_i) \]

在文件HistogramIntersectionKernel.h31行定义。

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

所有成员的列表。

公有成员

 CHistogramIntersectionKernel (void)
 CHistogramIntersectionKernel (int32_t size)
 CHistogramIntersectionKernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, int32_t size)
virtual ~CHistogramIntersectionKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const

保护成员

virtual float64_t compute (int32_t idx_a, int32_t idx_b)

构造及析构函数文档

default constructor

在文件HistogramIntersectionKernel.cpp19行定义。

CHistogramIntersectionKernel ( int32_t  size)

constructor

参数:
sizecache size
widthwidth

在文件HistogramIntersectionKernel.cpp26行定义。

constructor

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

在文件HistogramIntersectionKernel.cpp31行定义。

在文件HistogramIntersectionKernel.cpp38行定义。


成员函数文档

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

重载CDotKernel

在文件HistogramIntersectionKernel.cpp50行定义。

virtual EKernelType get_kernel_type ( ) [virtual]

return what type of kernel we are

返回:
kernel type HISTOGRAMINTERSECTION

实现了CDotKernel

在文件HistogramIntersectionKernel.h68行定义。

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

return the kernel's name

返回:
name HistogramIntersection

重载CDotKernel

在文件HistogramIntersectionKernel.h74行定义。

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

initialize kernel

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

重载CDotKernel

在文件HistogramIntersectionKernel.cpp43行定义。


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

SHOGUN Machine Learning Toolbox - Documentation