Public Member Functions | |
CChi2Kernel (int32_t size, float64_t width) | |
CChi2Kernel (CRealFeatures *l, CRealFeatures *r, float64_t width, int32_t size) | |
virtual | ~CChi2Kernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual bool | load_init (FILE *src) |
virtual bool | save_init (FILE *dest) |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
float64_t | width |
It is defined as
Definition at line 29 of file Chi2Kernel.h.
CChi2Kernel::CChi2Kernel | ( | int32_t | size, | |
float64_t | width | |||
) |
CChi2Kernel::CChi2Kernel | ( | CRealFeatures * | l, | |
CRealFeatures * | 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 |
Definition at line 22 of file Chi2Kernel.cpp.
CChi2Kernel::~CChi2Kernel | ( | ) | [virtual] |
Definition at line 29 of file Chi2Kernel.cpp.
float64_t CChi2Kernel::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 |
Implements CKernel.
Definition at line 51 of file Chi2Kernel.cpp.
virtual EKernelType CChi2Kernel::get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 77 of file Chi2Kernel.h.
virtual const char* CChi2Kernel::get_name | ( | ) | [virtual] |
return the kernel's name
Implements CKernel.
Definition at line 83 of file Chi2Kernel.h.
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
Reimplemented from CSimpleKernel< float64_t >.
Definition at line 34 of file Chi2Kernel.cpp.
bool CChi2Kernel::load_init | ( | FILE * | src | ) | [virtual] |
load kernel init_data
src | file to load from |
Implements CKernel.
Definition at line 41 of file Chi2Kernel.cpp.
bool CChi2Kernel::save_init | ( | FILE * | dest | ) | [virtual] |
save kernel init_data
dest | file to save to |
Implements CKernel.
Definition at line 46 of file Chi2Kernel.cpp.
float64_t CChi2Kernel::width [protected] |
width
Definition at line 98 of file Chi2Kernel.h.