|
STK++ 0.9.13
|
[Deprecated] The Exponential Kernel is a kernel of the form More...
#include <STK_Kernel_Laplace.h>

Public Types | |
| typedef IKernelBase< Array > | Base |
| typedef Array::Type | Type |
Public Types inherited from STK::Kernel::IKernelBase< Array > | |
| typedef Array::Type | Type |
Public Member Functions | |
| Exponential (Real const &width=1.) | |
| Default constructor with the width. | |
| Exponential (Array const *p_data, Real const &width=1.) | |
| constructor with a constant pointer on the data set | |
| Exponential (Array const &data, Real const &width=1.) | |
| constructor with a constant pointer on the data set | |
| template<class Derived > | |
| Exponential (Array const *p_data, ExprBase< Derived > const ¶m) | |
| constructor with an array of parameter. | |
| template<class Derived > | |
| Exponential (Array const &data, ExprBase< Derived > const ¶m) | |
| constructor with a constant pointer on the data set | |
| virtual | ~Exponential () |
| destructor | |
| Real const & | width () const |
| void | setWidth (Real const &width) |
| set the bandwidth of the kernel | |
| template<class Derived > | |
| void | setParam (ExprBase< Derived > const ¶m) |
| Set parameter using an array. | |
| virtual Real | diag (int i) const |
| virtual method. | |
| virtual Real | comp (int i, int j) const |
| virtual method implementation. | |
| virtual Real | value (Type const &v) const |
| compute the value of the kernel for the given value | |
Public Member Functions inherited from STK::Kernel::IKernelBase< Array > | |
| 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 |
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 |
| Real | dist (int i, int j) const |
Public Member Functions inherited from STK::IRunnerBase | |
| String const & | error () const |
| get the last error message. | |
Public Attributes | |
| Array const * | p_data_ |
| pointer on the data set | |
| CSquareX | gram_ |
| the resulting gram_ matrix | |
Public Attributes inherited from STK::Kernel::IKernelBase< Array > | |
| CSquareX | gram_ |
| the resulting gram_ matrix | |
Private Attributes | |
| Real | width_ |
| bandwidth of the kernel | |
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. | |
Protected Attributes inherited from STK::Kernel::IKernelBase< Array > | |
| 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 | |
[Deprecated] The Exponential Kernel is a kernel of the form
![\[
k(x,y) = \exp\left(- \frac{\|x-y\|}{h} \right)
\]](form_210.png)
where h represents the bandwidth of the kernel.
Definition at line 152 of file STK_Kernel_Laplace.h.
| typedef IKernelBase<Array> STK::Kernel::Exponential< Array >::Base |
Definition at line 155 of file STK_Kernel_Laplace.h.
| typedef Array::Type STK::Kernel::Exponential< Array >::Type |
Definition at line 156 of file STK_Kernel_Laplace.h.
|
inline |
Default constructor with the width.
| width | the size of the windows to use in the kernel |
Definition at line 164 of file STK_Kernel_Laplace.h.
|
inline |
constructor with a constant pointer on the data set
| p_data | a pointer on a data set that will be "kernelized" |
| width | the size of the windows to use in the kernel |
Definition at line 171 of file STK_Kernel_Laplace.h.
|
inline |
constructor with a constant pointer on the data set
| data | a reference on a data set that will be "kernelized" |
| width | the size of the windows to use in the kernel |
Definition at line 177 of file STK_Kernel_Laplace.h.
|
inline |
constructor with an array of parameter.
| p_data | a pointer on a data set that will be "kernelized" |
| param | array of parameter |
Definition at line 184 of file STK_Kernel_Laplace.h.
|
inline |
constructor with a constant pointer on the data set
| data | a reference on a data set that will be "kernelized" |
| param | array of parameter |
Definition at line 192 of file STK_Kernel_Laplace.h.
|
inlinevirtual |
|
inlinevirtual |
virtual method implementation.
| i,j | indexes of the individuals |
Implements STK::Kernel::IKernel.
Definition at line 232 of file STK_Kernel_Laplace.h.
|
inlinevirtual |
virtual method.
| i | index of the individual |
Reimplemented from STK::Kernel::IKernel.
Definition at line 214 of file STK_Kernel_Laplace.h.
|
inline |
Set parameter using an array.
| param | array of parameter |
Definition at line 207 of file STK_Kernel_Laplace.h.
References STK::Kernel::Exponential< Array >::width_.
|
inline |
set the bandwidth of the kernel
Definition at line 202 of file STK_Kernel_Laplace.h.
References STK::Kernel::Exponential< Array >::width(), and STK::Kernel::Exponential< Array >::width_.
|
inlinevirtual |
compute the value of the kernel for the given value
| v | value |
Reimplemented from STK::Kernel::IKernelBase< Array >.
Definition at line 239 of file STK_Kernel_Laplace.h.
|
inline |
Definition at line 200 of file STK_Kernel_Laplace.h.
References STK::Kernel::Exponential< Array >::width_.
Referenced by STK::Kernel::Exponential< Array >::setWidth().
the resulting gram_ matrix
Definition at line 53 of file STK_Kernel_IKernel.h.
| Array const* STK::Kernel::IKernelBase< Array >::p_data_ |
pointer on the data set
Definition at line 90 of file STK_Kernel_IKernelBase.h.
|
private |
bandwidth of the kernel
Definition at line 228 of file STK_Kernel_Laplace.h.
Referenced by STK::Kernel::Exponential< Array >::setParam(), STK::Kernel::Exponential< Array >::setWidth(), and STK::Kernel::Exponential< Array >::width().