The HistogramWordString computes the TOP kernel on inhomogeneous Markov Chains.
在文件HistogramWordStringKernel.h第26行定义。
公有成员 | |
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 | |||
) |
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] |
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 |
实现了CKernel。
在文件HistogramWordStringKernel.cpp第350行定义。
int32_t compute_index | ( | int32_t | position, | |
uint16_t | symbol | |||
) | [protected] |
compute index
position | position | |
symbol | symbol |
在文件HistogramWordStringKernel.h第88行定义。
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
实现了CKernel。
在文件HistogramWordStringKernel.h第63行定义。
virtual const char* get_name | ( | ) | const [virtual] |
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
在文件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行定义。
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行定义。
plo left-hand side
在文件HistogramWordStringKernel.h第113行定义。
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行定义。
sum m2 s2
在文件HistogramWordStringKernel.h第124行定义。
variance
在文件HistogramWordStringKernel.h第100行定义。