source: trunk/src/KernelFunction.h @ 67

Last change on this file since 67 was 67, checked in by Peter, 19 years ago

added choice to use weights for the calculation of kernel matrix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 971 bytes
Line 
1// $Id: KernelFunction.h 67 2004-04-27 15:04:31Z peter $
2
3#ifndef _theplu_cpptools_kernel_function_
4#define _theplu_cpptools_kernel_function_
5
6namespace theplu {
7
8namespace gslapi {
9  class vector;
10}
11
12namespace cpptools {
13
14  /**
15     Virtual Class calculating one element in the kernel matrix (i.e. the
16     scalar product in feature space) from the two corresponding vector in the
17     data matrix. So far is only the polynomial kernel implemented.
18   */
19  class KernelFunction
20  {
21   
22  public:
23    /**
24       Constructor
25    */   
26    KernelFunction(void) {};
27    /**
28       Destructor
29    */
30    virtual ~KernelFunction(void) {};
31   
32    virtual double operator()(const gslapi::vector&,
33                              const gslapi::vector&) const = 0; 
34   
35    virtual double operator()(const gslapi::vector&,
36                              const gslapi::vector&,
37                              const gslapi::vector&,
38                              const gslapi::vector&) const = 0; 
39   
40  }; // class KernelFunction
41
42}} // of namespace cpptools and namespace theplu
43
44#endif
Note: See TracBrowser for help on using the repository browser.