source: trunk/lib/svm/Kernel_MEV.cc @ 330

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 Author Date Id Revision
File size: 543 bytes
Line 
1// $Id: Kernel_MEV.cc 330 2005-06-01 21:30:47Z peter $
2
3#include <c++_tools/svm/Kernel_MEV.h>
4
5#include <c++_tools/svm/KernelFunction.h>
6#include <c++_tools/gslapi/matrix.h>
7#include <c++_tools/gslapi/vector.h>
8
9namespace theplu {
10namespace svm { 
11
12  Kernel_MEV::Kernel_MEV(const gslapi::matrix& data, const KernelFunction& kf)
13    : Kernel(data, kf)
14  {
15  }
16
17
18
19  Kernel_MEV::~Kernel_MEV(void)
20  {
21  } 
22
23
24
25  double Kernel_MEV::operator()(size_t row, size_t column) const
26  {
27    return (*kf_)(data_.TEMP_col_return(row),data_.TEMP_col_return(column));
28  }
29
30
31}} // of namespace svm and namespace theplu
Note: See TracBrowser for help on using the repository browser.