Last change
on this file since 333 was
333,
checked in by Jari Häkkinen, 18 years ago
|
Fixed needed base class contructor.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
583 bytes
|
Line | |
---|
1 | // $Id: Kernel.cc 333 2005-06-02 13:34:08Z jari $ |
---|
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 | |
---|
13 | Kernel::Kernel(const Kernel& k) |
---|
14 | : data_(k.data_), kf_(k.kf_) |
---|
15 | { |
---|
16 | } |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | Kernel::Kernel(const gslapi::matrix& data, const KernelFunction& kf) |
---|
21 | : data_(data), kf_(&kf) |
---|
22 | { |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | Kernel::~Kernel(void) |
---|
28 | { |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | size_t Kernel::size(void) const |
---|
34 | { |
---|
35 | return data_.columns(); |
---|
36 | } |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | bool Kernel::is_view(void) const |
---|
41 | { |
---|
42 | return false; |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | }} // of namespace svm and namespace theplu |
---|
Note: See
TracBrowser
for help on using the repository browser.