STK++ 0.9.13
|
Interface class for the kernels classes. More...
#include <STK_Kernel_IKernel.h>
Public Member Functions | |
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. | |
virtual int | nbSample () const =0 |
pure virtual method. | |
virtual int | nbVariable () const =0 |
pure virtual method. | |
![]() | |
String const & | error () const |
get the last error message. | |
virtual bool | run ()=0 |
run the computations. | |
Protected Attributes | |
CSquareX | gram_ |
the resulting gram_ matrix | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
Additional Inherited Members | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
virtual void | update () |
update the runner. | |
Interface class for the kernels classes.
A positive definite kernel is a generalization of a positive definite function or positive-definite matrix.
Let
Definition at line 59 of file STK_Kernel_IKernel.h.
|
inline |
default constructor
Definition at line 63 of file STK_Kernel_IKernel.h.
copy constructor
kernel | kernel to copy |
Definition at line 67 of file STK_Kernel_IKernel.h.
|
inlinevirtual |
pure virtual method.
i,j | indexes of the individuals |
Implemented in STK::Kernel::Gaussian< Array >, STK::Kernel::Hamming< Array >, STK::Kernel::Laplace< Array >, STK::Kernel::Exponential< Array >, STK::Kernel::Linear< Array >, STK::Kernel::Polynomial< Array >, and STK::Kernel::RationalQuadratic< Array >.
virtual method.
i | index of the individual |
Reimplemented in STK::Kernel::Gaussian< Array >, STK::Kernel::Hamming< Array >, STK::Kernel::Laplace< Array >, STK::Kernel::Exponential< Array >, STK::Kernel::Linear< Array >, STK::Kernel::Polynomial< Array >, and STK::Kernel::RationalQuadratic< Array >.
Definition at line 109 of file STK_Kernel_IKernel.h.
References comp().
Definition at line 79 of file STK_Kernel_IKernel.h.
References gram_.
Definition at line 75 of file STK_Kernel_IKernel.h.
References gram_.
i,j | indexes of the individuals |
Definition at line 85 of file STK_Kernel_IKernel.h.
References gram_.
i | index of the individual |
Definition at line 93 of file STK_Kernel_IKernel.h.
References gram_.
pure virtual method.
Implemented in STK::Kernel::IKernelBase< Array >.
Referenced by STK::KernelHandler::addKernel(), and STK::KernelHandler::addKernel().
pure virtual method.
Implemented in STK::Kernel::IKernelBase< Array >.
|
protected |