SHOGUN v0.9.0
|
The Chi2 kernel operating on realvalued vectors computes the chi-squared distance between sets of histograms.
It is a very useful distance in image recognition (used to detect objects).
It is defined as
在文件Chi2Kernel.h第32行定义。
公有成员 | |
CChi2Kernel (void) | |
CChi2Kernel (int32_t size, float64_t width) | |
CChi2Kernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, float64_t width, int32_t size) | |
virtual | ~CChi2Kernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual EKernelType | get_kernel_type () |
virtual EFeatureClass | get_feature_class () |
virtual EFeatureType | get_feature_type () |
virtual const char * | get_name () const |
保护成员 | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
保护属性 | |
float64_t | width |
CChi2Kernel | ( | void | ) |
default constructor
在文件Chi2Kernel.cpp第25行定义。
CChi2Kernel | ( | int32_t | size, |
float64_t | width | ||
) |
CChi2Kernel | ( | CSimpleFeatures< float64_t > * | l, |
CSimpleFeatures< float64_t > * | r, | ||
float64_t | width, | ||
int32_t | size | ||
) |
constructor
l | features of left-hand side |
r | features of right-hand side |
width | width |
size | cache size |
在文件Chi2Kernel.cpp第37行定义。
~CChi2Kernel | ( | ) | [virtual] |
在文件Chi2Kernel.cpp第45行定义。
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 |
重载CDotKernel。
在文件Chi2Kernel.cpp第57行定义。
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
重载CDotKernel。
在文件Chi2Kernel.h第77行定义。
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
重载CDotKernel。
在文件Chi2Kernel.h第83行定义。
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | void | ) | const [virtual] |
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
重载CDotKernel。
在文件Chi2Kernel.cpp第50行定义。
width
在文件Chi2Kernel.h第104行定义。