Last change
on this file since 336 was
336,
checked in by Peter, 18 years ago
|
moved members data_ and kf_ from base class Kernel to Kernel_SEV and Kernel_MEV. These two classes should perhaps in future be inherited from a intervening class since they are overlapping, but different from KernelView?.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
538 bytes
|
Line | |
---|
1 | // $Id: KernelView.cc 336 2005-06-03 14:16:19Z peter $ |
---|
2 | |
---|
3 | #include <c++_tools/svm/KernelView.h> |
---|
4 | |
---|
5 | #include <c++_tools/svm/KernelFunction.h> |
---|
6 | |
---|
7 | |
---|
8 | namespace theplu { |
---|
9 | namespace svm { |
---|
10 | |
---|
11 | KernelView::KernelView(const Kernel& kernel, const std::vector<size_t>& index) |
---|
12 | : Kernel(), kernel_(&kernel), index_(index) |
---|
13 | { |
---|
14 | // to view into the original kernel rather than a view |
---|
15 | //if (kernel.is_view()){ |
---|
16 | // kernel_=kernel.kernel_; |
---|
17 | // for (size_t i=0; i<index.size(); i++) |
---|
18 | // index_[i]=kernel.index_[index[i]]; |
---|
19 | //} |
---|
20 | } |
---|
21 | |
---|
22 | KernelView::~KernelView(void) |
---|
23 | { |
---|
24 | } |
---|
25 | |
---|
26 | }} // of namespace svm and namespace theplu |
---|
Note: See
TracBrowser
for help on using the repository browser.