Last change
on this file since 330 was
330,
checked in by Peter, 18 years ago
|
added an abstract base class for Kernel from which Kernel_SEV Kernel_MEV are inherited. Also added a separate class for viewing into subKernels
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
510 bytes
|
Line | |
---|
1 | // $Id:$ |
---|
2 | |
---|
3 | #include <c++_tools/svm/Kernel.h> |
---|
4 | |
---|
5 | #include <c++_tools/svm/KernelFunction.h> |
---|
6 | #include <c++_tools/gslapi/matrix.h> |
---|
7 | #include <c++_tools/gslapi/vector.h> |
---|
8 | |
---|
9 | namespace theplu { |
---|
10 | namespace svm { |
---|
11 | |
---|
12 | Kernel::Kernel(const gslapi::matrix& data, const KernelFunction& kf) |
---|
13 | : data_(data), kf_(&kf) |
---|
14 | { |
---|
15 | } |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | Kernel::~Kernel(void) |
---|
20 | { |
---|
21 | } |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | size_t Kernel::size(void) const |
---|
26 | { |
---|
27 | return data_.columns(); |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | bool Kernel::is_view(void) const |
---|
33 | { |
---|
34 | return false; |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | }} // of namespace svm and namespace theplu |
---|
Note: See
TracBrowser
for help on using the repository browser.