source: trunk/lib/classifier/KernelView.cc @ 463

Last change on this file since 463 was 463, checked in by Peter, 17 years ago

fixed bug in KernelView? constructor and updated tests

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 730 bytes
Line 
1// $Id: KernelView.cc 463 2005-12-16 17:59:15Z peter $
2
3#include <c++_tools/classifier/KernelView.h>
4#include <c++_tools/classifier/MatrixView.h>
5
6
7namespace theplu {
8namespace classifier { 
9
10  KernelView::KernelView(const Kernel& kernel)
11    : MatrixView(), kernel_(&kernel)
12  {
13    for(size_t i=0;i<(*kernel_).size();i++)
14      column_index_.push_back(i);
15    row_index_=column_index_;
16  }
17 
18  KernelView::KernelView(const Kernel& kernel, 
19                         const std::vector<size_t>& index)
20    : MatrixView(index,index), kernel_(&kernel)
21  {
22  }
23 
24  KernelView::KernelView(const Kernel& kernel, 
25                         const std::vector<size_t>& row, 
26                         const std::vector<size_t>& column)
27    : MatrixView(row,column), kernel_(&kernel)
28  {
29  }
30 
31
32}} // of namespace classifier and namespace theplu
Note: See TracBrowser for help on using the repository browser.