SHOGUN
v1.1.0
|
the class Bessel kernel
It is defined as
Where: is the Bessel funcion with order
,
is the kernel width, and
is the kernel degree.
Definition at line 32 of file BesselKernel.h.
Public Member Functions | |
CBesselKernel () | |
CBesselKernel (int32_t size, float64_t order, float64_t width, int32_t degree, CDistance *dist) | |
CBesselKernel (CFeatures *l, CFeatures *r, float64_t order, float64_t width, int32_t degree, CDistance *dist, int32_t size=10) | |
virtual | ~CBesselKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EKernelType | get_kernel_type () |
virtual EFeatureType | get_feature_type () |
virtual EFeatureClass | get_feature_class () |
virtual const char * | get_name () const |
virtual void | set_order (float64_t v) |
virtual float64_t | get_order () const |
virtual void | set_width (float64_t tau) |
virtual float64_t | get_width () const |
virtual void | set_degree (int32_t n) |
virtual int32_t | get_degree () const |
Protected Member Functions | |
float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
float64_t | order |
int32_t | degree |
CBesselKernel | ( | ) |
default constructor
Definition at line 17 of file BesselKernel.cpp.
CBesselKernel | ( | int32_t | size, |
float64_t | order, | ||
float64_t | width, | ||
int32_t | degree, | ||
CDistance * | dist | ||
) |
constructor
size | cache size |
order | the order of the bessel function |
width | the kernel width |
degree | the kernel degree |
dist | distance to be used |
Definition at line 22 of file BesselKernel.cpp.
CBesselKernel | ( | CFeatures * | l, |
CFeatures * | r, | ||
float64_t | order, | ||
float64_t | width, | ||
int32_t | degree, | ||
CDistance * | dist, | ||
int32_t | size = 10 |
||
) |
constructor
l | features of left-hand side |
r | features of right-hand side |
order | of the bessel function |
width | the kernel width |
degree | the degree |
dist | distance to be used |
size | cache size |
Definition at line 31 of file BesselKernel.cpp.
~CBesselKernel | ( | ) | [virtual] |
clean up kernel
Definition at line 41 of file BesselKernel.cpp.
void cleanup | ( | ) | [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 CDistanceKernel.
Definition at line 67 of file BesselKernel.cpp.
virtual int32_t get_degree | ( | ) | const [virtual] |
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
Reimplemented from CDistanceKernel.
Definition at line 100 of file BesselKernel.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
Reimplemented from CDistanceKernel.
Definition at line 92 of file BesselKernel.h.
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Reimplemented from CDistanceKernel.
Definition at line 84 of file BesselKernel.h.
virtual const char* get_name | ( | ) | const [virtual] |
return the kernel's name
Reimplemented from CDistanceKernel.
Definition at line 109 of file BesselKernel.h.
return the kernel's width
Reimplemented from CDistanceKernel.
Definition at line 145 of file BesselKernel.h.
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
Reimplemented from CDistanceKernel.
Definition at line 51 of file BesselKernel.cpp.
virtual void set_degree | ( | int32_t | n | ) | [virtual] |
set the kernel's width
tau | kernel width |
Reimplemented from CDistanceKernel.
Definition at line 136 of file BesselKernel.h.
int32_t degree [protected] |
kernel degree
Definition at line 178 of file BesselKernel.h.
order of the Bessel function
Definition at line 176 of file BesselKernel.h.