Computes the Spline Kernel function which is the cubic polynomial.
The formula is:
Definition at line 36 of file SplineKernel.h.
Public Member Functions | |
CSplineKernel () | |
CSplineKernel (CDotFeatures *l, CDotFeatures *r) | |
virtual | ~CSplineKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
CSplineKernel | ( | ) |
constructor
Definition at line 21 of file SplineKernel.cpp.
CSplineKernel | ( | CDotFeatures * | l, | |
CDotFeatures * | r | |||
) |
constructor
l | features of left-hand side | |
r | features of right-hand side |
Definition at line 25 of file SplineKernel.cpp.
~CSplineKernel | ( | ) | [virtual] |
Definition at line 30 of file SplineKernel.cpp.
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 |
Reimplemented from CDotKernel.
Definition at line 52 of file SplineKernel.cpp.
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CDotKernel.
Definition at line 67 of file SplineKernel.h.
virtual const char* get_name | ( | void | ) | const [virtual] |
return the kernel's name
Reimplemented from CDotKernel.
Definition at line 73 of file SplineKernel.h.
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
Reimplemented from CDotKernel.
Definition at line 35 of file SplineKernel.cpp.