The class GaussianMatchStringKernel computes a variant of the Gaussian kernel on strings of same length.
It is computed as
Note that additional normalisation is applied, i.e.
在文件GaussianMatchStringKernel.h第34行定义。

公有成员 | |
| CGaussianMatchStringKernel (int32_t size, float64_t width) | |
| CGaussianMatchStringKernel (CStringFeatures< char > *l, CStringFeatures< char > *r, float64_t width) | |
| virtual | ~CGaussianMatchStringKernel () |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual void | cleanup () |
| virtual EKernelType | get_kernel_type () |
| virtual const char * | get_name () const |
保护成员 | |
| virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
保护属性 | |
| float64_t | width |
| CGaussianMatchStringKernel | ( | int32_t | size, | |
| float64_t | width | |||
| ) |
| CGaussianMatchStringKernel | ( | CStringFeatures< char > * | l, | |
| CStringFeatures< char > * | r, | |||
| float64_t | width | |||
| ) |
constructor
| l | features of left-hand side | |
| r | features of right-hand side | |
| width | width |
在文件GaussianMatchStringKernel.cpp第26行定义。
| ~CGaussianMatchStringKernel | ( | ) | [virtual] |
在文件GaussianMatchStringKernel.cpp第34行定义。
| 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。
在文件GaussianMatchStringKernel.cpp第50行定义。
| virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
实现了CKernel。
在文件GaussianMatchStringKernel.h第71行定义。
| virtual const char* get_name | ( | ) | const [virtual] |
return the kernel's name
实现了CSGObject。
在文件GaussianMatchStringKernel.h第80行定义。
initialize kernel
| l | features of left-hand side | |
| r | features of right-hand side |
在文件GaussianMatchStringKernel.cpp第39行定义。
width
在文件GaussianMatchStringKernel.h第95行定义。