详细描述
Sparse Spatial Sample String Kernel by Pavel Kuksa <pkuksa@cs.rutgers.edu> and Vladimir Pavlovic <vladimir@cs.rutgers.edu>
在文件SparseSpatialSampleStringKernel.h第30行定义。
所有成员的列表。
公有成员 |
| CSparseSpatialSampleStringKernel () |
| CSparseSpatialSampleStringKernel (CStringFeatures< char > *l, CStringFeatures< char > *r) |
virtual | ~CSparseSpatialSampleStringKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EKernelType | get_kernel_type () |
void | set_d (int32_t max_distance) |
int32_t | get_d () |
void | set_t (int32_t sequence_length) |
int32_t | get_t () |
virtual const char * | get_name () const |
保护成员 |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
SSKFeatures * | extractTriple (int **S, int *len, int nStr, int d1, int d2) |
SSKFeatures * | extractDouble (int **S, int *len, int nStr, int d1) |
void | compute_double (int32_t idx_a, int32_t idx_b) |
void | compute_triple (int32_t idx_a, int32_t idx_b) |
int * | cntsrtna (int *sx, int k, int r, int na) |
void | countAndUpdate (int *outK, int *sx, int *g, int k, int r, int nStr) |
保护属性 |
int32_t | t |
int32_t | d |
bool | isVerbose |
构造及析构函数文档
成员函数文档
void cleanup |
( |
| ) |
[virtual] |
int * cntsrtna |
( |
int * |
sx, |
|
|
int |
k, |
|
|
int |
r, |
|
|
int |
na |
|
) |
| [protected] |
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。
在文件SparseSpatialSampleStringKernel.cpp第372行定义。
void compute_double |
( |
int32_t |
idx_a, |
|
|
int32_t |
idx_b |
|
) |
| [protected] |
void compute_triple |
( |
int32_t |
idx_a, |
|
|
int32_t |
idx_b |
|
) |
| [protected] |
void countAndUpdate |
( |
int * |
outK, |
|
|
int * |
sx, |
|
|
int * |
g, |
|
|
int |
k, |
|
|
int |
r, |
|
|
int |
nStr |
|
) |
| [protected] |
SSKFeatures * extractDouble |
( |
int ** |
S, |
|
|
int * |
len, |
|
|
int |
nStr, |
|
|
int |
d1 |
|
) |
| [protected] |
SSKFeatures * extractTriple |
( |
int ** |
S, |
|
|
int * |
len, |
|
|
int |
nStr, |
|
|
int |
d1, |
|
|
int |
d2 |
|
) |
| [protected] |
virtual const char* get_name |
( |
void |
| ) |
const [virtual] |
void set_d |
( |
int32_t |
max_distance | ) |
|
void set_t |
( |
int32_t |
sequence_length | ) |
|
成员数据文档
该类的文档由以下文件生成: