Last change
on this file since 353 was
353,
checked in by Peter, 17 years ago
|
removed function returning the whole matrix. It is not needed anymore and should not be there for simplistic reasons.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
928 bytes
|
Line | |
---|
1 | // $Id: KernelFunction.h 353 2005-06-08 23:28:35Z peter $ |
---|
2 | |
---|
3 | #ifndef _theplu_svm_kernel_function_ |
---|
4 | #define _theplu_svm_kernel_function_ |
---|
5 | |
---|
6 | namespace theplu { |
---|
7 | |
---|
8 | namespace gslapi { |
---|
9 | class vector; |
---|
10 | class matrix; |
---|
11 | } |
---|
12 | |
---|
13 | namespace svm { |
---|
14 | |
---|
15 | /// |
---|
16 | /// Virtual Class calculating kernel matrix. |
---|
17 | /// |
---|
18 | class KernelFunction |
---|
19 | { |
---|
20 | |
---|
21 | public: |
---|
22 | /// |
---|
23 | /// Constructor |
---|
24 | /// |
---|
25 | KernelFunction(void) {}; |
---|
26 | |
---|
27 | /// |
---|
28 | /// Destructor |
---|
29 | /// |
---|
30 | virtual ~KernelFunction(void) {}; |
---|
31 | |
---|
32 | /// |
---|
33 | /// @return scalar product of two vector in feature space. |
---|
34 | /// |
---|
35 | virtual double operator()(const gslapi::vector&, |
---|
36 | const gslapi::vector&) const = 0; |
---|
37 | |
---|
38 | /// |
---|
39 | /// @return scalar product of two vector in feature space. |
---|
40 | /// |
---|
41 | virtual double operator()(const gslapi::vector&, |
---|
42 | const gslapi::vector&, |
---|
43 | const gslapi::vector&, |
---|
44 | const gslapi::vector&) const = 0; |
---|
45 | |
---|
46 | }; // class KernelFunction |
---|
47 | |
---|
48 | }} // of namespace svm and namespace theplu |
---|
49 | |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.