source: trunk/lib/svm/KernelView.cc @ 336

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
RevLine 
[331]1// $Id: KernelView.cc 336 2005-06-03 14:16:19Z peter $
[330]2
3#include <c++_tools/svm/KernelView.h>
4
5#include <c++_tools/svm/KernelFunction.h>
6
[333]7
[330]8namespace theplu {
9namespace svm { 
10
11KernelView::KernelView(const Kernel& kernel, const std::vector<size_t>& index)
[336]12  : Kernel(), kernel_(&kernel), index_(index)
[330]13{
[331]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  //}
[330]20}
21
22KernelView::~KernelView(void)
23{
24} 
25
26}} // of namespace svm and namespace theplu
Note: See TracBrowser for help on using the repository browser.