CHistogramWordStringKernel类参考


详细描述

The HistogramWordString computes the TOP kernel on inhomogeneous Markov Chains.

在文件HistogramWordStringKernel.h26行定义。

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

所有成员的列表。

公有成员

 CHistogramWordStringKernel (int32_t size, CPluginEstimate *pie)
 CHistogramWordStringKernel (CStringFeatures< uint16_t > *l, CStringFeatures< uint16_t > *r, CPluginEstimate *pie)
virtual ~CHistogramWordStringKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual void cleanup ()
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const

保护成员

float64_t compute (int32_t idx_a, int32_t idx_b)
int32_t compute_index (int32_t position, uint16_t symbol)

保护属性

CPluginEstimateestimate
float64_tmean
float64_tvariance
float64_tsqrtdiag_lhs
float64_tsqrtdiag_rhs
float64_tld_mean_lhs
float64_tld_mean_rhs
float64_tplo_lhs
float64_tplo_rhs
int32_t num_params
int32_t num_params2
int32_t num_symbols
float64_t sum_m2_s2
bool initialized

构造及析构函数文档

CHistogramWordStringKernel ( int32_t  size,
CPluginEstimate pie 
)

constructor

参数:
size cache size
pie plugin estimate

在文件HistogramWordStringKernel.cpp21行定义。

CHistogramWordStringKernel ( CStringFeatures< uint16_t > *  l,
CStringFeatures< uint16_t > *  r,
CPluginEstimate pie 
)

constructor

参数:
l features of left-hand side
r features of right-hand side
pie plugin estimate

在文件HistogramWordStringKernel.cpp30行定义。

~CHistogramWordStringKernel (  )  [virtual]

在文件HistogramWordStringKernel.cpp41行定义。


成员函数文档

void cleanup (  )  [virtual]

clean up kernel

重载CKernel

在文件HistogramWordStringKernel.cpp312行定义。

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

在文件HistogramWordStringKernel.cpp350行定义。

int32_t compute_index ( int32_t  position,
uint16_t  symbol 
) [protected]

compute index

参数:
position position
symbol symbol
返回:
index at given position in given symbol

在文件HistogramWordStringKernel.h88行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type HISTOGRAM

实现了CKernel

在文件HistogramWordStringKernel.h63行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name Histogram

实现了CSGObject

在文件HistogramWordStringKernel.h69行定义。

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

重载CStringKernel< uint16_t >

在文件HistogramWordStringKernel.cpp56行定义。


成员数据文档

CPluginEstimate* estimate [protected]

plugin estimate

在文件HistogramWordStringKernel.h95行定义。

bool initialized [protected]

if kernel is initialized

在文件HistogramWordStringKernel.h127行定义。

float64_t* ld_mean_lhs [protected]

ld mean left-hand side

在文件HistogramWordStringKernel.h108行定义。

float64_t* ld_mean_rhs [protected]

ld mean right-hand side

在文件HistogramWordStringKernel.h110行定义。

float64_t* mean [protected]

mean

在文件HistogramWordStringKernel.h98行定义。

int32_t num_params [protected]

number of parameters

在文件HistogramWordStringKernel.h118行定义。

int32_t num_params2 [protected]

number of parameters2

在文件HistogramWordStringKernel.h120行定义。

int32_t num_symbols [protected]

number of symbols

在文件HistogramWordStringKernel.h122行定义。

float64_t* plo_lhs [protected]

plo left-hand side

在文件HistogramWordStringKernel.h113行定义。

float64_t* plo_rhs [protected]

plo right-hand side

在文件HistogramWordStringKernel.h115行定义。

float64_t* sqrtdiag_lhs [protected]

sqrt diagonal of left-hand side

在文件HistogramWordStringKernel.h103行定义。

float64_t* sqrtdiag_rhs [protected]

sqrt diagonal of right-hand side

在文件HistogramWordStringKernel.h105行定义。

float64_t sum_m2_s2 [protected]

sum m2 s2

在文件HistogramWordStringKernel.h124行定义。

float64_t* variance [protected]

variance

在文件HistogramWordStringKernel.h100行定义。


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

SHOGUN Machine Learning Toolbox - Documentation