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

Last change on this file since 307 was 307, checked in by Peter, 18 years ago

changed names of Kernels and made them work

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 535 bytes
Line 
1// $Id: Kernel_MEV.cc 307 2005-05-03 13:28:29Z 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
12Kernel_MEV::Kernel_MEV(const gslapi::matrix& data, const KernelFunction& kf)
13  : data_(data), kf_(&kf)
14{
15}
16
17
18Kernel_MEV::~Kernel_MEV(void)
19{
20} 
21
22double Kernel_MEV::operator()(size_t row, size_t column) const
23{
24  return (*kf_)(data_.TEMP_col_return(row),data_.TEMP_col_return(column));
25}
26
27
28}} // of namespace svm and namespace theplu
Note: See TracBrowser for help on using the repository browser.