CHistogramWordStringKernel类参考


详细描述

The HistogramWordString computes the TOP kernel on inhomogeneous Markov Chains.

在文件HistogramWordStringKernel.h第26行定义。

继承图,类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)

保护属性

CPluginEstimate * estimate
float64_t * mean
float64_t * variance
float64_t * sqrtdiag_lhs
float64_t * sqrtdiag_rhs
float64_t * ld_mean_lhs
float64_t * ld_mean_rhs
float64_t * plo_lhs
float64_t * plo_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.cpp第21行定义。

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.cpp第30行定义。

~CHistogramWordStringKernel (  )  [virtual]

在文件HistogramWordStringKernel.cpp第41行定义。


成员函数文档

void cleanup (  )  [virtual]

clean up kernel

重载CKernel。

在文件HistogramWordStringKernel.cpp第312行定义。

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.cpp第350行定义。

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.h第88行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type HISTOGRAM

实现了CKernel。

在文件HistogramWordStringKernel.h第63行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name Histogram

实现了CSGObject。

在文件HistogramWordStringKernel.h第69行定义。

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.cpp第56行定义。


成员数据文档

CPluginEstimate* estimate [protected]

plugin estimate

在文件HistogramWordStringKernel.h第95行定义。

bool initialized [protected]

if kernel is initialized

在文件HistogramWordStringKernel.h第127行定义。

float64_t* ld_mean_lhs [protected]

ld mean left-hand side

在文件HistogramWordStringKernel.h第108行定义。

float64_t* ld_mean_rhs [protected]

ld mean right-hand side

在文件HistogramWordStringKernel.h第110行定义。

float64_t* mean [protected]

mean

在文件HistogramWordStringKernel.h第98行定义。

int32_t num_params [protected]

number of parameters

在文件HistogramWordStringKernel.h第118行定义。

int32_t num_params2 [protected]

number of parameters2

在文件HistogramWordStringKernel.h第120行定义。

int32_t num_symbols [protected]

number of symbols

在文件HistogramWordStringKernel.h第122行定义。

float64_t* plo_lhs [protected]

plo left-hand side

在文件HistogramWordStringKernel.h第113行定义。

float64_t* plo_rhs [protected]

plo right-hand side

在文件HistogramWordStringKernel.h第115行定义。

float64_t* sqrtdiag_lhs [protected]

sqrt diagonal of left-hand side

在文件HistogramWordStringKernel.h第103行定义。

float64_t* sqrtdiag_rhs [protected]

sqrt diagonal of right-hand side

在文件HistogramWordStringKernel.h第105行定义。

float64_t sum_m2_s2 [protected]

sum m2 s2

在文件HistogramWordStringKernel.h第124行定义。

float64_t* variance [protected]

variance

在文件HistogramWordStringKernel.h第100行定义。


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

SHOGUN Machine Learning Toolbox - Documentation