Normalize the kernel by a constant obtained from the first element of the kernel matrix, i.e.
.
useful if the kernel returns constant elements along the diagonal anyway and all one wants is to scale the kernel down to 1 on the diagonal.
Definition at line 28 of file FirstElementKernelNormalizer.h.

Public Member Functions | |
| CFirstElementKernelNormalizer () | |
| virtual | ~CFirstElementKernelNormalizer () |
| virtual bool | init (CKernel *k) |
| virtual float64_t | normalize (float64_t value, int32_t idx_lhs, int32_t idx_rhs) |
| virtual float64_t | normalize_lhs (float64_t value, int32_t idx_lhs) |
| virtual float64_t | normalize_rhs (float64_t value, int32_t idx_rhs) |
| virtual const char * | get_name () const |
Protected Attributes | |
| float64_t | scale |
| scale constant obtained from k(0,0) | |
constructor
Definition at line 33 of file FirstElementKernelNormalizer.h.
| virtual ~CFirstElementKernelNormalizer | ( | ) | [virtual] |
default destructor
Definition at line 40 of file FirstElementKernelNormalizer.h.
| virtual const char* get_name | ( | void | ) | const [virtual] |
Implements CSGObject.
Definition at line 91 of file FirstElementKernelNormalizer.h.
| virtual bool init | ( | CKernel * | k | ) | [virtual] |
initialization of the normalizer (if needed)
| k | kernel |
Implements CKernelNormalizer.
Definition at line 46 of file FirstElementKernelNormalizer.h.
normalize the kernel value
| value | kernel value | |
| idx_lhs | index of left hand side vector | |
| idx_rhs | index of right hand side vector |
Implements CKernelNormalizer.
Definition at line 66 of file FirstElementKernelNormalizer.h.
normalize only the left hand side vector
| value | value of a component of the left hand side feature vector | |
| idx_lhs | index of left hand side vector |
Implements CKernelNormalizer.
Definition at line 76 of file FirstElementKernelNormalizer.h.
normalize only the right hand side vector
| value | value of a component of the right hand side feature vector | |
| idx_rhs | index of right hand side vector |
Implements CKernelNormalizer.
Definition at line 85 of file FirstElementKernelNormalizer.h.
scale constant obtained from k(0,0)
Definition at line 95 of file FirstElementKernelNormalizer.h.