|
STK++ 0.9.13
|
Interface Base class for the kernels classes. More...
#include <STK_Kernel_IKernelBase.h>

Public Types | |
| typedef Array::Type | Type |
Public Member Functions | |
| IKernelBase (Array const *p_data) | |
| constructor with a constant pointer on the data set | |
| IKernelBase (Array const &data) | |
| constructor with a constant reference on the data set | |
| IKernelBase (IKernelBase const &kernel) | |
| copy constructor | |
| virtual | ~IKernelBase () |
| destructor | |
| Array const * | p_data () const |
| virtual bool | run () |
| compute Gram matrix | |
| virtual int | nbSample () const |
| virtual int | nbVariable () const |
| virtual Real | value (Type const &v) const |
| compute the value of the kernel for the given value | |
Public Member Functions inherited from STK::Kernel::IKernel | |
| IKernel () | |
| default constructor | |
| IKernel (IKernel const &kernel) | |
| copy constructor | |
| virtual | ~IKernel () |
| destructor | |
| CSquareX const & | k () const |
| CSquareX const & | gram () const |
| Real | kcomp (int i, int j) const |
| Real | kdist (int i, int j) const |
| Real | kdiag (int i) const |
| virtual Real | comp (int i, int j) const =0 |
| pure virtual method. | |
| Real | dist (int i, int j) const |
| virtual Real | diag (int i) const |
| virtual method. | |
Public Member Functions inherited from STK::IRunnerBase | |
| String const & | error () const |
| get the last error message. | |
Public Attributes | |
| CSquareX | gram_ |
| the resulting gram_ matrix | |
Protected Attributes | |
| Array const * | p_data_ |
| pointer on the data set | |
Protected Attributes inherited from STK::Kernel::IKernel | |
| CSquareX | gram_ |
| the resulting gram_ matrix | |
Protected Attributes inherited from STK::IRunnerBase | |
| String | msg_error_ |
| String with the last error message. | |
| bool | hasRun_ |
true if run has been used, false otherwise | |
Additional Inherited Members | |
Protected Member Functions inherited from STK::IRunnerBase | |
| IRunnerBase () | |
| default constructor | |
| IRunnerBase (IRunnerBase const &runner) | |
| copy constructor | |
| virtual | ~IRunnerBase () |
| destructor | |
| virtual void | update () |
| update the runner. | |
Interface Base class for the kernels classes.
Definition at line 49 of file STK_Kernel_IKernelBase.h.
| typedef Array::Type STK::Kernel::IKernelBase< Array >::Type |
Definition at line 52 of file STK_Kernel_IKernelBase.h.
|
inline |
constructor with a constant pointer on the data set
| p_data | a pointer on a data set that will be "kernelized" |
Definition at line 58 of file STK_Kernel_IKernelBase.h.
|
inline |
constructor with a constant reference on the data set
| data | a reference on a data set that will be "kernelized" |
Definition at line 62 of file STK_Kernel_IKernelBase.h.
|
inline |
copy constructor
| kernel | kernel to copy |
Definition at line 66 of file STK_Kernel_IKernelBase.h.
|
inlinevirtual |
|
inlinevirtual |
Implements STK::Kernel::IKernel.
Definition at line 77 of file STK_Kernel_IKernelBase.h.
References STK::Kernel::IKernelBase< Array >::p_data_.
|
inlinevirtual |
Implements STK::Kernel::IKernel.
Definition at line 79 of file STK_Kernel_IKernelBase.h.
References STK::Kernel::IKernelBase< Array >::p_data_.
|
inline |
Definition at line 71 of file STK_Kernel_IKernelBase.h.
References STK::Kernel::IKernelBase< Array >::p_data_.
Referenced by STK::Kernel::Hamming< Array >::Hamming(), and STK::Kernel::Hamming< Array >::Hamming().
|
virtual |
compute Gram matrix
true if the computation is successful, false otherwise Implements STK::IRunnerBase.
Definition at line 94 of file STK_Kernel_IKernelBase.h.
Referenced by STK::Kernel::Hamming< Array >::Hamming(), and STK::Kernel::Hamming< Array >::Hamming().
|
inlinevirtual |
compute the value of the kernel for the given value
| v | value |
Reimplemented in STK::Kernel::Gaussian< Array >, STK::Kernel::Laplace< Array >, STK::Kernel::Exponential< Array >, and STK::Kernel::RationalQuadratic< Array >.
Definition at line 85 of file STK_Kernel_IKernelBase.h.
the resulting gram_ matrix
Definition at line 123 of file STK_Kernel_IKernel.h.
|
protected |
pointer on the data set
Definition at line 90 of file STK_Kernel_IKernelBase.h.
Referenced by STK::Kernel::IKernelBase< Array >::nbSample(), STK::Kernel::IKernelBase< Array >::nbVariable(), and STK::Kernel::IKernelBase< Array >::p_data().