SHOGUN v0.9.0
|
The HistogramIntersection kernel operating on realvalued vectors computes the histogram intersection distance between sets of histograms. Note: the current implementation assumes positive values for the histograms, and input vectors should sum to 1.
It is defined as
在文件HistogramIntersectionKernel.h第31行定义。
公有成员 | |
CHistogramIntersectionKernel (void) | |
CHistogramIntersectionKernel (int32_t size) | |
CHistogramIntersectionKernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, int32_t size) | |
virtual | ~CHistogramIntersectionKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
保护成员 | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
CHistogramIntersectionKernel | ( | void | ) |
default constructor
CHistogramIntersectionKernel | ( | int32_t | size | ) |
CHistogramIntersectionKernel | ( | CSimpleFeatures< float64_t > * | l, |
CSimpleFeatures< float64_t > * | r, | ||
int32_t | size | ||
) |
constructor
l | features of left-hand side |
r | features of right-hand side |
width | width |
size | cache size |
~CHistogramIntersectionKernel | ( | ) | [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 |
重载CDotKernel。
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
实现了CDotKernel。
在文件HistogramIntersectionKernel.h第68行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
return the kernel's name
重载CDotKernel。
在文件HistogramIntersectionKernel.h第74行定义。
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
重载CDotKernel。