SHOGUN v0.9.0
公有成员 | 保护成员 | 保护属性
CHistogramWordStringKernel类参考

详细描述

The HistogramWordString computes the TOP kernel on inhomogeneous Markov Chains.

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

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

所有成员的列表。

公有成员

 CHistogramWordStringKernel ()
 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

构造及析构函数文档

default constructor

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

CHistogramWordStringKernel ( int32_t  size,
CPluginEstimate *  pie 
)

constructor

参数:
sizecache size
pieplugin estimate

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

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

constructor

参数:
lfeatures of left-hand side
rfeatures of right-hand side
pieplugin estimate

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

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


成员函数文档

void cleanup ( ) [virtual]

clean up kernel

重载CKernel。

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

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。

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

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

compute index

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

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

virtual EKernelType get_kernel_type ( ) [virtual]

return what type of kernel we are

返回:
kernel type HISTOGRAM

实现了CStringKernel< uint16_t >。

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

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

return the kernel's name

返回:
name Histogram

重载CStringKernel< uint16_t >。

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

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

initialize kernel

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

重载CStringKernel< uint16_t >。

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


成员数据文档

CPluginEstimate* estimate [protected]

plugin estimate

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

bool initialized [protected]

if kernel is initialized

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

float64_t* ld_mean_lhs [protected]

ld mean left-hand side

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

float64_t* ld_mean_rhs [protected]

ld mean right-hand side

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

float64_t* mean [protected]

mean

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

int32_t num_params [protected]

number of parameters

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

int32_t num_params2 [protected]

number of parameters2

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

int32_t num_symbols [protected]

number of symbols

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

float64_t* plo_lhs [protected]

plo left-hand side

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

float64_t* plo_rhs [protected]

plo right-hand side

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

float64_t* sqrtdiag_lhs [protected]

sqrt diagonal of left-hand side

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

float64_t* sqrtdiag_rhs [protected]

sqrt diagonal of right-hand side

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

float64_t sum_m2_s2 [protected]

sum m2 s2

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

float64_t* variance [protected]

variance

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


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

SHOGUN Machine Learning Toolbox - Documentation