ANOVA (ANalysis Of VAriances) kernel.
Formally described as
with d(cardinality)=1 by default this function is computed recusively
Definition at line 37 of file ANOVAKernel.h.

Public Member Functions | |
| CANOVAKernel () | |
| CANOVAKernel (int32_t cache, int32_t d) | |
| CANOVAKernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, int32_t d, int32_t cache) | |
| virtual | ~CANOVAKernel () |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual EKernelType | get_kernel_type () |
| virtual EFeatureType | get_feature_type () |
| virtual EFeatureClass | get_feature_class () |
| virtual const char * | get_name () const |
| int32_t | get_cardinality () |
| void | set_cardinality (int32_t value) |
| float64_t | compute_rec1 (int32_t idx_a, int32_t idx_b) |
| float64_t | compute_rec2 (int32_t idx_a, int32_t idx_b) |
Protected Member Functions | |
| virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
| void | init () |
| void | allocate_arrays () |
| virtual void | cleanup () |
| void | register_params () |
| virtual void | load_serializable_post () throw (ShogunException) |
Protected Attributes | |
| int32_t | cardinality |
| degree parameter of kernel | |
| float64_t * | DP |
| array for compute_recursive1 | |
| int32_t | DP_len |
| length of DP | |
| float64_t * | KD |
| arrays for compute_recursive2 | |
| float64_t * | KS |
| KS. | |
| float64_t * | vec_pow |
| vec pow | |
| CANOVAKernel | ( | ) |
default constructor
Definition at line 17 of file ANOVAKernel.cpp.
| CANOVAKernel | ( | int32_t | cache, | |
| int32_t | d | |||
| ) |
constructor
| cache | size of cache | |
| d | kernel parameter cardinality |
Definition at line 23 of file ANOVAKernel.cpp.
| CANOVAKernel | ( | CSimpleFeatures< float64_t > * | l, | |
| CSimpleFeatures< float64_t > * | r, | |||
| int32_t | d, | |||
| int32_t | cache | |||
| ) |
constructor
| l | features left-side | |
| r | features right-side | |
| d | kernel parameter cardinality | |
| cache | cache size |
Definition at line 30 of file ANOVAKernel.cpp.
| ~CANOVAKernel | ( | ) | [virtual] |
Definition at line 39 of file ANOVAKernel.cpp.
| void allocate_arrays | ( | ) | [protected] |
allocate arrays
Definition at line 109 of file ANOVAKernel.cpp.
| void cleanup | ( | ) | [protected, virtual] |
| float64_t compute | ( | int32_t | idx_a, | |
| int32_t | idx_b | |||
| ) | [protected, virtual] |
compute kernel for specific feature vectors corresponding to [idx_a] of left-side and [idx_b] of right-side
| idx_a | left-side index | |
| idx_b | right-side index |
Reimplemented from CDotKernel.
Definition at line 55 of file ANOVAKernel.cpp.
| float64_t compute_rec1 | ( | int32_t | idx_a, | |
| int32_t | idx_b | |||
| ) |
| float64_t compute_rec2 | ( | int32_t | idx_a, | |
| int32_t | idx_b | |||
| ) |
| int32_t get_cardinality | ( | ) |
getter for degree parameter
Definition at line 90 of file ANOVAKernel.h.
| virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
Reimplemented from CDotKernel.
Definition at line 80 of file ANOVAKernel.h.
| virtual EFeatureType get_feature_type | ( | ) | [virtual] |
Reimplemented from CDotKernel.
Definition at line 75 of file ANOVAKernel.h.
| virtual EKernelType get_kernel_type | ( | ) | [virtual] |
| virtual const char* get_name | ( | ) | const [virtual] |
| void init | ( | ) | [protected] |
init
array for compute_recursive1
arrays for compute_recursive2
Reimplemented from CKernel.
Definition at line 98 of file ANOVAKernel.cpp.
initialize kernel with features
| l | features left-side | |
| r | features right-side |
Reimplemented from CDotKernel.
Definition at line 44 of file ANOVAKernel.cpp.
| void load_serializable_post | ( | ) | throw (ShogunException) [protected, virtual] |
Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_POST is called.
| ShogunException | Will be thrown if an error occurres. |
Reimplemented from CKernel.
Definition at line 143 of file ANOVAKernel.cpp.
| void register_params | ( | ) | [protected, virtual] |
| void set_cardinality | ( | int32_t | value | ) |
setter for degree parameter
| value | kernel parameter cardinality |
Definition at line 95 of file ANOVAKernel.h.
int32_t cardinality [protected] |
degree parameter of kernel
Definition at line 148 of file ANOVAKernel.h.
array for compute_recursive1
Definition at line 151 of file ANOVAKernel.h.
int32_t DP_len [protected] |
length of DP
Definition at line 153 of file ANOVAKernel.h.
arrays for compute_recursive2
Definition at line 156 of file ANOVAKernel.h.
KS.
Definition at line 158 of file ANOVAKernel.h.
vec pow
Definition at line 160 of file ANOVAKernel.h.